Skip to content

Commit 937e2ab

Browse files
committed
add styling links as buttons with hover effect
1 parent 2bc154c commit 937e2ab

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

Wireframe/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 class="article-title">What Is the Purpose of a Wireframe?</h2>
3838
process,
3939
before time and resources are invested in detailed visual design.
4040
</p>
41-
<a href="https://www.productplan.com/glossary/wireframe/" target="_blank"
41+
<a href="https://www.productplan.com/glossary/wireframe/" class="article-link" target="_blank"
4242
aria-label="Read more about wireframes">Read more</a>
4343
</article>
4444
<article class="card">
@@ -51,7 +51,7 @@ <h2 class="article-title">What Is a Branch in Git?</h2>
5151
can be merged back into the main line, integrating the updates seamlessly.
5252
</p>
5353
<a href="https://blog.devgenius.io/mastering-git-branches-from-creation-to-conflict-resolution-bd227ee12339"
54-
target="_blank" aria-label="Read more about Git branches">Read more</a>
54+
class="article-link" target="_blank" aria-label="Read more about Git branches">Read more</a>
5555
</article>
5656
</main>
5757
<footer>

Wireframe/style.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,26 @@ article {
111111
>img {
112112
grid-column: span 3;
113113
}
114+
}
115+
116+
article-link {
117+
text-decoration: none;
118+
color: white;
119+
background-color: #ff6b6b;
120+
border: 1px solid #ff6b6b;
121+
border-radius: 4px;
122+
text-align: center;
123+
font-weight: bold;
124+
text-transform: uppercase;
125+
font-size: 0.85rem;
126+
letter-spacing: 0.05em;
127+
margin-top: var(--space);
128+
align-self: start;
129+
transition: background-color 0.2s ease, border-color 0.2s ease;
130+
}
131+
132+
.article-link:hover {
133+
background-color: #d9383a;
134+
border-color: #d9383a;
135+
color: white;
114136
}

0 commit comments

Comments
 (0)