diff options
| author | Pinapelz <yukais@pinapelz.com> | 2023-09-12 15:40:16 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2023-09-12 15:40:16 -0700 |
| commit | baf899ad91de520f4440259df945de0abbcf7acc (patch) | |
| tree | 03b87b95ad4782e34459445e3d8befbf78dd210a | |
| parent | 5ae476057f59e8b65a3272976cc520cffbf41d54 (diff) | |
update homepage styling
- New header design
- Embed pinapelz.moe as iframe bottom
| -rw-r--r-- | public/603-pfp.png | bin | 0 -> 246594 bytes | |||
| -rw-r--r-- | src/components/Header.astro | 68 | ||||
| -rw-r--r-- | src/components/ProjectGrid.astro | 156 | ||||
| -rw-r--r-- | src/pages/index.astro | 126 |
4 files changed, 214 insertions, 136 deletions
diff --git a/public/603-pfp.png b/public/603-pfp.png Binary files differnew file mode 100644 index 0000000..1d547ca --- /dev/null +++ b/public/603-pfp.png diff --git a/src/components/Header.astro b/src/components/Header.astro index 774b864..0c2e5c0 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -4,21 +4,77 @@ import { SITE_TITLE } from '../consts'; --- <header> - <h2> - {SITE_TITLE} - </h2> + <h1>{SITE_TITLE}</h1> <nav> <HeaderLink href="/">Home</HeaderLink> <HeaderLink href="/blog">Blog</HeaderLink> <HeaderLink href="/about">About</HeaderLink> <HeaderLink href="/rss.xml">RSS</HeaderLink> </nav> + <div class="logo"> + <img src="603-pfp.png" alt="Profile Picture"> + </div> </header> + <style> header { - margin: 0em 0 2em; + background-color: #333; + color: #fff; + display: flex; + justify-content: space-between; + align-items: center; + padding: 1em; + margin-bottom: 20px; + } + + .logo { + width: 50px; + height: 50px; + overflow: hidden; + border-radius: 50%; + margin-right: 1em; + } + + .logo img { + width: 100%; + height: 100%; + object-fit: cover; + } + + h1 { + margin: 0; + font-size: 2em; + } + + nav { + display: flex; + align-items: center; + font-size: larger; + } + + nav > * { + margin-left: 1em; + text-decoration: none; + color: inherit; + transition: color 0.3s ease; + position: relative; + } + + nav > *:first-child { + margin-left: 0; + } + + nav > *:hover { + color: #ccc; } - h2 { - margin: 0.5em 0; + + nav > *:hover::before { + content: ""; + position: absolute; + bottom: -5px; + left: 0; + width: 100%; + height: 2px; + background-color: #ccc; } </style> diff --git a/src/components/ProjectGrid.astro b/src/components/ProjectGrid.astro index 318cd91..fb890bc 100644 --- a/src/components/ProjectGrid.astro +++ b/src/components/ProjectGrid.astro @@ -1,100 +1,104 @@ <style> .project-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: 20px; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 20px; } .project { - background-color: #292828; - padding: 20px; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - text-align: center; + background-color: #292828; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + text-align: center; + transition: transform 0.3s ease-in-out; + } + + .project:hover { + transform: translateY(-5px) rotateX(10deg); } .project img { - max-width: 100%; - height: auto; - border-radius: 4px; - margin-bottom: 10px; + max-width: 100%; + height: auto; + border-radius: 4px; + margin-bottom: 10px; } - /* Styling for project descriptions */ .project-grid .project p.project-text, .project-grid a{ - text-decoration: none; - font-size: 14px; - line-height: 1.4; - color: #FFFFFF; + text-decoration: none; + font-size: 14px; + line-height: 1.4; + color: #FFFFFF; } .project-grid .project p.project-title{ - font-size: 18px; - line-height: 1; + font-size: 18px; + line-height: 1; } img { - max-height: 100px; + max-height: 100px; } +</style> - </style> - <div class="project-grid"> - <div class="project"> +<div class="project-grid"> + <div class="project"> <a href="https://nijitracker.com" > - <img src="/projects/nijitrack.png" alt="Nijitrack Logo"> + <img src="/projects/nijitrack.png" alt="Nijitrack Logo"> </a> - <p class="project-title">NijiTrack</p> - <p class="project-text"> + <p class="project-title">NijiTrack</p> + <p class="project-text"> Record and track historical subscriber data for a set of YouTube channels. Currently mine is set up to record data for Nijisanji Virtual YouTubers (Nijitracker link on repo). - </p> - </div> - <div class="project"> - <a href="https://archive.pinapelz.moe"> - <img src="/projects/patchwork.png" alt="Patchwork Logo"> - </a> - <p class="project-title">Video Archive Web (Patchwork Archive)</p> - <p class="project-text"> - A Python Flask web app that can host archived YouTube videos, currently used as the - front end for Patchwork Archive (link on repo). - </p> - </div> - <div class="project"> - <a href="https://github.com/pinapelz/JHolodex"> - <img src="/projects/holodex.png" alt="JHolodex Wrapper"> - </a> - <p class="project-title">JHolodex</p> - <p class="project-text"> - A Java object oriented wrapper for the Holodex API - </p> - </div> - <div class="project"> - <a href="https://github.com/pinapelz/Sapphire"> - <img src="https://www.gitbook.com/cdn-cgi/image/width=40,dpr=2,height=40,fit=contain,format=auto/https%3A%2F%2F1852825540-files.gitbook.io%2F~%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FoWEO5F5fxBARvfBEby5l%252Ficon%252F9jUvxgDCe6egTrCyJ8t5%252Fsapphire_logo.png%3Falt%3Dmedia%26token%3D4e1ce138-1a38-4e5c-a9f8-490b24189b57" alt="Sapphire"> - </a> - <p class="project-title">Project Sapphire</p> - <p class="project-text"> - My fork of Sapphire, a C++ Final Fantasy XIV Server Emulator. Most of the work I've done - is pretaining to scripting content - </p> - </div> - <div class="project"> - <a href="https://github.com/pinapelz/yet-another-lavaplayer-bot"> - <img src="https://www.svgrepo.com/show/353655/discord-icon.svg" alt="YALP Bot"> - </a> - <p class="project-title">Yet Another Lavaplayer Bot</p> - <p class="project-text"> - A Discord music bot written in Java using JDA and Lavaplayer - </p> - </div> - <div class="project"> - <a href="https://github.com/pinapelz/ytmp3AutoTag"> - <img src="projects/github-mark-white.svg" alt="ytmp3 Autotag"> - </a> - <p class="project-title">GitHub</p> - <p class="project-text"> - GitHub is where I store the majority of the code I write! There's a bunch of stuff over there if you're interested - </p> - </div> - </div>
\ No newline at end of file + </p> + </div> + <div class="project"> + <a href="https://archive.pinapelz.moe"> + <img src="/projects/patchwork.png" alt="Patchwork Logo"> + </a> + <p class="project-title">Video Archive Web (Patchwork Archive)</p> + <p class="project-text"> + A Python Flask web app that can host archived YouTube videos, currently used as the + front end for Patchwork Archive (link on repo). + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/JHolodex"> + <img src="/projects/holodex.png" alt="JHolodex Wrapper"> + </a> + <p class="project-title">JHolodex</p> + <p class="project-text"> + A Java object oriented wrapper for the Holodex API + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/Sapphire"> + <img src="https://www.gitbook.com/cdn-cgi/image/width=40,dpr=2,height=40,fit=contain,format=auto/https%3A%2F%2F1852825540-files.gitbook.io%2F~%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FoWEO5F5fxBARvfBEby5l%252Ficon%252F9jUvxgDCe6egTrCyJ8t5%252Fsapphire_logo.png%3Falt%3Dmedia%26token%3D4e1ce138-1a38-4e5c-a9f8-490b24189b57" alt="Sapphire"> + </a> + <p class="project-title">Project Sapphire</p> + <p class="project-text"> + My fork of Sapphire, a C++ Final Fantasy XIV Server Emulator. Most of the work I've done + is pretaining to scripting content + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/yet-another-lavaplayer-bot"> + <img src="https://www.svgrepo.com/show/353655/discord-icon.svg" alt="YALP Bot"> + </a> + <p class="project-title">Yet Another Lavaplayer Bot</p> + <p class="project-text"> + A Discord music bot written in Java using JDA and Lavaplayer + </p> + </div> + <div class="project"> + <a href="https://github.com/pinapelz/ytmp3AutoTag"> + <img src="projects/github-mark-white.svg" alt="ytmp3 Autotag"> + </a> + <p class="project-title">GitHub</p> + <p class="project-text"> + GitHub is where I store the majority of the code I write! There's a bunch of stuff over there if you're interested + </p> + </div> +</div>
\ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 6d801e7..6c9c278 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,62 +1,80 @@ --- -import BaseHead from '../components/BaseHead.astro'; -import Header from '../components/Header.astro'; -import Footer from '../components/Footer.astro'; -import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; -import { getCollection } from 'astro:content'; -import FormattedDate from '../components/FormattedDate.astro'; -import ProjectGrid from '../components/ProjectGrid.astro' +import BaseHead from "../components/BaseHead.astro"; +import Header from "../components/Header.astro"; +import Footer from "../components/Footer.astro"; +import { SITE_TITLE, SITE_DESCRIPTION } from "../consts"; +import { getCollection } from "astro:content"; +import FormattedDate from "../components/FormattedDate.astro"; +import ProjectGrid from "../components/ProjectGrid.astro"; -const posts = (await getCollection('blog')).sort( - (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf() +const posts = (await getCollection("blog")).sort( + (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf() ); --- <!DOCTYPE html> <html lang="en"> - <head> - <BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> - </head> - <body> - <Header title={SITE_TITLE} /> - - <main> - <style> - ul { - list-style-type: none; - padding: unset; - } - ul li { - display: flex; - } - ul li :global(time) { - flex: 0 0 130px; - font-style: italic; - color: #646464; - } - </style> - <h2>Recent Posts</h2> - <section> - <ul> - { - posts.slice(-3).map((post) => ( - <li> - <FormattedDate date={post.data.pubDate} /> - <a href={`/blog/${post.slug}/`}>{post.data.title}</a> - </li> - )).reverse() - } - </ul> - </section> - <h1>👋 Greetings, <a href="https://pinapelz.gitlab.io/3d-ascii-rpg/">Adventurer!</a></h1> - <p> - Welcome to my site/blog! This place will serve as a corner where I can document the progress and process with some of things I've experimented with or made. - I guess its like programming documentation, but uhh more of a mess? - </p> - <h3>I did a thing..</h3> - <p>Here are some of the things I've done/experimented with and found pretty cool! (you can also find more <a href="https://pinapelz.moe">here</a> - <ProjectGrid> - </main> - <Footer /> - </body> + <head> + <BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> + </head> + <body> + <Header title={SITE_TITLE} /> + + <main> + <style> + ul { + list-style-type: none; + padding: unset; + } + ul li { + display: flex; + } + ul li :global(time) { + flex: 0 0 130px; + font-style: italic; + color: #646464; + } + </style> + <h2>Recent Blog Posts</h2> + <section> + <ul> + { + posts + .slice(-3) + .map((post) => ( + <li> + <FormattedDate date={post.data.pubDate} /> + <a href={`/blog/${post.slug}/`}>{post.data.title}</a> + </li> + )) + .reverse() + } + </ul> + </section> + <h1> + 👋 Greetings, <a href="https://pinapelz.gitlab.io/3d-ascii-rpg/" + >Adventurer!</a + > + </h1> + <p> + Welcome to my site/blog! This place will serve as a corner where I can + document the progress and process with some of things I've experimented + with or made. I guess its kind of like writing documentation for all the + things I've found intriguing or interesting. + </p> + <h3>I did a thing..</h3> + <p> + Here are some of the things I've done/experimented with and found pretty + cool! + <ProjectGrid> + <section> + <h2>Check below for some links to more stuff!</h2> + <iframe src="https://pinapelz.moe/" width="100%" height="500px" + ></iframe> + </section> + </ProjectGrid> + <Footer /> + </p> + </main> + </body> </html> |
