Skip to content

Commit 0962e59

Browse files
committed
Bug: Fixed “Go to Project” button not working
1 parent 1c5b815 commit 0962e59

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/ProjectCard.astro

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ const { projectLink, logoLink, name, description, tags = [], loadIssues = false
4141
<IssueList projectLink={projectLink} projectName={name} />
4242
)}
4343
</div>
44-
<div class="Card-Link">
45-
<span>Go to Project</span>
46-
</div>
44+
</a>
45+
<a class="Card-Link" href={projectLink} target="_blank">
46+
<span>Go to Project</span>
4747
</a>
4848
</div>
4949

5050
<style>
5151
.Card-Container {
52+
display: flex;
53+
flex-direction: column;
5254
background: rgba(255, 255, 255, 0.08);
5355
backdrop-filter: blur(20px);
5456
-webkit-backdrop-filter: blur(20px);
@@ -92,6 +94,7 @@ const { projectLink, logoLink, name, description, tags = [], loadIssues = false
9294
color: inherit;
9395
height: 100%;
9496
display: flex;
97+
flex: 1;
9598
flex-direction: column;
9699
position: relative;
97100
z-index: 1;
@@ -170,6 +173,9 @@ const { projectLink, logoLink, name, description, tags = [], loadIssues = false
170173
transition: all 0.3s ease;
171174
position: relative;
172175
overflow: hidden;
176+
text-decoration: none;
177+
display: block;
178+
margin: 1rem;
173179
}
174180

175181
.Card-Link::before {

0 commit comments

Comments
 (0)