Skip to content

Commit

Permalink
Style home page link buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Dec 4, 2024
1 parent 4bb7fcd commit 17edb5a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/main/project-grid.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
{% include "main/project-card.njk" %}
{% endeach %}
</div>
<a class="home__btn-link" href="/projects">More Projects</a>
<a class="home__btn-link el-top-margin" href="/projects">More Projects</a>
</section>
10 changes: 10 additions & 0 deletions src/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@
.home__btn-link {
display: block;
margin: 0 auto;
border: 0.15em solid currentColor;
text-decoration: none;
padding: 0.5em 1em;
border-radius: 0.5em;
font-weight: 700;
}

.home__btn-link:focus {
outline: 0.2em solid var(--clr-accent-700);
outline-offset: 0.15em;
}

/* Webrings and Badges */
Expand Down
1 change: 1 addition & 0 deletions src/assets/css/utility.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.el-top-margin { margin-top: 1.5em; }

.inline-icon {
display: inline-block;
Expand Down

0 comments on commit 17edb5a

Please sign in to comment.