diff --git a/src/layouts/DocsLayout.astro b/src/layouts/DocsLayout.astro index 381782b..bdd380d 100644 --- a/src/layouts/DocsLayout.astro +++ b/src/layouts/DocsLayout.astro @@ -14,9 +14,23 @@ const docs = unsortedDocs.sort((a, b) => title={title} description="This is my personal website with my projects, docs and other useful stuff." > +
+

{frontmatter.title}

+
+
+ +
-
- Respository
-

{frontmatter.title}

-
-
-
-
diff --git a/src/pages/docs.astro b/src/pages/docs.astro index f8068fa..b521c44 100644 --- a/src/pages/docs.astro +++ b/src/pages/docs.astro @@ -1,5 +1,6 @@ --- import Layout from "../layouts/Layout.astro"; +import { Icon } from "astro-icon/components"; const unsortedDocs = await Astro.glob("./docs/*/index.mdx"); const docs = unsortedDocs.sort( (a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date) @@ -16,29 +17,18 @@ const docs = unsortedDocs.sort( { docs.map((doc) => (
-
- - - Respository - -
+
-

{doc.frontmatter.title}

+

+ {doc.frontmatter.repo} +

{doc.frontmatter.subtitle}

{doc.frontmatter.has_thumbnail ? ( - - - + ) : null}
)) diff --git a/src/pages/docs/discord-sdk-godot/editor_presence.mdx b/src/pages/docs/discord-sdk-godot/editor_presence.mdx index f14dcc2..920a78a 100644 --- a/src/pages/docs/discord-sdk-godot/editor_presence.mdx +++ b/src/pages/docs/discord-sdk-godot/editor_presence.mdx @@ -3,7 +3,7 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Editor Presence --- - +

@@ -17,4 +17,4 @@ title: Editor Presence Editor Presence also updates a bit slower on client side. Your friends will see what you are doing in the exact second even when its not updated for you directly. *** (old image) - + diff --git a/src/styles/footer.scss b/src/styles/footer.scss index 518d186..1b64976 100644 --- a/src/styles/footer.scss +++ b/src/styles/footer.scss @@ -2,7 +2,6 @@ footer { display: flexbox; align-items: center; text-align: center; - position: absolute; bottom: 0; width: 100%; margin-bottom: 2vh; diff --git a/src/styles/main.scss b/src/styles/main.scss index 566cf48..ffa2802 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -24,6 +24,7 @@ main{ .content { display: flex; flex-direction: column; + position: inherit; align-self: center; background-color: $highlight-primary; border-radius: 25px; @@ -32,6 +33,7 @@ main{ padding: 2vw; width: 60vw; margin-bottom: 11vh; + } .second-content { align-self: center; @@ -46,12 +48,6 @@ main{ margin-bottom: 11vh; } -.sidebar{ - right: 0; - top: 0; -} - - td { border-inline: 15px solid; border-color: #ffffff00; @@ -91,5 +87,5 @@ h3 { } svg{ - margin-bottom: -1.5%; + margin-bottom: -2px; } \ No newline at end of file diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 5420ef0..9215868 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -1,10 +1,12 @@ @import "./_var.scss"; .sidebar { + left: 0; + top: 0; + font-size: 18px; display: flex; justify-content: space-evenly; - .sidebar-entries { - opacity: 1; - } + margin-top: 3vh; + width: 20vw; a { color: white; text-decoration: none; @@ -12,27 +14,8 @@ .active { color: $accent; } - - rotate: 0deg; - svg { - transition: 0.3s ease-in-out; - rotate: 0deg; - } - &:checked ~ { - svg { - rotate: 180deg; - } - div { - //only works when the checkbox is on the correct line in the astro file - margin-left: -330%; - } - } - - &[type="checkbox"] { - position: absolute; - transform: scale(2); - z-index: 2; - &:checked { - } + .gh-mark { + text-decoration: underline; + color: $accent; } }