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
6 changes: 3 additions & 3 deletions src/components/NavBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ var options = {
<nav class="navbar">
<ul class="links">
<li class="link">
<a href="#top" target="_self">{ options.Home }</a>
<a href="/#top" target="_self">{ options.Home }</a>
</li>
<li class="link">
<a href="#chars" target="_self">{ options.About }</a>
<a href="/#chars" target="_self">{ options.About }</a>
</li>
<li class="link">
<a href="#projects" target="_self">{ options.Projects }</a>
<a href="/projects" target="_self">{ options.Projects }</a>
</li>
</ul>
</nav>
Expand Down
69 changes: 69 additions & 0 deletions src/components/ProjectCard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
interface Props {
icon: string;
developer: string;
title: string;
description: string;
href: string;
}

const { icon, developer, title, description, href } = Astro.props;
---

<li class="project-card">
<a href={ href }>
<img class="icon" src={ icon }>
<h4 class="developer">{ developer }</h4>
<h2>{ title }</h2>
<p>
{ description }
</p>
</a>
</li>

<style>
.project-card {
display: flex;
flex-direction: row;
flex-wrap: wrap;
list-style-type: none;
border: 1px solid rgb(78, 78, 78);
background: rgb(48, 46, 48);
border-radius: 10px;
padding: 10px;
line-height: 0.8rem;
transition: ease-in 150ms;
margin-right: 6px;
margin-bottom: 6px;
}

.project-card:is(:hover) {
border-color: gray;
background: rgb(37, 36, 37);
}

.project-card > a {
transition: none;
color: white;
}

.icon {
width: 32px;
height: 32px;
border-radius: 50%;
}

.developer {
margin-top: 12px;
}

a {
text-decoration: none;
}

p {
font-size: 14px;
font-weight: normal;
line-height: 1.4rem;
}
</style>
15 changes: 14 additions & 1 deletion src/layouts/OldLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
const { title, icon, lang } = Astro.props;
---


<!doctype html>
<html lang={ lang }>
<head>
<meta charset="UTF-8">
Expand All @@ -18,4 +18,17 @@ const { title, icon, lang } = Astro.props;
<link rel="icon" href={ icon }>
</head>
<slot />

<style>
a {
font-weight: bold;
color: white;
transition: ease;
transition-duration: 350ms;
}

a:hover {
color: var(--link-color);
}
</style>
</html>
25 changes: 25 additions & 0 deletions src/layouts/ProjectLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
import "../styles/global.css";
import NavBar from '../components/NavBar.astro';

interface Props {
title: string;
icon: string;
}

const { title, icon } = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href={ icon }>
<title>{ title }</title>
</head>
<NavBar />
<div class="container">
<slot />
</div>
</html>
43 changes: 43 additions & 0 deletions src/pages/projects.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
import ProjectCard from "../components/ProjectCard.astro";
import ProjectLayout from "../layouts/ProjectLayout.astro";
import "../styles/global.css";
---

<ProjectLayout title="retrozinndev's Projects" icon="https://github.com/retrozinndev.png">
<h1>Projects</h1>
<p>
Here are some of my projects! You can test them out on
<a rel="_blank" href="https://repos.retrozinn.dev">GitHub</a>.
</p>
<div class="projects">
<li>
<ProjectCard icon="https://github.com/retrozinndev.png" developer="retrozinndev" title="JSONutils" description="A JSON library for Java, focused at being easy to use" href="https://github.com/retrozinndev/jsonutils" />
</li>
<li>
<ProjectCard icon="https://github.com/notestudios.png" developer="notestudios" title="The Traveler" description="A free and open-source 2D Shooter game!" href="https://github.com/notestudios/thetraveler" />
</li>
<li>
<ProjectCard icon="https://github.com/retrozinndev.png" developer="retrozinndev" title="UpDateN'Time" description="Tool that synchronizes your date and time with the internet!" href="https://github.com/retrozinndev/updatentime" />
</li>
<li>
<ProjectCard icon="https://github.com/notestudios.png" developer="notestudios" title="Note UI" description="A library for the Note Studios UI design" href="https://github.com/notestudios/noteui" />
</li>
<li>
<ProjectCard icon="https://github.com/notestudios.png" developer="notestudios" title="Space Shooter" description="A game about shooting meteors in Space!" href="https://github.com/notestudios/spaceshooter" />
</li>
</div>

</OldLayout>


<style>
.projects {
display: flex;
list-style-type: none;
flex-direction: row;
flex-wrap: wrap;
padding: 8px;
}
</style>

15 changes: 0 additions & 15 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ a.header-button {
box-sizing: 90px;
}

a {
font-style: bolder;
color: white;
transition: ease;
transition-duration: 350ms;
}

a:is(:hover) {
color: var(--link-color);
}

a:not(:hover) {
color: white;
}

.highlight {
position: flex;
font-style: bolder;
Expand Down