Skip to content

Commit 7afca01

Browse files
committed
H2 and Sidebar styling
1 parent 31cdfa6 commit 7afca01

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

src/components/Products/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Products() {
3030

3131
return (
3232
<section>
33-
<h2>Pick your next Hog ide</h2>
33+
<h2>Pick your next Hog ride</h2>
3434
<div className={s.animated}>
3535
{colors.map(([background, fill], idx) => (
3636
<motion.a

src/components/Sidebar/styles.css

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Note: Beware of modifying this element as it can break the animations - you shou
4141
.bm-menu {
4242
background: var(--color-background);
4343
font-family: var(--font-primary);
44-
padding: 2.5em 1.5em 0;
44+
padding: 2.5em 0.825em 0;
4545
font-size: 1.15em;
4646
}
4747

@@ -58,35 +58,22 @@ Note: Beware of modifying this element as it can break the animations - you shou
5858
}
5959

6060
.bm-menu li {
61-
border-radius: 5px;
62-
height: 40px;
61+
--canvas-color: #030003;
62+
display: flex !important;
6363
width: 100%;
64+
height: 40px;
6465
opacity: 0;
65-
margin-bottom: 10px;
66+
color: var(--color-primary);
67+
background: var(--canvas-color);
68+
border: 4px solid var(--color-primary);
69+
border-radius: 5px;
6670
transform-origin-y: 0%;
67-
color: white;
68-
display: flex !important;
6971
align-items: center;
70-
}
71-
72-
.bm-menu li:nth-child(1) {
73-
background: #f69a9a;
74-
}
75-
76-
.bm-menu li:nth-child(2) {
77-
background: #83ae9b;
78-
}
79-
80-
.bm-menu li:nth-child(3) {
81-
background: #43415f;
82-
}
83-
84-
.bm-menu li:nth-child(4) {
85-
background: #ef4566;
86-
}
87-
88-
.bm-menu li:nth-child(5) {
89-
background: #f9cdae;
72+
text-transform: uppercase;
73+
font-weight: 800;
74+
box-shadow: 0 0 1px 5px var(--canvas-color);
75+
padding: 0.8rem;
76+
margin: 1rem 0;
9077
}
9178

9279
/* Morph shape necessary with bubble or elastic */

src/index.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ h1 {
3636
}
3737

3838
h2 {
39-
--canvas-color: #030003;
4039
color: var(--color-primary);
41-
background: var(--canvas-color);
42-
border: 4px solid var(--color-primary);
43-
box-shadow: 0 0 1px 4px var(--canvas-color);
40+
border-bottom: 4px solid var(--color-primary);
4441
padding: 0.8rem;
4542
text-transform: uppercase;
4643
font-weight: 800;

0 commit comments

Comments
 (0)