Switch modules

This commit is contained in:
2024-02-23 21:39:15 +01:00
parent 3f3f9a4b34
commit 79b7cdf7c9
5 changed files with 23 additions and 159 deletions

View File

@@ -15,13 +15,13 @@
"dependencies": { "dependencies": {
"@ksassnowski/vueclid": "1.1.1", "@ksassnowski/vueclid": "1.1.1",
"@nuxt/content": "2.12.0", "@nuxt/content": "2.12.0",
"@nuxt/ui": "2.14.0", "@nuxt/ui": "2.14.1",
"@pinia/nuxt": "0.5.1", "@pinia/nuxt": "0.5.1",
"@prisma/client": "5.10.2", "@prisma/client": "5.10.2",
"@vercel/analytics": "1.2.2", "@vercel/analytics": "1.2.2",
"@vercel/speed-insights": "1.0.10", "@vercel/speed-insights": "1.0.10",
"nuxt": "3.10.3", "nuxt": "3.10.3",
"nuxt-auth-utils": "0.0.18", "nuxt-auth-utils": "0.0.19",
"pinia": "2.1.7", "pinia": "2.1.7",
"postcss-custom-properties": "13.3.5", "postcss-custom-properties": "13.3.5",
"prisma": "5.10.2", "prisma": "5.10.2",
@@ -31,7 +31,7 @@
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "2.6.4", "@antfu/eslint-config": "2.6.4",
"@iconify/json": "2.2.185", "@iconify/json": "2.2.186",
"@nuxt/eslint-config": "^0.2.0", "@nuxt/eslint-config": "^0.2.0",
"@nuxthq/studio": "1.0.11", "@nuxthq/studio": "1.0.11",
"@nuxtjs/seo": "2.0.0-rc.8", "@nuxtjs/seo": "2.0.0-rc.8",

View File

@@ -1,49 +0,0 @@
<script setup>
const socials = [
{
name: 'mail',
icon: 'i-material-symbols-alternate-email',
link: 'mailto:arthurdanjou@outlook.fr',
},
{
name: 'twitter',
icon: 'i-ph-twitter-logo-bold',
link: 'https://twitter.com/ArthurDanj',
},
{
name: 'github',
icon: 'i-ph-github-logo-bold',
link: 'https://github.com/ArthurDanjou',
},
{
name: 'linkedin',
icon: 'i-ph-linkedin-logo-bold',
link: 'https://www.linkedin.com/in/arthurdanjou/',
},
]
</script>
<template>
<div class="w-container mt-32 mb-24">
<div class="flex items-center flex-col space-y-4">
<h1 class="text-center lg:text-6xl sm:text-5xl text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 !leading-tight md:w-2/3">
Software engineer, mathematics lover and AI enthusiast
</h1>
<p class="leading-relaxed text-subtitle text-center md:w-2/3 p-2">
I'm Arthur, a software engineer passionate about artificial intelligence and the cloud but also a mathematics student living in France. I am currently studying mathematics at the Faculty of Sciences of Paris-Saclay.
</p>
<div class="flex gap-4">
<UButton
v-for="social in socials"
:key="social.name"
:icon="social.icon"
size="md"
:to="social.link"
variant="ghost"
target="_blank"
:ui="{ rounded: 'rounded-full' }"
/>
</div>
</div>
</div>
</template>

View File

@@ -1,93 +0,0 @@
<script lang="ts" setup>
import { Circle, FunctionPlot, Graph, Label, Line, Point, Vector } from '@ksassnowski/vueclid'
const angle = ref(45)
const time = ref(0)
useIntervalFn(() => {
angle.value = angle.value === 1 ? 0 : angle.value + 0.01
time.value += 0.1
}, 10)
</script>
<template>
<section class="flex flex-col md:flex-row items-center justify-center gap-5 overflow-hidden py-4 sm:gap-8 mb-16">
<div>
<Graph :domain-x="[-3, 3]" :domain-y="[-3, 3]">
<FunctionPlot
:function="(x) => Math.cos(x)"
:line-width="2"
animated
color="hotpink"
/>
<Label text="cos(x)" color="hotpink" :position="[2, -0.5]" size="small" />
<FunctionPlot
:function="(x) => Math.sin(x)"
:line-width="2"
animated
color="#33aabb"
/>
<Label text="sin(x)" color="#33aabb" :position="[2, 1]" size="small" />
<FunctionPlot
:function="(x) => Math.exp(x)"
:line-width="2"
animated
/>
<Label text="exp(x)" :position="[0.7, 2]" size="small" />
<FunctionPlot
:function="(x) => Math.log(x)"
:domain="[0.001, 4]"
:line-width="2"
animated
color="limegreen"
/>
<Label text="ln(x)" color="limegreen" :position="[0.2, -2]" size="small" />
<FunctionPlot
:function="(x) => -x"
:domain="[-3, 0]"
:line-width="2"
animated
color="orange"
/>
<FunctionPlot
:function="(x) => x"
:domain="[0, 3]"
:line-width="2"
animated
color="orange"
/>
<Label text="|x|" color="orange" :position="[-2, 2]" size="small" />
</Graph>
</div>
<div>
<Graph
:domain-x="[-2, 2]"
:domain-y="[-2, 2]"
>
<Circle :radius="1" color="#aaa" />
<Vector :to="[Math.cos(angle), Math.sin(angle)]" />
<Line
:from="[Math.cos(angle), 0]"
:to="[Math.cos(angle), Math.sin(angle)]"
:line-width="1.5"
color="hotpink"
dashed
/>
<Line
:from="[0, Math.sin(angle)]"
:to="[Math.cos(angle), Math.sin(angle)]"
:line-width="1.5"
color="#33aabb"
dashed
/>
<Point :position="[Math.cos(angle), Math.sin(angle)]" label="M" />
<Point :position="[Math.cos(angle), 0]" color="hotpink" label="cos(x)" />
<Point
:position="[0, Math.sin(angle)]"
color="#33aabb"
label="sin(x)"
label-position="top"
/>
</Graph>
</div>
</section>
</template>

View File

@@ -8,6 +8,10 @@ useHead({
<section> <section>
<Announcement /> <Announcement />
<MainBanner /> <MainBanner />
<div class="px-4 lg:px-44 md:px-16 sm:px-8 w-full my-16 grid grid-cols-1 md:grid-cols-2 md:gap-x-16 gap-y-8 md:gap-y-16">
<MainActivity />
<MainStats />
</div>
<MainMaths /> <MainMaths />
</section> </section>
</template> </template>

View File

@@ -988,10 +988,10 @@
dependencies: dependencies:
"@iconify/types" "*" "@iconify/types" "*"
"@iconify/json@2.2.185": "@iconify/json@2.2.186":
version "2.2.185" version "2.2.186"
resolved "https://registry.yarnpkg.com/@iconify/json/-/json-2.2.185.tgz#d3cc52ad9a7de5efcd39a160b3292e9af9b446ac" resolved "https://registry.yarnpkg.com/@iconify/json/-/json-2.2.186.tgz#62f60efdb0e1ffce51b26578bc985056a5606dae"
integrity sha512-dVIjPe3+ms7CpH84ScIdUopc+Z0X8UWBkFOLNyWaltmho0sOC/35FEOBAPvz3ME7Do+MPToEle5aTJ0K2RsNyw== integrity sha512-Qcg7WA0fSOZJuBcNY5lZWbIZVLhdjYxI4kNxq1gWF5G5vFiBr2Xa1ScIKsvcKQwVSGax9E5tbTAHgdvgdr+IMQ==
dependencies: dependencies:
"@iconify/types" "*" "@iconify/types" "*"
pathe "^1.1.2" pathe "^1.1.2"
@@ -1407,7 +1407,7 @@
eslint-plugin-vue "^9.17.0" eslint-plugin-vue "^9.17.0"
typescript "^5.2.2" typescript "^5.2.2"
"@nuxt/kit@3.10.3", "@nuxt/kit@^3.10.0", "@nuxt/kit@^3.10.1", "@nuxt/kit@^3.10.2", "@nuxt/kit@^3.5.0", "@nuxt/kit@^3.8.0", "@nuxt/kit@^3.8.1", "@nuxt/kit@^3.8.2", "@nuxt/kit@^3.9.0", "@nuxt/kit@^3.9.1", "@nuxt/kit@^3.9.3": "@nuxt/kit@3.10.3", "@nuxt/kit@^3.10.0", "@nuxt/kit@^3.10.1", "@nuxt/kit@^3.10.2", "@nuxt/kit@^3.10.3", "@nuxt/kit@^3.5.0", "@nuxt/kit@^3.8.0", "@nuxt/kit@^3.8.1", "@nuxt/kit@^3.8.2", "@nuxt/kit@^3.9.0", "@nuxt/kit@^3.9.1", "@nuxt/kit@^3.9.3":
version "3.10.3" version "3.10.3"
resolved "https://registry.yarnpkg.com/@nuxt/kit/-/kit-3.10.3.tgz#911bc431d9b7541a7269e9e63333f70c8ecb5fd6" resolved "https://registry.yarnpkg.com/@nuxt/kit/-/kit-3.10.3.tgz#911bc431d9b7541a7269e9e63333f70c8ecb5fd6"
integrity sha512-PUjYB9Mvx0qD9H1QZBwwtY4fLlCLET+Mm9BVqUOtXCaGoXd6u6BE4e/dGFPk2UEKkIcDGrUMSbqkHYvsEuK9NQ== integrity sha512-PUjYB9Mvx0qD9H1QZBwwtY4fLlCLET+Mm9BVqUOtXCaGoXd6u6BE4e/dGFPk2UEKkIcDGrUMSbqkHYvsEuK9NQ==
@@ -1476,16 +1476,16 @@
resolved "https://registry.yarnpkg.com/@nuxt/ui-templates/-/ui-templates-1.3.1.tgz#35f5c1adced7495a8c1284e37246a16e373ef5d5" resolved "https://registry.yarnpkg.com/@nuxt/ui-templates/-/ui-templates-1.3.1.tgz#35f5c1adced7495a8c1284e37246a16e373ef5d5"
integrity sha512-5gc02Pu1HycOVUWJ8aYsWeeXcSTPe8iX8+KIrhyEtEoOSkY0eMBuo0ssljB8wALuEmepv31DlYe5gpiRwkjESA== integrity sha512-5gc02Pu1HycOVUWJ8aYsWeeXcSTPe8iX8+KIrhyEtEoOSkY0eMBuo0ssljB8wALuEmepv31DlYe5gpiRwkjESA==
"@nuxt/ui@2.14.0": "@nuxt/ui@2.14.1":
version "2.14.0" version "2.14.1"
resolved "https://registry.yarnpkg.com/@nuxt/ui/-/ui-2.14.0.tgz#1f5626d4e56ca67d742a2e3fa57ce12e560075f0" resolved "https://registry.yarnpkg.com/@nuxt/ui/-/ui-2.14.1.tgz#0a904b994a3dfaab1f6be6da8a6b5cdc6c9d3d92"
integrity sha512-WLjHv1zdJCmSU//wiigMXz7C4k0sroL8tCSNXnBRJAD5UIQiZ70gN+RFV9YRv4Ofv/soeYUgXZoiYTu4u3NHbA== integrity sha512-yz6S05a37Q5PRskw1eXtRet4q8C463WMJFSu1Lw7zpKSl2yCyPJYegzwXqQV/fLo/NvM9j62XTuEy7+Xe7j0Kw==
dependencies: dependencies:
"@egoist/tailwindcss-icons" "^1.7.4" "@egoist/tailwindcss-icons" "^1.7.4"
"@headlessui/tailwindcss" "^0.2.0" "@headlessui/tailwindcss" "^0.2.0"
"@headlessui/vue" "^1.7.19" "@headlessui/vue" "^1.7.19"
"@iconify-json/heroicons" "^1.1.20" "@iconify-json/heroicons" "^1.1.20"
"@nuxt/kit" "^3.10.2" "@nuxt/kit" "^3.10.3"
"@nuxtjs/color-mode" "^3.3.2" "@nuxtjs/color-mode" "^3.3.2"
"@nuxtjs/tailwindcss" "^6.11.4" "@nuxtjs/tailwindcss" "^6.11.4"
"@popperjs/core" "^2.11.8" "@popperjs/core" "^2.11.8"
@@ -7398,16 +7398,18 @@ nuxi@^3.10.1:
optionalDependencies: optionalDependencies:
fsevents "~2.3.3" fsevents "~2.3.3"
nuxt-auth-utils@0.0.18: nuxt-auth-utils@0.0.19:
version "0.0.18" version "0.0.19"
resolved "https://registry.yarnpkg.com/nuxt-auth-utils/-/nuxt-auth-utils-0.0.18.tgz#671a17f8237f2aad3c614aea727f817619984ef3" resolved "https://registry.yarnpkg.com/nuxt-auth-utils/-/nuxt-auth-utils-0.0.19.tgz#ca7834ea7c6d5881a4f3ccb5bd33f76d1f551fcc"
integrity sha512-aV+nxiLBy87RpwVTTnonCU5x4ThMjELvLxSznyVMHYKPSY8YQ92xZkWLeSW/KMYz9wKqjaBF/A8rdHKK4MQ7Qw== integrity sha512-zT12nCil5EnsaR/manaZmUpkxP7ZNCGK2frwieKnyXznwux2t1/vhv9zGLi5SSsyoee+Yq5MEwOS+RpmR74pxA==
dependencies: dependencies:
"@nuxt/kit" "^3.10.2" "@nuxt/kit" "^3.10.2"
defu "^6.1.4" defu "^6.1.4"
hookable "^5.5.3" hookable "^5.5.3"
ofetch "^1.3.3" ofetch "^1.3.3"
ohash "^1.1.3" ohash "^1.1.3"
pathe "^1.1.2"
uncrypto "^0.1.3"
nuxt-component-meta@^0.6.3: nuxt-component-meta@^0.6.3:
version "0.6.3" version "0.6.3"