-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from data-miner00/dev
Improvements and fixes
- Loading branch information
Showing
18 changed files
with
181 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[files] | ||
extend-exclude = ["locales/fr.json", "content/fr/**/*.md"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup lang="ts"> | ||
import type { NavItem } from "@nuxt/content/dist/runtime/types"; | ||
type Props = { | ||
topics: NavItem[] | undefined; | ||
}; | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<div :key="topic._id" v-for="(topic, index) in topics" class="pl-4"> | ||
<NuxtLink :to="topic._path"> | ||
<span v-if="topics && index < topics?.length - 1">├</span | ||
><span v-else>└</span> <span v-if="topic.children">📁</span | ||
><span v-else>📃</span> | ||
{{ topic.title }} | ||
</NuxtLink> | ||
<VLinkChildren :topics="topic.children" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<script setup lang="ts"> | ||
type Props = { | ||
src: string; | ||
alt: string; | ||
width?: string | number; | ||
height?: string | number; | ||
}; | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="img-container w-full rounded-lg border border-solid border-gray-200 dark:border-gray-600 my-5 inline-block" | ||
> | ||
<NuxtImg | ||
:src="src" | ||
:alt="alt" | ||
class="block mx-auto" | ||
:width="width" | ||
:height="height" | ||
> | ||
</NuxtImg> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.img-container { | ||
--pattern-base-color: white; | ||
--pattern-box-color: #f6f7f8; | ||
background-size: 40px 40px; | ||
background-image: linear-gradient( | ||
to right, | ||
var(--pattern-box-color) 1px, | ||
transparent 1px | ||
), | ||
linear-gradient(to bottom, var(--pattern-box-color) 1px, transparent 1px); | ||
background-color: var(--pattern-base-color); | ||
opacity: 0.95; | ||
background-position: center; | ||
} | ||
.dark .img-container { | ||
--pattern-base-color: rgb(55 65 81); | ||
--pattern-box-color: rgb(47, 61, 80); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
title: "My Blogs" | ||
navigation.description: "Read some of my blogs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
title: "la maison" | ||
navigation.description: "Bienvenue chez moi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
title: "mes blogs" | ||
navigation.description: "Lisez certains de mes blogs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"author": "Shaun Chong <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"scripts": { | ||
"build": "nuxt build", | ||
"dev": "nuxt dev", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters