Skip to content

Commit

Permalink
- project button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sohez committed Oct 29, 2024
1 parent 45647fc commit 0690a07
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assets/script/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ProjectsDataHTML = ProjectsData.map(
</div>
<div>
<p>${item.description}</p>
<button><a href="${item.link}" target="_blank">View</a></button>
<a href="${item.link}" title="${item.name}" target="_blank">View</a>
</div>
</div>
`
Expand Down
12 changes: 7 additions & 5 deletions assets/style/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ main #projects-section {
outline: 1px solid var(--color-primary);
border-radius: 12px;
padding: 24px;
display: flex;
flex-direction: column;
img {
height: 60px;
width: 60px;
Expand All @@ -308,7 +310,11 @@ main #projects-section {
font-size: var(--paragraph-size);
color: var(--color-text-gray);
}
button {
a {
width:fit-content;
display: block;
text-decoration: none;
color: var(--color-text);
padding: 8px 24px;
margin-top: 12px;
border-radius: 8px;
Expand All @@ -322,10 +328,6 @@ main #projects-section {
background-color: var(--color-primary);
cursor: pointer;
}
a {
text-decoration: none;
color: var(--color-text);
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions assets/style/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/style/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0690a07

Please sign in to comment.