-
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.
- Loading branch information
1 parent
1f8b432
commit a646f2e
Showing
16 changed files
with
413 additions
and
171 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,53 +1,53 @@ | ||
{ | ||
"name": "remfo", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"test": "vitest", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write ." | ||
}, | ||
"devDependencies": { | ||
"@libsql/client": "0.6.0", | ||
"@lucia-auth/adapter-postgresql": "3.1.2", | ||
"@lucia-auth/adapter-sqlite": "3.0.1", | ||
"@sveltejs/adapter-auto": "3.2.1", | ||
"@sveltejs/adapter-vercel": "5.3.0", | ||
"@sveltejs/kit": "2.5.10", | ||
"@sveltejs/vite-plugin-svelte": "3.1.0", | ||
"@types/eslint": "8.56.10", | ||
"@typescript-eslint/eslint-plugin": "7.10.0", | ||
"@typescript-eslint/parser": "7.10.0", | ||
"arctic": "1.9.0", | ||
"autoprefixer": "10.4.19", | ||
"dotenv": "16.4.5", | ||
"drizzle-kit": "0.21.4", | ||
"drizzle-orm": "0.30.10", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-svelte": "2.39.0", | ||
"lucia": "3.2.0", | ||
"postcss": "8.4.38", | ||
"postgres": "3.4.4", | ||
"prettier": "3.2.5", | ||
"prettier-plugin-svelte": "3.2.3", | ||
"svelte": "5.0.0-next.141", | ||
"svelte-check": "3.7.1", | ||
"sveltekit-superforms": "2.13.1", | ||
"tailwindcss": "3.4.3", | ||
"tslib": "2.6.2", | ||
"typescript": "5.4.5", | ||
"vite": "5.2.11", | ||
"vitest": "1.6.0", | ||
"zod": "3.23.8", | ||
"@tailwindcss/typography": "0.5.13", | ||
"prettier-plugin-tailwindcss": "0.5.14" | ||
}, | ||
"type": "module", | ||
"dependencies": {} | ||
"name": "remfo", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"test": "vitest", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write ." | ||
}, | ||
"devDependencies": { | ||
"@libsql/client": "0.6.0", | ||
"@lucia-auth/adapter-postgresql": "3.1.2", | ||
"@lucia-auth/adapter-sqlite": "3.0.1", | ||
"@sveltejs/adapter-auto": "3.2.1", | ||
"@sveltejs/adapter-vercel": "5.3.0", | ||
"@sveltejs/kit": "2.5.10", | ||
"@sveltejs/vite-plugin-svelte": "3.1.0", | ||
"@types/eslint": "8.56.10", | ||
"@typescript-eslint/eslint-plugin": "7.10.0", | ||
"@typescript-eslint/parser": "7.10.0", | ||
"arctic": "1.9.0", | ||
"autoprefixer": "10.4.19", | ||
"dotenv": "16.4.5", | ||
"drizzle-kit": "0.21.4", | ||
"drizzle-orm": "0.30.10", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-svelte": "2.39.0", | ||
"lucia": "3.2.0", | ||
"postcss": "8.4.38", | ||
"postgres": "3.4.4", | ||
"prettier": "3.2.5", | ||
"prettier-plugin-svelte": "3.2.3", | ||
"svelte": "5.0.0-next.142", | ||
"svelte-check": "3.7.1", | ||
"sveltekit-superforms": "2.14.0", | ||
"tailwindcss": "3.4.3", | ||
"tslib": "2.6.2", | ||
"typescript": "5.4.5", | ||
"vite": "5.2.11", | ||
"vitest": "1.6.0", | ||
"zod": "3.23.8", | ||
"@tailwindcss/typography": "0.5.13", | ||
"prettier-plugin-tailwindcss": "0.5.14" | ||
}, | ||
"type": "module", | ||
"dependencies": {} | ||
} |
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,3 +1,78 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 222.2 84% 4.9%; | ||
|
||
--muted: 210 40% 96.1%; | ||
--muted-foreground: 215.4 16.3% 46.9%; | ||
|
||
--popover: 0 0% 100%; | ||
--popover-foreground: 222.2 84% 4.9%; | ||
|
||
--card: 0 0% 100%; | ||
--card-foreground: 222.2 84% 4.9%; | ||
|
||
--border: 214.3 31.8% 91.4%; | ||
--input: 214.3 31.8% 91.4%; | ||
|
||
--primary: 222.2 47.4% 11.2%; | ||
--primary-foreground: 210 40% 98%; | ||
|
||
--secondary: 210 40% 96.1%; | ||
--secondary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--accent: 210 40% 96.1%; | ||
--accent-foreground: 222.2 47.4% 11.2%; | ||
|
||
--destructive: 0 72.2% 50.6%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: 222.2 84% 4.9%; | ||
|
||
--radius: 0.5rem; | ||
} | ||
|
||
.dark { | ||
--background: 222.2 84% 4.9%; | ||
--foreground: 210 40% 98%; | ||
|
||
--muted: 217.2 32.6% 17.5%; | ||
--muted-foreground: 215 20.2% 65.1%; | ||
|
||
--popover: 222.2 84% 4.9%; | ||
--popover-foreground: 210 40% 98%; | ||
|
||
--card: 222.2 84% 4.9%; | ||
--card-foreground: 210 40% 98%; | ||
|
||
--border: 217.2 32.6% 17.5%; | ||
--input: 217.2 32.6% 17.5%; | ||
|
||
--primary: 210 40% 98%; | ||
--primary-foreground: 222.2 47.4% 11.2%; | ||
|
||
--secondary: 217.2 32.6% 17.5%; | ||
--secondary-foreground: 210 40% 98%; | ||
|
||
--accent: 217.2 32.6% 17.5%; | ||
--accent-foreground: 210 40% 98%; | ||
|
||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 210 40% 98%; | ||
|
||
--ring: hsl(212.7, 26.8%, 83.9); | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
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,16 @@ | ||
<script> | ||
import Logout from '$lib/components/Logout.svelte'; | ||
</script> | ||
|
||
<header class="body-font sticky top-0 z-10 border-b bg-white text-gray-600"> | ||
<div class="container mx-auto flex flex-col flex-wrap items-center p-2 md:flex-row"> | ||
<a class="title-font mb-4 flex items-center font-medium text-gray-900 md:mb-0" href="/"> | ||
<img src="/logo.png" class="h-10 w-10 rounded-full" alt="logo" /> | ||
</a> | ||
<nav class="flex flex-wrap items-center justify-center text-base md:ml-auto md:mr-auto"> | ||
<a class="mr-5 hover:text-gray-900" href="/">Home</a> | ||
<a class="mr-5 hover:text-gray-900" href="/all">All Cards</a> | ||
</nav> | ||
<Logout /> | ||
</div> | ||
</header> |
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 @@ | ||
<script lang="ts"> | ||
import Header from '$lib/components/Header.svelte'; | ||
</script> | ||
|
||
<div class="relative min-h-screen"> | ||
<Header /> | ||
<slot></slot> | ||
</div> |
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 |
---|---|---|
@@ -1,36 +1,20 @@ | ||
<script lang="ts"> | ||
import Logout from '$lib/components/Logout.svelte'; | ||
import CardAddTable from './CardAddTable.svelte'; | ||
import CardReviewTable from './CardReviewTable.svelte'; | ||
import AddNewCard from './AddNewCard.svelte'; | ||
import ReviewCard from './ReviewCard.svelte'; | ||
export let data; | ||
</script> | ||
|
||
<img src={data.user?.picture} alt="User's display" /> | ||
<h1>Hey {data.user?.name},</h1> | ||
|
||
<ol type="A"> | ||
<li> | ||
<CardAddTable data={data.addForm} /> | ||
<hr /> | ||
</li> | ||
<li> | ||
{#if data.cards.length > 0} | ||
<CardReviewTable data={data.reviewForm} card={data.cards[0]} /> | ||
{/if} | ||
Total cards: {data.cards?.length} | ||
<hr /> | ||
</li> | ||
<li> | ||
<h2>Others</h2> | ||
<nav> | ||
<ol> | ||
<li> | ||
<a href="/all">All Cards</a> | ||
</li> | ||
<li> | ||
<Logout /> | ||
</li> | ||
</ol> | ||
</nav> | ||
</li> | ||
</ol> | ||
<section class="body-font text-gray-600"> | ||
<div class="container mx-auto flex max-w-screen-md flex-wrap px-5 py-10"> | ||
<div class="-m-4 flex w-full flex-wrap"> | ||
<div class="p-4 md:w-full lg:w-1/2"> | ||
<AddNewCard data={data.addForm} /> | ||
</div> | ||
<div class="p-4 md:w-full lg:w-1/2"> | ||
{#if data.card} | ||
<ReviewCard data={data.reviewForm} card={data.card} /> | ||
{/if} | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
Oops, something went wrong.