{{props.description}}
+From dfe3a8c1fab8864b37925ccc43c08324ff28e097 Mon Sep 17 00:00:00 2001
From: Tabby <41929769+tabby-cat-nya@users.noreply.github.com>
Date: Sat, 5 Apr 2025 19:01:47 +1100
Subject: [PATCH] improved blog post component
---
assets/css/main.scss | 76 +++++++++++-----------
components/BigButton.vue | 28 +++++++++
components/BlogCard.vue | 132 +++++++++++++++++++++++++++++++++++++++
pages/blog-index.vue | 38 ++++++-----
pages/blog/[...slug].vue | 2 +-
pages/hi.vue | 2 +-
pages/index.vue | 56 +++++++++--------
pages/newIndex.vue | 18 ++++++
8 files changed, 272 insertions(+), 80 deletions(-)
create mode 100644 components/BigButton.vue
create mode 100644 components/BlogCard.vue
create mode 100644 pages/newIndex.vue
diff --git a/assets/css/main.scss b/assets/css/main.scss
index 3cce557..71b57a0 100644
--- a/assets/css/main.scss
+++ b/assets/css/main.scss
@@ -4,7 +4,7 @@
@import url('https://fonts.googleapis.com/css2?family=Baloo+Chettan+2:wght@400..800&display=swap');
:root {
- --bg: #2b182b;
+ --bg: #351d3a;
--fg: white;
--accent: #e17ff5;
@@ -13,31 +13,37 @@
--max-width: 70rem;
}
-html {
- scroll-behavior: smooth;
-}
-
-body {
+body{
background-color: var(--bg);
color: var(--fg);
- display: flex;
- flex-direction: column;
- // font-family: Comfortaa;
font-family: "Baloo Chettan 2";
- height: 100dvh;
- overflow-x: hidden;
- overflow-y: scroll;
- width: 100dvw;
- transition-property: background-color, color;
- transition-duration: 250ms;
-}
-@media (prefers-color-scheme: light) {
- body {
- background-color: var(--fg);
- color: var(--bg);
- }
}
+// html {
+// scroll-behavior: smooth;
+// }
+
+// body {
+// background-color: var(--bg);
+// color: var(--fg);
+// display: flex;
+// flex-direction: column;
+// // font-family: Comfortaa;
+// font-family: "Baloo Chettan 2";
+// height: 100dvh;
+// overflow-x: hidden;
+// overflow-y: scroll;
+// width: 100dvw;
+// transition-property: background-color, color;
+// transition-duration: 250ms;
+// }
+// @media (prefers-color-scheme: light) {
+// body {
+// background-color: var(--fg);
+// color: var(--bg);
+// }
+// }
+
a {
color: var(--accent);
transition-duration: 200ms;
@@ -47,20 +53,20 @@ a {
}
}
-::-webkit-scrollbar {
- width: 5px;
-}
+// ::-webkit-scrollbar {
+// width: 5px;
+// }
-::-webkit-scrollbar-track {
- background-color: var(--accent-dark);
- border-radius: 10px;
-}
+// ::-webkit-scrollbar-track {
+// background-color: var(--accent-dark);
+// border-radius: 10px;
+// }
-::-webkit-scrollbar-thumb {
- background: white;
- border-radius: 10px;
+// ::-webkit-scrollbar-thumb {
+// background: white;
+// border-radius: 10px;
- &:hover {
- background: var(--accent);
- }
-}
\ No newline at end of file
+// &:hover {
+// background: var(--accent);
+// }
+// }
\ No newline at end of file
diff --git a/components/BigButton.vue b/components/BigButton.vue
new file mode 100644
index 0000000..c45f6c4
--- /dev/null
+++ b/components/BigButton.vue
@@ -0,0 +1,28 @@
+
+
+ {{props.subheading}} - #{{ props.id }} {{props.subheading}} - #{{ props.id }} - {{ props.tags }} {{props.description}}{{props.text}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/BlogCard.vue b/components/BlogCard.vue
new file mode 100644
index 0000000..8a266c4
--- /dev/null
+++ b/components/BlogCard.vue
@@ -0,0 +1,132 @@
+
+
+
+
+ {{props.heading}}
+