From aa93ebdbf39d562846b9ce37aee41bc5c8b94475 Mon Sep 17 00:00:00 2001 From: Daniel Svitan Date: Tue, 16 May 2023 17:31:08 -0700 Subject: [PATCH] :hammer: Removes useless code --- public/favicon.svg | 13 ++---- src/components/Card.astro | 64 ----------------------------- src/components/Center.astro | 14 +++++++ src/components/TestComp.vue | 12 ------ src/layouts/Page.astro | 24 ++--------- src/pages/index.astro | 80 ++----------------------------------- src/pages/test1.astro | 7 ---- tailwind.config.cjs | 20 ++++++---- 8 files changed, 39 insertions(+), 195 deletions(-) delete mode 100644 src/components/Card.astro create mode 100644 src/components/Center.astro delete mode 100644 src/components/TestComp.vue delete mode 100644 src/pages/test1.astro diff --git a/public/favicon.svg b/public/favicon.svg index f157bd1..82ab793 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,9 +1,4 @@ - - - - + + + \ No newline at end of file diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index c261c79..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,64 +0,0 @@ ---- -export interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - - - diff --git a/src/components/Center.astro b/src/components/Center.astro new file mode 100644 index 0000000..117a7cd --- /dev/null +++ b/src/components/Center.astro @@ -0,0 +1,14 @@ +--- +export interface Props { + direction: "row" | "column" | "row-reverse" | "column-reverse"; +} + +const { direction = "column" } = Astro.props; +--- + +
+ +
diff --git a/src/components/TestComp.vue b/src/components/TestComp.vue deleted file mode 100644 index 8a9116a..0000000 --- a/src/components/TestComp.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index ae3c145..fc1f8eb 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -15,29 +15,13 @@ const { title } = Astro.props; {title} - -
+ +
- diff --git a/src/pages/index.astro b/src/pages/index.astro index b2ee2f5..5f6f44d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,82 +1,10 @@ --- +import Center from "../components/Center.astro"; import Page from "../layouts/Page.astro"; -import Card from "../components/Card.astro"; -import TestComp from "../components/TestComp.vue"; --- - - +
+

lmao

+
- - diff --git a/src/pages/test1.astro b/src/pages/test1.astro deleted file mode 100644 index 7fa057f..0000000 --- a/src/pages/test1.astro +++ /dev/null @@ -1,7 +0,0 @@ ---- -import Page from "../layouts/Page.astro"; ---- - - -

This is test 1 (astro)

-
diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 71684a4..080ea94 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -2,14 +2,20 @@ module.exports = { content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], theme: { - extend: { - width: { - page: "100vw", - }, - height: { - page: "100vh", - }, + fontFamily: { + dm: ["DM Sans", "sans-serif"], + "dm-bold": ["DM Sans Bold", "sans-serif"], }, + colors: { + transparent: "transparent", + primary: "#121212", + surface: "#232323", + accent: "#1ed760", + "on-primary": "#eeeeee", + "on-surface": "#e0e0e0", + "on-accent": "#121212", + }, + extend: {}, }, plugins: [], };