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 /src/components | |
| parent | 5ae476057f59e8b65a3272976cc520cffbf41d54 (diff) | |
update homepage styling
- New header design
- Embed pinapelz.moe as iframe bottom
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Header.astro | 68 | ||||
| -rw-r--r-- | src/components/ProjectGrid.astro | 156 |
2 files changed, 142 insertions, 82 deletions
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 |
