mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 02:33:02 +00:00
errrrrrrrrr
This commit is contained in:
@@ -2,8 +2,17 @@
|
|||||||
const { currentPage, title, href } = Astro.props;
|
const { currentPage, title, href } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.nav-link {
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
.nav-link:hover {
|
||||||
|
color: var(--ayu-accent);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href={href}
|
href={href}
|
||||||
class={`${currentPage === title ? "text-ayu-accent font-bold" : ""}`}
|
class={`nav-link ${currentPage.toLowerCase() === title.toLowerCase() ? "text-ayu-accent font-bold" : ""}`}
|
||||||
>{title}</a
|
>{title}</a
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ const { title, description, date, image, slug } = Astro.props;
|
|||||||
<style>
|
<style>
|
||||||
.project-item {
|
.project-item {
|
||||||
border-color: var(--ayu-gutter-dim);
|
border-color: var(--ayu-gutter-dim);
|
||||||
transition: all 0.2s;
|
transition:
|
||||||
|
color 0.2s,
|
||||||
|
border-color 0.2s;
|
||||||
}
|
}
|
||||||
.project-item:hover {
|
.project-item:hover {
|
||||||
border-color: var(--ayu-gutter);
|
border-color: var(--ayu-gutter);
|
||||||
@@ -19,13 +21,16 @@ const { title, description, date, image, slug } = Astro.props;
|
|||||||
.project-date {
|
.project-date {
|
||||||
color: var(--ayu-gutter);
|
color: var(--ayu-gutter);
|
||||||
}
|
}
|
||||||
|
.project-item:hover .project-date {
|
||||||
|
color: var(--ayu-accent);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
href={`/projects/${slug}`}
|
href={`/projects/${slug}`}
|
||||||
class="project-item block border flex flex-col justify-between"
|
class="project-item block border-2 flex flex-col justify-between rounded-md"
|
||||||
>
|
>
|
||||||
<div class="flex gap-4 p-4">
|
<div class="flex gap-4 p-4 pb-0">
|
||||||
<div class="w-16 h-16 flex-shrink-0">
|
<div class="w-16 h-16 flex-shrink-0">
|
||||||
{
|
{
|
||||||
image ? (
|
image ? (
|
||||||
@@ -40,7 +45,7 @@ const { title, description, date, image, slug } = Astro.props;
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<h3 class="project-title text-lg -mb-2">
|
<h3 class="project-title text-lg -mb-2 -mt-1">
|
||||||
{title}
|
{title}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="project-description text-sm">
|
<p class="project-description text-sm">
|
||||||
@@ -48,7 +53,7 @@ const { title, description, date, image, slug } = Astro.props;
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full flex justify-end p-2">
|
<div class="w-full flex justify-end p-2 pt-1">
|
||||||
<p class="project-date text-xs">{date}</p>
|
<p class="project-date text-xs">{date}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const projects: ProjectMetadata[] = Object.values(
|
|||||||
---
|
---
|
||||||
|
|
||||||
<Layout currentPage="home">
|
<Layout currentPage="home">
|
||||||
<!-- <h1 class="text-md mb-4">projects:</h1> -->
|
<!-- <h1 class="text-2xl font-medium mb-4">projects:</h1> -->
|
||||||
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-4">
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user