Skip to content

Commit 4e26a2d

Browse files
committed
feat: shorter description and project links
1 parent eb6710c commit 4e26a2d

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

src/components/ProjectItem.astro

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,22 @@ const formattedDate = project.date ? formatDate(project.date) : "";
2929
<div class="flex justify-between items-start mb-2">
3030
<div class="flex items-center gap-2">
3131
<h3 class="font-semibold text-base">
32-
{project.url ? (
33-
<a href={project.url} class="text-blue-600 hover:underline" target="_blank" rel="noopener">
34-
{project.name}
35-
</a>
36-
) : (
37-
project.name
38-
)}
32+
{project.name}
3933
</h3>
40-
{project.links && project.links.length > 0 && (
34+
{(project.url || (project.links && project.links.length > 0)) && (
4135
<div class="flex gap-1">
42-
{project.links.map((link) => (
36+
{project.url && (
37+
<a
38+
href={project.url}
39+
class="inline-flex items-center px-2 py-1 text-xs bg-blue-50 text-blue-700 hover:bg-blue-100 rounded border border-blue-200 transition-colors"
40+
target="_blank"
41+
rel="noopener"
42+
title="Repository"
43+
>
44+
Repo
45+
</a>
46+
)}
47+
{project.links && project.links.map((link) => (
4348
<a
4449
href={link.url}
4550
class="inline-flex items-center px-2 py-1 text-xs bg-blue-50 text-blue-700 hover:bg-blue-100 rounded border border-blue-200 transition-colors"

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props {
1111
1212
const {
1313
title = "Professional CV - Digital Resume",
14-
description = "A modern, minimalist CV template built with Astro and TailwindCSS. Print-friendly design perfect for showcasing professional experience, skills, and achievements.",
14+
description = "Modern, minimalist CV template built with Astro and TailwindCSS.",
1515
image = "/meta.png"
1616
} = Astro.props;
1717

0 commit comments

Comments
 (0)