Skip to content

Commit 166310c

Browse files
committed
update menu and latest blog post
1 parent 56db543 commit 166310c

File tree

2 files changed

+35
-8
lines changed

2 files changed

+35
-8
lines changed

src/stories/assets/css/card.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@
33

44
.card {
55
--bs-card-bg: transparent;
6-
background: linear-gradient(to bottom, color.adjust($quicksilver, $lightness: -4%) 0%, $ash 40%, $frost 100%);
6+
background:
7+
linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0.4) 55%, transparent 70%),
8+
linear-gradient(340deg, #ffffff 0%, $quicksilver 35%, $ash 60%, $pewter 100%);
9+
background-size: 200% 100%, 100% 100%;
10+
background-position: 100% 0, 0 0;
711
color: $obsidian;
8-
border: none;
12+
border: 1px solid rgba(142, 142, 142, 0.25);
913
border-radius: 10px;
1014
border-bottom: 4px solid $azure-bolt;
1115
overflow: hidden;
1216
display: flex;
1317
flex-direction: column;
1418
transition: transform $transition-fast,
15-
box-shadow $transition-fast;
19+
box-shadow $transition-fast,
20+
background-position 0.6s ease;
1621

1722
&:hover {
1823
transform: translateY(-4px);
1924
box-shadow: 0 6px 20px rgba(0, 112, 189, 0.3);
25+
background-position: 0% 0, 0 0;
2026
}
2127

2228
// ── Image ─────────────────────────────────────
@@ -79,7 +85,7 @@
7985
// ── Footer ────────────────────────────────────
8086
&__footer {
8187
padding: 1rem 1.5rem;
82-
border-top: 1px solid color.adjust($frost, $lightness: -10%);
88+
border-top: 1px solid rgba(142, 142, 142, 0.3);
8389
display: flex;
8490
align-items: center;
8591
justify-content: flex-end;

src/stories/assets/css/header.scss

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use 'sass:color';
12
@use 'variables' as *;
23

34
.header {
@@ -7,14 +8,24 @@
78
&__menu-item {
89
font-family: $font-header;
910
font-size: 1rem;
11+
font-weight: 600;
1012
color: $quicksilver;
1113
text-decoration: none;
1214
padding: 0.5rem 1rem;
13-
transition: color $transition-fast;
15+
border-radius: 10px;
16+
border-bottom: 5px solid transparent;
17+
transition: color $transition-fast,
18+
transform $transition-fast,
19+
background $transition-fast,
20+
border-bottom-color $transition-fast;
1421
display: block;
1522

1623
&:hover {
17-
color: $azure-bolt;
24+
color: $quicksilver;
25+
font-weight: 700;
26+
transform: translateY(-3px);
27+
background: linear-gradient(135deg, color.adjust($azure-bolt, $lightness: 5%), $azure-bolt, color.adjust($azure-bolt, $lightness: -5%));
28+
border-bottom-color: $deep-azure;
1829
}
1930

2031
&--active {
@@ -90,14 +101,24 @@
90101
&__mobile-menu-item {
91102
font-family: $font-header;
92103
font-size: 1.125rem;
104+
font-weight: 600;
93105
color: $quicksilver;
94106
text-decoration: none;
95107
padding: 0.75rem 1rem;
96-
transition: color $transition-fast;
108+
border-radius: 10px;
109+
border-bottom: 5px solid transparent;
110+
transition: color $transition-fast,
111+
transform $transition-fast,
112+
background $transition-fast,
113+
border-bottom-color $transition-fast;
97114
display: block;
98115

99116
&:hover {
100-
color: $azure-bolt;
117+
color: $quicksilver;
118+
font-weight: 700;
119+
transform: translateY(-3px);
120+
background: linear-gradient(135deg, color.adjust($azure-bolt, $lightness: 5%), $azure-bolt, color.adjust($azure-bolt, $lightness: -5%));
121+
border-bottom-color: $deep-azure;
101122
}
102123

103124
&--active {

0 commit comments

Comments
 (0)