summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 18:44:51 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 18:44:51 +0200
commit506d97a7d16fa186beee3eda314492d9297e90c5 (patch)
tree2b9a7f333255caf11690d2234f88847017611507 /src/components
parent0c17d94c4d1303d73b3ad3e7a9dfef1fb8f0a883 (diff)
Added blog and changed some other stuff
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Card.astro61
-rw-r--r--src/components/Markdown.astro14
-rw-r--r--src/components/MarkdownB.astro11
-rw-r--r--src/components/Nav.astro5
-rw-r--r--src/components/Prose.astro8
5 files changed, 9 insertions, 90 deletions
diff --git a/src/components/Card.astro b/src/components/Card.astro
deleted file mode 100644
index bd6d597..0000000
--- a/src/components/Card.astro
+++ /dev/null
@@ -1,61 +0,0 @@
----
-interface Props {
- title: string;
- body: string;
- href: string;
-}
-
-const { href, title, body } = Astro.props;
----
-
-<li class="link-card">
- <a href={href}>
- <h2>
- {title}
- <span>&rarr;</span>
- </h2>
- <p>
- {body}
- </p>
- </a>
-</li>
-<style>
- .link-card {
- list-style: none;
- display: flex;
- padding: 1px;
- background-color: #23262d;
- background-image: none;
- background-size: 400%;
- border-radius: 7px;
- background-position: 100%;
- transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
- }
- .link-card > a {
- width: 100%;
- text-decoration: none;
- line-height: 1.4;
- padding: calc(1.5rem - 1px);
- border-radius: 8px;
- color: white;
- background-color: #23262d;
- opacity: 0.8;
- }
- h2 {
- margin: 0;
- font-size: 1.25rem;
- transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
- }
- p {
- margin-top: 0.5rem;
- margin-bottom: 0;
- }
- .link-card:is(:hover, :focus-within) {
- background-position: 0;
- background-image: var(--accent-gradient);
- }
- .link-card:is(:hover, :focus-within) h2 {
- color: rgb(var(--accent-light));
- }
-</style>
diff --git a/src/components/Markdown.astro b/src/components/Markdown.astro
index ef3ed1d..c9b7108 100644
--- a/src/components/Markdown.astro
+++ b/src/components/Markdown.astro
@@ -1,12 +1,12 @@
---
-import "../../styles/asides.css";
-import "../../styles/markdown.css";
-import "../../styles/props.css";
-import "../../styles/reset.css";
-import "../../styles/shiki.css";
-import "../../styles/util.css";
+import "../styles/markdown/asides.css";
+import "../styles/markdown/markdown.css";
+import "../styles/markdown/props.css";
+import "../styles/markdown/reset.css";
+import "../styles/markdown/shiki.css";
+import "../styles/markdown/util.css";
---
<div class="sl-markdown-content">
- <slot />
+ <slot />
</div>
diff --git a/src/components/MarkdownB.astro b/src/components/MarkdownB.astro
deleted file mode 100644
index adc46c1..0000000
--- a/src/components/MarkdownB.astro
+++ /dev/null
@@ -1,11 +0,0 @@
----
-import Markdown from './Markdown.astro';
-import "../../styles/asides.css";
-import "../../styles/markdown.css";
-import "../../styles/props.css";
-import "../../styles/reset.css";
-import "../../styles/shiki.css";
-import "../../styles/util.css";
----
-<Markdown><slot></Markdown>
-
diff --git a/src/components/Nav.astro b/src/components/Nav.astro
index 1d7d979..5ab1b8c 100644
--- a/src/components/Nav.astro
+++ b/src/components/Nav.astro
@@ -28,11 +28,10 @@ const directories = ["skills", "projects", "blogs"];
display: flex;
flex-wrap: wrap;
justify-content: space-between;
- border: 0;
- border-bottom: 1px;
+ border: 1.5px var(--alt);
border-style: solid;
margin-bottom: 0.75rem;
- padding-bottom: 0.75rem;
+ padding: 0.75rem;
}
#nav-links a {
margin-right: 0.15rem;
diff --git a/src/components/Prose.astro b/src/components/Prose.astro
deleted file mode 100644
index d1aa1c4..0000000
--- a/src/components/Prose.astro
+++ /dev/null
@@ -1,8 +0,0 @@
----
----
-<div
- class="prose dark:prose-invert
- prose-h1:font-bold prose-h1:text-xl
- prose-a:text-blue-300 prose-p:text-justify prose-img:rounded-xl">
- <slot />
-</div>