-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Create Notion API and fetch data * feat: Add load more behavior * feat: WIP - Add query url support for cursor, pagesize and status * feat: WIP - Add "reading" page * feat: WIP - Add filters * fix: Fix card image issue * feat: Add readings sort * chore(deps): Update deps
- Loading branch information
Showing
31 changed files
with
1,095 additions
and
200 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# APIS | ||
NUXT_PUBLIC_LASTFM_API_KEY= | ||
NUXT_NOTION_API_PRIVATE_KEY= | ||
|
||
# Used by NuxtSimpeSitemap | ||
NUXT_PUBLIC_SITE_URL= | ||
|
||
# Notion db id | ||
NUXT_NOTION_DATABASE_ID= | ||
|
||
# Define IDE. | ||
LAUNCH_EDITOR=webstorm |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Select | ||
select { | ||
@apply block w-full rounded-md border-0 py-1.5 text-body-txt shadow-sm ring-1 ring-inset ring-polarnight-nord-3 | ||
focus:ring-2 focus:ring-inset focus:ring-accent sm:max-w-xs sm:text-sm sm:leading-6; | ||
} | ||
|
||
input[type="text"] { | ||
@apply block w-full rounded-md border-0 py-1.5 text-body-txt shadow-sm ring-1 ring-inset ring-polarnight-nord-3 | ||
focus:ring-2 focus:ring-inset focus:ring-accent sm:max-w-xs sm:text-sm sm:leading-6; | ||
} |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
@forward "base"; | ||
@forward "typography"; | ||
@forward "nuxt-content"; | ||
@forward "forms"; |
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,45 @@ | ||
|
||
|
||
.badge { | ||
@apply inline-flex items-center max-w-full px-[0.6em] py-[0.1em] rounded text-sm font-medium bg-[#E2EFFE] text-[#1D5695]; | ||
|
||
> span { | ||
@apply block truncate; | ||
} | ||
|
||
&, &--is-default { | ||
@apply bg-snowstorm-nord-4; | ||
} | ||
|
||
&--is-info { | ||
@apply bg-info text-info-content; | ||
} | ||
|
||
&--is-danger { | ||
@apply bg-danger text-danger-content; | ||
} | ||
|
||
&--is-warning { | ||
@apply bg-warning text-warning-content; | ||
} | ||
|
||
&--is-success { | ||
@apply bg-success text-success-content; | ||
} | ||
|
||
&--is-neutral { | ||
@apply bg-neutral text-neutral-content; | ||
} | ||
|
||
&--is-small { | ||
@apply text-xs; | ||
} | ||
|
||
&--is-medium { | ||
@apply text-sm; | ||
} | ||
|
||
&--is-large { | ||
@apply text-base; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
|
||
@import "btn"; | ||
@import "wrapper-outline"; | ||
@import "badge"; |
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,52 @@ | ||
<script setup lang="ts"> | ||
// Typescript Props with default values | ||
interface Props { | ||
as?: string | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
as: 'article', | ||
}); | ||
</script> | ||
|
||
<template> | ||
<Component :is="props.as" class="card"> | ||
<figure v-if="$slots.image" class="card__img-wrapper"> | ||
<slot name="image" /> | ||
</figure> | ||
|
||
<div class="card__body"> | ||
<slot /> | ||
</div> | ||
<footer v-if="$slots.footer" class="card__footer"> | ||
<slot name="footer" /> | ||
</footer> | ||
</Component> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.card { | ||
@apply relative p-0 overflow-hidden flex flex-col bg-white dark:bg-polarnight-nord-0 rounded-lg | ||
border-[1px] border-snowstorm-nord-4 dark:border-polarnight-nord-2; | ||
&__img-wrapper { | ||
@apply relative aspect-video bg-snowstorm-nord-4 dark:bg-polarnight-nord-3; | ||
:slotted(img) { | ||
@apply absolute inset-0 size-full object-cover; | ||
} | ||
} | ||
&__body { | ||
@apply flex-grow px-4 py-2.5; | ||
} | ||
&__title { | ||
@apply font-body text-base font-bold capitalize leading-tight; | ||
} | ||
&__footer { | ||
@apply px-4 py-2.5 text-sm text-muted-text; | ||
} | ||
} | ||
</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,8 @@ | ||
--- | ||
coverTitle: Reading | ||
coverSubtitle: List of articles to read | ||
coverDescription: Like a to-do list, but for articles to be read. | ||
description: Pascal Achard, senior frontend developer. Reading. List of articles to read. | ||
--- | ||
|
||
|
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,8 @@ | ||
--- | ||
coverTitle: À lire | ||
coverSubtitle: Liste d'articles à lire | ||
coverDescription: ??? | ||
description: Pascal Achard, développeur frontend senior. Test. Liste d'articles à lire. | ||
--- | ||
|
||
|
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,9 @@ | ||
--- | ||
coverTitle: Lectures | ||
coverSubtitle: Frontend, développement, design, etc. | ||
coverDescription: Base de données d’articles collectés au fil du temps. | ||
description: Pascal Achard, développeur frontend senior. Lecture. Liste d'articles à lire. | ||
--- | ||
|
||
|
||
## Articles |
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,8 @@ | ||
--- | ||
coverTitle: À lire | ||
coverSubtitle: Liste d'articles à lire | ||
coverDescription: ??? | ||
description: Pascal Achard, développeur frontend senior. Test. Liste d'articles à lire. | ||
--- | ||
|
||
|
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
Oops, something went wrong.