Skip to content

Commit a69214e

Browse files
committed
Navbar styling restructure
- Moved inline styles to globals.css - Also fixed build error from last commit
1 parent 5bc4890 commit a69214e

3 files changed

Lines changed: 61 additions & 63 deletions

File tree

src/app/(frontend)/components/Navbar.tsx

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -113,68 +113,6 @@ export default function Navbar() {
113113

114114
return (
115115
<>
116-
<style>{`
117-
.navbar-desktop {
118-
display: flex;
119-
gap: 0.75rem;
120-
align-items: center;
121-
justify-content: center;
122-
width: 100%;
123-
}
124-
.navbar-mobile-row {
125-
display: none;
126-
}
127-
.rainbow-title {
128-
margin-left: 1rem;
129-
color: #5f249f;
130-
font-weight: bold;
131-
font-family: Montserrat, sans-serif;
132-
font-size: 1.2rem;
133-
display: flex;
134-
flex-direction: column;
135-
line-height: 1.1;
136-
}
137-
138-
@media (min-width: 1601px){
139-
.navbar-desktop {
140-
padding: 0 15rem;
141-
}
142-
}
143-
144-
@media (min-width: 1200px) and (max-width: 1600px) {
145-
.navbar-desktop {
146-
padding: 0 10rem;
147-
}
148-
}
149-
150-
@media (min-width: 661px) and (max-width: 800px) {
151-
.rainbow-title {
152-
display: none;
153-
}
154-
}
155-
@media (max-width: 660px) {
156-
.rainbow-title {
157-
font-size: 1rem;
158-
}
159-
.navbar-desktop {
160-
display: none !important;
161-
}
162-
.navbar-mobile {
163-
display: inline-flex !important;
164-
}
165-
.navbar-mobile-row {
166-
display: flex !important;
167-
flex-direction: row;
168-
align-items: center;
169-
width: 100%;
170-
justify-content: space-between;
171-
gap: 0.5rem;
172-
}
173-
}
174-
.navbar-mobile {
175-
display: none;
176-
}
177-
`}</style>
178116
<nav
179117
style={{
180118
width: "100%",

src/app/(frontend)/components/SocialsBar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export default function SocialsBar() {
2929
}, []);
3030

3131
const sectionBg = isDark ? "#2A2342" : "#E2D6F6";
32-
const textColor = isDark ? "#F4EFFF" : "#8a55d2";
3332

3433
return (
3534
<div

src/app/(frontend)/globals.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
/* Navbar styles moved from Navbar.tsx */
2+
.navbar-desktop {
3+
display: flex;
4+
gap: 0.75rem;
5+
align-items: center;
6+
justify-content: center;
7+
width: 100%;
8+
}
9+
.navbar-mobile-row {
10+
display: none;
11+
}
12+
.rainbow-title {
13+
margin-left: 1rem;
14+
color: #5f249f;
15+
font-weight: bold;
16+
font-family: Montserrat, sans-serif;
17+
font-size: 1.2rem;
18+
display: flex;
19+
flex-direction: column;
20+
line-height: 1.1;
21+
}
22+
23+
@media (min-width: 1601px){
24+
.navbar-desktop {
25+
padding: 0 15rem;
26+
}
27+
}
28+
29+
@media (min-width: 1200px) and (max-width: 1600px) {
30+
.navbar-desktop {
31+
padding: 0 10rem;
32+
}
33+
}
34+
35+
@media (min-width: 661px) and (max-width: 800px) {
36+
.rainbow-title {
37+
display: none;
38+
}
39+
}
40+
@media (max-width: 660px) {
41+
.rainbow-title {
42+
font-size: 1rem;
43+
}
44+
.navbar-desktop {
45+
display: none !important;
46+
}
47+
.navbar-mobile {
48+
display: inline-flex !important;
49+
}
50+
.navbar-mobile-row {
51+
display: flex !important;
52+
flex-direction: row;
53+
align-items: center;
54+
width: 100%;
55+
justify-content: space-between;
56+
gap: 0.5rem;
57+
}
58+
}
59+
.navbar-mobile {
60+
display: none;
61+
}
162
:root {
263
--background: #ffffff;
364
--foreground: #171717;

0 commit comments

Comments
 (0)