From fc7b98afddd02a29ddd94f8bdc60a4ccd7ebe274 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 21 Jun 2024 16:01:15 +0200 Subject: [PATCH] Implement blog --- app/app.vue | 4 +- app/components/AppHeader.vue | 25 ++--- app/components/AppTitle.vue | 2 +- app/components/content/Activity.vue | 14 ++- app/components/uses/Item.vue | 2 +- app/pages/index.vue | 2 +- app/pages/uses.vue | 4 +- app/pages/writings/[slug].vue | 101 +++++++++++++++++++ app/pages/writings/index.vue | 29 ++++++ content/index.md | 2 - content/writings/how-does-my-website-work.md | 39 +++++++ nuxt.config.ts | 3 +- public/{ => uses}/jetbrains.png | Bin 13 files changed, 201 insertions(+), 26 deletions(-) create mode 100644 app/pages/writings/[slug].vue create mode 100644 content/writings/how-does-my-website-work.md rename public/{ => uses}/jetbrains.png (100%) diff --git a/app/app.vue b/app/app.vue index 2b11ce5..9dd7aea 100644 --- a/app/app.vue +++ b/app/app.vue @@ -10,7 +10,7 @@ useSeoMeta({ - + @@ -18,7 +18,7 @@ useSeoMeta({ diff --git a/app/components/AppTitle.vue b/app/components/AppTitle.vue index 1d77afa..4cae7da 100644 --- a/app/components/AppTitle.vue +++ b/app/components/AppTitle.vue @@ -18,7 +18,7 @@ defineProps({ > {{ title }} -

+

{{ description }}

diff --git a/app/components/content/Activity.vue b/app/components/content/Activity.vue index f527a09..d34c7db 100644 --- a/app/components/content/Activity.vue +++ b/app/components/content/Activity.vue @@ -17,10 +17,16 @@ useIntervalFn(async () => await refresh(), 5000) class="flex items-start gap-2" > -
+
+
+
+
I'm actually working on {{ codingActivity.details }}, diff --git a/app/components/uses/Item.vue b/app/components/uses/Item.vue index 961874f..0483473 100644 --- a/app/components/uses/Item.vue +++ b/app/components/uses/Item.vue @@ -15,7 +15,7 @@ defineProps({

{{ item.name }}

-

+

{{ item.description }}

diff --git a/app/pages/index.vue b/app/pages/index.vue index 1bae8cb..1ab909d 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,5 +1,5 @@ diff --git a/app/pages/uses.vue b/app/pages/uses.vue index 71a7f97..3675e38 100644 --- a/app/pages/uses.vue +++ b/app/pages/uses.vue @@ -50,9 +50,9 @@ const ide = items.value!.filter(item => item.category === 'ide')
  • -

    +

    My IntelliJ Idea Ultimate IDE

  • diff --git a/app/pages/writings/[slug].vue b/app/pages/writings/[slug].vue new file mode 100644 index 0000000..ed58044 --- /dev/null +++ b/app/pages/writings/[slug].vue @@ -0,0 +1,101 @@ + + + + + diff --git a/app/pages/writings/index.vue b/app/pages/writings/index.vue index 5f9543e..764d2a7 100644 --- a/app/pages/writings/index.vue +++ b/app/pages/writings/index.vue @@ -4,6 +4,10 @@ useSeoMeta({ title: 'My Shelf | Arthur Danjou', description }) + +const { data: writings } = await useAsyncData('all-writings', () => + queryContent('/writings').sort({ published: -1 }).without('body').find() +) diff --git a/content/index.md b/content/index.md index dbcbefe..9641cd6 100644 --- a/content/index.md +++ b/content/index.md @@ -1,5 +1,3 @@ -# Arthur Danjou - Hey, I'm Arthur Danjou, a mathematics student at the Paris-Saclay Faculty of Science in France. With a **deep understanding of emerging technologies**, I'm at the heart of a rapidly expanding field. My background in **mathematics** gives me a head start in understanding the concepts and theories behind these **technologies** and in designing them effectively. diff --git a/content/writings/how-does-my-website-work.md b/content/writings/how-does-my-website-work.md new file mode 100644 index 0000000..766b191 --- /dev/null +++ b/content/writings/how-does-my-website-work.md @@ -0,0 +1,39 @@ +--- +slug: how-does-my-website-work +title: 'How does my website work?' +description: 'My new website is using a fantastical stack and I am explaining how my playground works' +publishedAt: '2024/06/21' +readingTime: 7 +--- + +## Ideas and Goals + +### A playground for ideas + +Testing frameworks (new nuxt 3), improving css style, discovering new technologies and frameworks + +### Fast + +Faster than the old one thanks to the new version + +## FrontEnd & BackEnd with Nuxt 3 + +### Nuxt3 & NuxtUI, Tailwind + +### Database & Deployment + +NuxtHub & Cloudflare + +### Editing + +Nuxt Studio + +## How much everything costs + +0 thanks to nuxt free plan + +## What's next + +### Performance + +### Style & Animation \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index b039376..30c37b8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -57,7 +57,8 @@ export default defineNuxtConfig({ families: { 'Inter': [400, 500, 600, 700, 800, 900], 'Sofia Sans': [400], - 'DM Sans': [400, 500, 600, 700, 800, 900] + 'DM Sans': [400, 500, 600, 700, 800, 900], + 'Dancing Script': [400, 700] } }, diff --git a/public/jetbrains.png b/public/uses/jetbrains.png similarity index 100% rename from public/jetbrains.png rename to public/uses/jetbrains.png