Skip to content

Commit 890a426

Browse files
committed
add styling links as buttons with hover effect
1 parent 7cdc29c commit 890a426

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
@@ -41,7 +41,7 @@ <h2 class="article-title">What Is the Purpose of a Wireframe?</h2>
4141
process,
4242
before time and resources are invested in detailed visual design.
4343
</p>
44-
<a href="https://www.productplan.com/glossary/wireframe/" target="_blank"
44+
<a href="https://www.productplan.com/glossary/wireframe/" class="article-link" target="_blank"
4545
aria-label="Read more about wireframes">Read more</a>
4646
</article>
4747
<article class="card">
@@ -54,7 +54,7 @@ <h2 class="article-title">What Is a Branch in Git?</h2>
5454
can be merged back into the main line, integrating the updates seamlessly.
5555
</p>
5656
<a href="https://blog.devgenius.io/mastering-git-branches-from-creation-to-conflict-resolution-bd227ee12339"
57-
target="_blank" aria-label="Read more about Git branches">Read more</a>
57+
class="article-link" target="_blank" aria-label="Read more about Git branches">Read more</a>
5858
</article>
5959
</main>
6060
<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)