Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern"
}
}
}
}
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"@astrojs/check": "^0.9.1",
"astro": "^4.13.1",
"typescript": "^5.4.5"
},
"devDependencies": {
"sass": "^1.79.2"
}
}
164 changes: 0 additions & 164 deletions public/icons/codeberg.svg

This file was deleted.

8 changes: 0 additions & 8 deletions public/icons/discord.svg

This file was deleted.

7 changes: 0 additions & 7 deletions public/icons/external-link.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/icons/github.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/icons/gitlab.svg

This file was deleted.

11 changes: 0 additions & 11 deletions public/icons/mail.svg

This file was deleted.

9 changes: 0 additions & 9 deletions public/icons/matrix.svg

This file was deleted.

7 changes: 0 additions & 7 deletions public/icons/reddit.svg

This file was deleted.

31 changes: 21 additions & 10 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,33 +1,44 @@
---
import { useTranslations } from "../i18n/utils";
import "../styles/_colors.css";

const tr = useTranslations(Astro.params.lang as never);
const lang = (Astro.params.lang || "en") as never;
const tr = useTranslations(lang);
---

<footer class="footer">
{ tr("footer.txt1") } &hearts; { tr("footer.txt2") }
{ tr("footer.txt1") } <i class="nf nf-fa-heart"></i> { tr("footer.txt2") }
· <a href="https://github.com/retrozinndev/retrozinn.dev">{ tr("footer.txt3") }</a>
</footer>

<style>
<style lang="scss">

@import "../styles/_colors.scss";

.footer {
color: lightgray;
overflow: hidden;
display: block;
width: 100%;
font-family: Free Sans, Open Sans, Segoe UI Alternative, Segoe UI, sans-serif;
font-size: 13px;
text-align: center;
padding-block: 10px;
}
}

a {
body.dark a,
body.dark .footer {
color: lightgray;
transition: 250ms;
}

a:hover {
color: var(--new-accent-color);
body.light a,
body.light .footer {
color: gray;
}

body.dark a:hover {
color: $accent-color;
}

body.light a:hover {
color: $accent-color-dark;
}
</style>
23 changes: 14 additions & 9 deletions src/components/LinkButton.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import "../styles/_colors.css";

interface Props {
href: string;
}
Expand All @@ -12,7 +10,9 @@ const { href } = Astro.props;
<slot />
</a>

<style>
<style lang="scss">

@import "../styles/_colors.scss";

a {
display: inline-flex;
Expand All @@ -21,19 +21,24 @@ const { href } = Astro.props;
font-weight: 600;
width: fit-content;
box-sizing: content-box;
color: white;
color: inherit;

border: solid 0.032em var(--new-accent-color);
padding: 2px 8px;
border: solid 0.032em $accent-color;
padding: 5px 8px;
border-radius: 12px;
text-decoration: none;
-webkit-tap-highlight-color: transparent;
transition: 150ms linear;
}

a:hover {
color: var(--new-accent-color);
background-color: var(--new-darker-background-color);
body.dark a:hover {
color: white;
background-color: $accent-color-dark;
}

body.light a:hover {
color: black;
background-color: $accent-color;
}
</style>

Expand Down
Loading