redesign #5

Merged
limepotato merged 9 commits from redesign into main 2024-06-25 19:00:32 -06:00
5 changed files with 263 additions and 139 deletions
Showing only changes of commit 25ee660657 - Show all commits

View file

@ -4,6 +4,10 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content="Personal website of LimePotato" /> <meta name="description" content="Personal website of LimePotato" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<meta content="woman(ish)" property="og:profile:gender">
<meta content="she/they" property="pronouns">
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />
<link rel="stylesheet" href="/css/mystyle.css" /> <link rel="stylesheet" href="/css/mystyle.css" />
<link rel="script" href="/scripts/limepot.js" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />

108
src/layouts/Layout-nochrome.astro Executable file
View file

@ -0,0 +1,108 @@
---
import Header from "../components/Header.astro";
import Head from "../components/Head.astro";
import Footer from "../components/Footer.astro";
interface Props {
title: string;
}
const { title } = Astro.props;
---
<!DOCTYPE html>
<html lang="en">
<head>
<Head />
<title>{title}</title>
</head>
<body onload="redirect()">
<Header />
<section class="section">
<div class="container">
<slot />
</div>
</section>
<Footer />
<style is:global>
.navbar .navbar-menu {
flex-grow: initial;
flex-shrink: initial;
}
:root {
--accent: 250, 179, 135;
--accent-light: 250, 221, 201;
--accent-dark: 149, 106, 81;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
main {
margin: auto;
padding: 1rem;
width: 800px;
max-width: calc(100% - 2rem);
color: white;
font-size: 20px;
line-height: 1.6;
}
.astro-a {
position: absolute;
top: -32px;
left: 50%;
transform: translatex(-50%);
width: 220px;
height: auto;
z-index: -1;
}
h1 {
font-size: 4rem;
font-weight: 700;
line-height: 1;
text-align: center;
margin-bottom: 1em;
}
.text-gradient {
background-image: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400%;
background-position: 0%;
}
.instructions {
margin-bottom: 2rem;
border: 1px solid rgba(var(--accent-light), 25%);
background: linear-gradient(
rgba(var(--accent-dark), 66%),
rgba(var(--accent-dark), 33%)
);
padding: 1.5rem;
border-radius: 8px;
}
.instructions code {
font-size: 0.8em;
font-weight: bold;
background: rgba(var(--accent-light), 12%);
color: rgb(var(--accent-light));
border-radius: 4px;
padding: 0.3em 0.4em;
}
.instructions strong {
color: rgb(var(--accent-light));
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 2rem;
padding: 0;
}
</style>
</body>
</html>

View file

@ -15,7 +15,7 @@ const { title } = Astro.props;
<Head /> <Head />
<title>{title}</title> <title>{title}</title>
</head> </head>
<body> <body onload="redirect()">
<Header /> <Header />
<section class="section"> <section class="section">
<div class="container"> <div class="container">
@ -23,7 +23,15 @@ const { title } = Astro.props;
</div> </div>
</section> </section>
<Footer /> <Footer />
</body><style is:global> <script type="text/javascript">
let chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
navigator.userAgent
);
let disclaimer = `<div class="web-disclaimer">`;
if (chromium)
window.location.replace("/nochrome");
</script>
<style is:global>
.navbar .navbar-menu { .navbar .navbar-menu {
flex-grow: initial; flex-grow: initial;
flex-shrink: initial; flex-shrink: initial;
@ -104,4 +112,5 @@ const { title } = Astro.props;
padding: 0; padding: 0;
} }
</style> </style>
</body>
</html> </html>

View file

