Skip to content

Commit 35df807

Browse files
committed
add footer link and styling for CYF
1 parent d8d07e0 commit 35df807

2 files changed

Lines changed: 44 additions & 14 deletions

File tree

Wireframe/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ <h2 class="article-title">What Is a Branch in Git?</h2>
6767
</main>
6868
<footer>
6969
<p>
70-
&copy; 2026 <strong>&lt;<span class="red-text">Code</span>&gt; Your Future</strong> &amp; Tomislav Dukez.
70+
&copy; 2026 <a href="https://codeyourfuture.io/" class="footer-link" target="_blank"
71+
aria-label="Code Your Future website">&lt;<span class="red-text">Code</span>&gt; Your Future</a> &amp; Tomislav
72+
Dukez.
7173
</p>
7274
</footer>
7375
</body>

Wireframe/style.css

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,7 @@ main {
6161
padding-bottom: calc(var(--space) * 8);
6262
}
6363

64-
footer {
65-
position: fixed;
66-
bottom: 0;
67-
left: 0;
68-
right: 0;
69-
text-align: center;
70-
background: var(--paper);
71-
border-top: var(--line);
72-
padding: var(--space) 0;
7364

74-
.red-text {
75-
color: #c92a2a;
76-
}
77-
}
7865

7966
/* ====== Articles Grid Layout ====
8067
Setting the rules for how articles are placed in the main element.
@@ -134,4 +121,45 @@ article {
134121
background-color: #a61e22;
135122
border-color: #a61e22;
136123
color: white;
124+
}
125+
126+
footer {
127+
position: fixed;
128+
bottom: 0;
129+
left: 0;
130+
right: 0;
131+
text-align: center;
132+
background: var(--paper);
133+
border-top: var(--line);
134+
padding: var(--space) 0;
135+
136+
.red-text {
137+
color: #c92a2a;
138+
}
139+
140+
.footer-link {
141+
padding: 0;
142+
border: none;
143+
display: inline;
144+
color: inherit;
145+
text-decoration: underline;
146+
font-weight: bold;
147+
text-decoration-color: #c92a2a;
148+
transition: color 0.2s ease, text-decoration-color 0.2s ease;
149+
150+
.red-text {
151+
color: #c92a2a;
152+
transition: color 0.2s ease;
153+
}
154+
155+
&:hover {
156+
color: #c92a2a;
157+
text-decoration-color: currentColor;
158+
159+
.red-text {
160+
color: var(--ink);
161+
162+
}
163+
}
164+
}
137165
}

0 commit comments

Comments
 (0)