summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 01:07:20 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 01:07:20 +0200
commitc839ead325d552496c7faf6d72428d3589d88304 (patch)
treec314784ab5c2486b30954367deed6460df523f81 /src/pages
parent098dce9f35621753ab0af28fffbf97d4c9310437 (diff)
Committing with a bunch of changes
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/.test.astro.swpbin12288 -> 0 bytes
-rw-r--r--src/pages/index.astro228
-rw-r--r--src/pages/main.astro123
-rw-r--r--src/pages/test.astro12
4 files changed, 241 insertions, 122 deletions
diff --git a/src/pages/.test.astro.swp b/src/pages/.test.astro.swp
deleted file mode 100644
index 96ddfdf..0000000
--- a/src/pages/.test.astro.swp
+++ /dev/null
Binary files differ
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 0c1233f..172be47 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,123 +1,121 @@
---
import Layout from '../layouts/Layout.astro';
-import Card from '../components/Card.astro';
----
+import TerminalBorder from '../components/TerminalBorder.astro'
+import Nav from '../components/Nav.astro'
+
+const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsrdN6e4XbkJfV/FbH3GY8ujWgxSCSbYiwzQ4rKyren`
+const fingerprint = `
++--[ED25519 256]--+
+|+o.+oE*B%* o |
+|o=...+++=.+ + |
+|o B . o. . o + |
+|.+ + o . = |
+|. + . S o + |
+| . o . + |
+|. . . |
+|.. |
+|. |
++----[SHA256]-----+`.trimStart()
+const aboutMe = `
+Hi! I'm Kyren, a software engineer and Minecraft plugin freelancer,
+I love working with Rust, Golang and Java.
+I am also a terminal nerd and linux enthusiast who uses NVIM btw.
+And when I am not coding I am most likely playing video games,
+watching Anime or solving Rubik's cubes fast.
+Test`.trimStart()
+---
<Layout title="Kyren's Website">
- <main>
- <svg
- class="astro-a"
- width="495"
- height="623"
- viewBox="0 0 495 623"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- aria-hidden="true"
- >
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z"
- fill="url(#paint0_linear_1805_24383)"></path>
- <defs>
- <linearGradient
- id="paint0_linear_1805_24383"
- x1="247.358"
- y1="0"
- x2="247.358"
- y2="622.479"
- gradientUnits="userSpaceOnUse"
- >
- <stop stop-opacity="0.9"></stop>
- <stop offset="1" stop-opacity="0.2"></stop>
- </linearGradient>
- </defs>
- </svg>
- <h1>Welcome to <span class="text-gradient">Kyren's Site</span></h1>
- <p class="instructions">
- To get started, open the directory <code>src/pages</code> in your project.<br />
- <strong>Code Challenge:</strong> Tweak HMMM "Welcome to Astro" message above.
- </p>
- <ul role="list" class="link-card-grid">
- <Card
- href="https://docs.astro.build/"
- title="Documentation"
- body="Learn how Astro works and explore the official API docs."
- />
- <Card
- href="https://astro.build/integrations/"
- title="Integrations"
- body="Supercharge your project with new frameworks and libraries."
- />
- <Card
- href="https://astro.build/themes/"
- title="Themes"
- body="Explore a galaxy of community-built starter themes."
- />
- <Card
- href="https://astro.build/chat/"
- title="Community"
- body="Come say hi to our amazing Discord community. ❤️"
- />
- </ul>
- </main>
+ <main>
+ <Nav path=""/>
+ <div id="content">
+ <div id="left" class="column">
+ <TerminalBorder header='Profile'>
+ <div class="flex items-center space-x-3">
+ <img src="logo.svg" alt="picture" class="h-[100%] object-cover" />
+ <pre id="sshKeyCopy" class="text-[75%] flex-1 ">{fingerprint}</pre>
+ </div>
+ </TerminalBorder>
+ <TerminalBorder header="Name">
+ <span>Kyren</span>
+ </TerminalBorder>
+ <TerminalBorder header="Email">
+ <span>Kyren223@proton.me</span>
+ </TerminalBorder>
+ <TerminalBorder header="Timezone">
+ <span>UTC+2</span>
+ </TerminalBorder>
+ <TerminalBorder header="SSH Key">
+ <div class="w-[100%] flex items-center space-x-2 hover:text-[var(--alt)]">
+ <span id="sshKey" class="hover:text-[var(--alt)] cursor-pointer truncate flex-1">{sshKey}</span>
+ <button id="sshKeyCopy" class="flex items-center justify-center ml-auto hover:text-[var(--alt)]">
+ <svg width="100%" height="100%" viewBox="0 -3 24 24" xmlns="http://www.w3.org/2000/svg" fill="none">
+ <path fill="currentColor" fill-rule="evenodd" d="M4 2a2 2 0 00-2 2v9a2 2 0 002 2h2v2a2 2 0 002 2h9a2 2 0 002-2V8a2 2 0 00-2-2h-2V4a2 2 0 00-2-2H4zm9 4V4H4v9h2V8a2 2 0 012-2h5zM8 8h9v9H8V8z"/>
+ </svg>
+ </button>
+ </div>
+ </TerminalBorder>
+ </div>
+ <div id="right" class="column">
+ <TerminalBorder header="About Me">
+ <p>{aboutMe}</p>
+ </TerminalBorder>
+ <TerminalBorder header="Skills" margin='30px 0px'>
+ <a href="/about/">cd ~/imabanana80/about </a>
+ </TerminalBorder>
+ <TerminalBorder header="Projects">
+ <a href="/works/">cd ~/imabanana80/works</a>
+ </TerminalBorder>
+ </div>
+ </div>
+ </main>
</Layout>
+<script>
+ const sshKey = document.getElementById('sshKey').innerHTML
+ function copySshKeyToClipboard() {
+ navigator.clipboard.writeText(sshKey).then(() => {
+ // TODO: show some feedback for copying
+ }).catch(_err => {
+ // TODO: show same feedback but with err
+ });
+ }
+
+ document.getElementById('sshKey').addEventListener('click', copySshKeyToClipboard);
+ document.getElementById('sshKeyCopy').addEventListener('click', copySshKeyToClipboard);
+</script>
+
<style>
- 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;
- }
+#left {
+ width: 30%;
+}
+#right {
+ width: 67%;
+}
+
+#content {
+ margin-top: 0.5rem;
+ display: flex;
+ justify-content: space-between; /* Removing this makes a cool effect of the right side being "attached" to the left */
+}
+
+.column {
+ /* border-style: solid; */
+ border-width: 1px;
+ border-color: var(--alt);
+}
+
+button {
+ background-color: var(--background);
+ color: var(--text);
+ border: 0;
+ font-size: 1rem;
+ cursor: pointer;
+ width: 20px;
+ height: 20px;
+ padding: 0;
+ line-height: 30px;
+ font-size: 16px;
+}
+
</style>
diff --git a/src/pages/main.astro b/src/pages/main.astro
new file mode 100644
index 0000000..0c1233f
--- /dev/null
+++ b/src/pages/main.astro
@@ -0,0 +1,123 @@
+---
+import Layout from '../layouts/Layout.astro';
+import Card from '../components/Card.astro';
+---
+
+<Layout title="Kyren's Website">
+ <main>
+ <svg
+ class="astro-a"
+ width="495"
+ height="623"
+ viewBox="0 0 495 623"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ aria-hidden="true"
+ >
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z"
+ fill="url(#paint0_linear_1805_24383)"></path>
+ <defs>
+ <linearGradient
+ id="paint0_linear_1805_24383"
+ x1="247.358"
+ y1="0"
+ x2="247.358"
+ y2="622.479"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stop-opacity="0.9"></stop>
+ <stop offset="1" stop-opacity="0.2"></stop>
+ </linearGradient>
+ </defs>
+ </svg>
+ <h1>Welcome to <span class="text-gradient">Kyren's Site</span></h1>
+ <p class="instructions">
+ To get started, open the directory <code>src/pages</code> in your project.<br />
+ <strong>Code Challenge:</strong> Tweak HMMM "Welcome to Astro" message above.
+ </p>
+ <ul role="list" class="link-card-grid">
+ <Card
+ href="https://docs.astro.build/"
+ title="Documentation"
+ body="Learn how Astro works and explore the official API docs."
+ />
+ <Card
+ href="https://astro.build/integrations/"
+ title="Integrations"
+ body="Supercharge your project with new frameworks and libraries."
+ />
+ <Card
+ href="https://astro.build/themes/"
+ title="Themes"
+ body="Explore a galaxy of community-built starter themes."
+ />
+ <Card
+ href="https://astro.build/chat/"
+ title="Community"
+ body="Come say hi to our amazing Discord community. ❤️"
+ />
+ </ul>
+ </main>
+</Layout>
+
+<style>
+ 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>
diff --git a/src/pages/test.astro b/src/pages/test.astro
index e11b196..7a7ec7b 100644
--- a/src/pages/test.astro
+++ b/src/pages/test.astro
@@ -1,14 +1,12 @@
---
-import Prose from '../components/Prose.astro';
-import MarkdownLayout from '../layouts/MarkdownLayout.astro';
+// import Prose from '../components/Prose.astro';
+// import Layout from '../layouts/Layout.astro';
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import { getEntry } from 'astro:content';
const entry = await getEntry('blogs', 'blog-1');
const { Content } = await entry.render();
---
-<StarlightPage frontmatter={{title: 'test', template: 'splash'}}>
- <Prose>
- <Content />
- </Prose>
-</MarkdownLayout>
+<StarlightPage frontmatter={{title: "Blabla", template: 'splash'}}>
+ <Content />
+</StarlightPage>