@ -6,16 +6,9 @@ import Card from "../components/Card.astro";
<Layout title="LimePot"> <Layout title="LimePot">
<main> <main>
<div class="content"> <div class="content">
<center>
<h1 class="title">LimePotato</h1>
<marquee Behavior="Alternate"> <marquee Behavior="Alternate">
<h2> <h1 class="title">LimePotato</h1>
<span class="text-gradient">Hello World</span>
</h2>
</marquee> </marquee>
<!--
<a href="/404" style="font-size: 34px" class="subtitle">0 Days since last incident.</a>
-->
<hr /> <hr />
<p class="title">Name(s):</p> <p class="title">Name(s):</p>
<p> <p>
@ -26,61 +19,12 @@ import Card from "../components/Card.astro";
>. >.
</p> </p>
<hr /> <hr />
<p class="title">Pronoun'd:</p> <p class="title">Pronoun'd:</p>
<p> <p>
<span style="color: #fab387;">[She/They]</span>, Alternatively: <a <span style="color: #fab387;">[She/They]</span>, Alternatively: <a
href="https://pronouns.cc/@LimePotato"><u>pronouns.cc page</u></a href="https://pronouns.cc/@LimePotato"><u>pronouns.cc page</u></a
>. >.
</p> </p>
<hr />
<p class="title">Some Info:</p>
<p>
I do a lot of tinkering with various things, hardware and software.
Currently messing around with Web Development, Minecraft mods, 3D
Printing, Linux, System Administration, Pixel Art, and whatever comes
to mind really. Checkout my <a href="https://limepot.xyz/projects"
><u>Projects</u></a
> to see what I'm currently working on.
</p>
<br />
<br /><br />
<p class="instructions">
<strong>Where to find/contact me:</strong>
</p><br />
<ul role="list" class="link-card-grid">
<Card
source="/assets/icons/mail-outline.svg"
href="mailto: limepot@protonmail.ch"
title="Email"
alt="Icon of a piece of Mail"
/>
<Card
source="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
href="https://ouroboros.gay/@limepot"
title="Fediverse"
alt="Fediverse Icon"
/>
<Card
source="/assets/icons/listenbrainzicon.png"
href="https://listenbrainz.org/user/LimePotato/"
title="ListenBrainz Profile"
alt="ListenBrainz Icon"
/>
<Card
source="/assets/icons/logo-youtube.svg"
href="https://www.youtube.com/channel/UCk_yKIpDnMv_DvuDb9RGfcA"
title="Youtube"
alt="Youtube Logo"
/>
<Card
source="/assets/icons/logo-steam.svg"
href="https://steamcommunity.com/id/limepot/"
title="Steam"
alt="Steam Logo"
/>
</ul>
</center>
</div> </div>
</main> </main>
</Layout> </Layout>

59
src/pages/nochrome.astro Normal file
View file

@ -0,0 +1,59 @@
---
import Layout from "../layouts/Layout-nochrome.astro";
import Card from "../components/Card-noimg.astro";
---
<Layout title="LimePot">
<main>
<div class="content" style="text-align: center;">
<h1 class="title">You Are Using a Chromium-based Browser.</h1>
<h2 class="subtitle">
There are many reasons not to use chrome (as well as base firefox), consider using an alternative
browser.
</h2>
<hr />
<a href="https://fuckoffgoogle.de/"
><h2 class="subtitle">Google is Evil</h2></a
>
<a href="https://privacytests.org/"
><h2 class="subtitle">Browser Privacy Tests</h2></a
>
<hr />
<h2 class="subtitle">Some Recommendations</h2>
<ul role="list" class="link-card-grid">
<Card
href="https://librewolf.net/"
title="Librewolf"
/>
<Card
href="https://mullvad.net/en/browser"
title="Mullvad Browser"
/>
<Card
href="https://www.waterfox.net/"
title="Waterfox"
/>
<Card
href="https://www.netsurf-browser.org/"
title="Netsurf"
/>
<Card
href="https://awesomekling.github.io/Ladybird-a-new-cross-platform-browser-project/"
title="Ladybird"
/>
<Card
href="https://www.microsoft.com/en-us/download/internet-explorer"
title="Internet Explorer"
/>
</ul>
<hr />
<a
href="https://chromewebstore.google.com/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg"
><h2>
If you are really dead-set on using chromium to browse this website,
you can use a user-agent switcher
</h2></a
>
</div>
</main>
</Layout>