Skip to content

Commit 1357024

Browse files
committed
footer link styled properly
1 parent a8fa949 commit 1357024

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

frontend/src/components/BaseLayout.css

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,52 @@
5050
font-size: 1.2rem;
5151
}
5252

53+
.Footer__bottom__wrapper {
54+
height: fit-content;
55+
width: fit-content;
56+
57+
display: flex;
58+
flex-direction: row;
59+
align-items: center;
60+
justify-content: center;
61+
}
62+
5363
.Footer__small__p__text {
54-
padding-right: 0.1rem;
64+
font-size: 0.8rem !important;
65+
font-style: italic;
66+
67+
white-space: pre;
68+
}
69+
70+
.Footer a {
71+
position: relative;
5572

5673
font-size: 0.8rem !important;
5774
font-style: italic;
75+
76+
color: inherit;
77+
text-decoration: none;
78+
}
79+
80+
.Footer a::after {
81+
content: "";
82+
position: absolute;
83+
84+
left: 0;
85+
right: 0;
86+
bottom: 0;
87+
88+
width: 100%;
89+
height: 1px;
90+
91+
background-color: var(--after-color, black);
92+
93+
transform: translateZ(0) scaleX(0);
94+
transition: transform 0.2s;
95+
}
96+
97+
.Footer a:hover::after, .Footer a:focus::after {
98+
transform: translateZ(0) scaleX(1);
5899
}
59100

60101
@media (max-width: 768px) {

frontend/src/components/Footer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ function Footer() {
1212
style={{ backgroundColor: secondThemeColor }}
1313
>
1414
<p>Meta Clock 2025</p>
15-
<p className="Footer__small__p__text">Inspired by</p>
16-
<a href="https://www.humanssince1982.com/en-eu/products/clockclock-24-white">ClockClock 24</a>
15+
<div className="Footer__bottom__wrapper">
16+
<p className="Footer__small__p__text">Inspired by </p>
17+
<a href="https://www.humanssince1982.com/en-eu/products/clockclock-24-white">ClockClock 24</a>
18+
</div>
1719
</footer>
1820
);
1921
}

0 commit comments

Comments
 (0)