Skip to content

Commit 195866f

Browse files
Styled navbar properly for pricing plans page.
1 parent d7a7734 commit 195866f

File tree

1 file changed

+71
-66
lines changed

1 file changed

+71
-66
lines changed

src/pages/pricing.html

Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Pricing Plans | VehiGo</title>
7-
<link rel="stylesheet" href="../../assets/css/style.css" />
7+
88
<link rel="stylesheet" href="../../assets/styles/pricing-help.css" />
99
<link
1010
rel="stylesheet"
@@ -59,6 +59,38 @@
5959
}
6060

6161
/* Navbar Styling (match home) */
62+
/* Make sure everything stays in one horizontal line */
63+
.header .navbar {
64+
display: flex !important;
65+
align-items: center !important;
66+
justify-content: space-between !important;
67+
flex-wrap: nowrap !important;
68+
width: 100% !important;
69+
}
70+
71+
/* Align navbar brand, links, and theme toggle neatly */
72+
.header .navbar .navbar-collapse {
73+
display: flex !important;
74+
align-items: center !important;
75+
justify-content: flex-end !important;
76+
flex-grow: 1 !important;
77+
}
78+
79+
/* Prevent wrapping of nav items */
80+
.header .navbar .navbar-nav {
81+
display: flex !important;
82+
align-items: center !important;
83+
gap: 12px !important;
84+
flex-wrap: nowrap !important;
85+
}
86+
87+
88+
89+
/* Optional: Prevent wrapping of all items together */
90+
.header .navbar * {
91+
white-space: nowrap !important;
92+
}
93+
6294
.header {
6395
background: linear-gradient(
6496
135deg,
@@ -91,7 +123,7 @@
91123
.nav-link {
92124
color: #374151 !important;
93125
font-weight: 500 !important;
94-
padding: 10px 15px !important;
126+
padding: 16px 15px !important;
95127
border-radius: 8px !important;
96128
transition: all 0.3s ease !important;
97129
position: relative !important;
@@ -111,42 +143,23 @@
111143

112144
/* Theme Toggle Button */
113145
.theme-toggle-btn {
114-
border-radius: 25px !important;
115-
padding: 10px 20px !important;
116-
font-size: 14px !important;
117-
font-weight: 600 !important;
118-
transition: all 0.3s ease !important;
119-
border: 2px solid #e5e7eb !important;
120-
background: linear-gradient(
121-
135deg,
122-
#ffffff 0%,
123-
#f9fafb 100%
124-
) !important;
125-
color: #374151 !important;
126-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
127-
}
146+
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
147+
border: none !important;
148+
border-radius: 25px !important;
149+
margin-right: 5px;
150+
padding: 10px 25px !important;
151+
font-weight: 700 !important;
152+
color: white !important;
153+
transition: all 0.3s ease !important;
154+
box-shadow: 0 2px 8px rgba(37, 100, 235, 0.3) !important;
155+
}
156+
128157
.theme-toggle-btn:hover {
129158
transform: translateY(-2px) !important;
130-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
131-
border-color: #2563eb !important;
132-
background: linear-gradient(
133-
135deg,
134-
#f0f9ff 0%,
135-
#e0f2fe 100%
136-
) !important;
137-
color: #2563eb !important;
138-
}
139-
.theme-toggle-btn.btn-outline-light {
140-
border-color: rgba(255, 255, 255, 0.3) !important;
141-
background: rgba(255, 255, 255, 0.1) !important;
142-
color: white !important;
143-
backdrop-filter: blur(10px) !important;
144-
}
145-
.theme-toggle-btn.btn-outline-light:hover {
146-
background: rgba(255, 255, 255, 0.2) !important;
147-
border-color: rgba(255, 255, 255, 0.5) !important;
148-
color: white !important;
159+
box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
149160
}
161+
162+
150163

151164
/* Hero Section Styles */
152165
.pricing-hero {
@@ -612,36 +625,28 @@
612625
filter: brightness(0) invert(1);
613626
}
614627

615-
/* Fix login button visibility in dark mode */
616-
.dark-theme .btn-vehigo {
617-
background: #3b82f6 !important;
618-
color: white !important;
619-
border: 1px solid #3b82f6 !important;
620-
}
621-
622-
.dark-theme .btn-vehigo:hover {
623-
background: #2563eb !important;
624-
border-color: #2563eb !important;
625-
color: white !important;
626-
}
628+
627629

628630
/* Ensure the login button has proper styling in light mode as well */
631+
/* Login Button */
629632
.btn-vehigo {
630-
background: #2563eb;
631-
color: white;
632-
border: 1px solid #2563eb;
633-
padding: 8px 16px;
634-
border-radius: 8px;
635-
text-decoration: none;
636-
transition: all 0.3s ease;
637-
}
633+
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
634+
border: none !important;
635+
border-radius: 25px !important;
636+
margin-right: 5px;
637+
padding: 10px 20px !important;
638+
font-weight: 600 !important;
639+
color: white !important;
640+
transition: all 0.3s ease !important;
641+
box-shadow: 0 2px 8px rgba(37, 100, 235, 0.3) !important;
642+
text-decoration: none;
643+
}
638644

639-
.btn-vehigo:hover {
640-
background: #1d4ed8;
641-
border-color: #1d4ed8;
642-
color: white;
643-
transform: translateY(-1px);
644-
}
645+
.btn-vehigo:hover {
646+
transform: translateY(-2px) !important;
647+
box-shadow: 0 4px 15px rgba(37, 100, 235, 0.4) !important;
648+
background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
649+
}
645650
</style>
646651
</head>
647652
<body>
@@ -706,7 +711,7 @@
706711
class="btn btn-outline-secondary theme-toggle-btn"
707712
type="button"
708713
>
709-
<i class="fa-solid fa-gear"></i><span class="label">Light</span>
714+
<span class="label">Light</span>
710715
</button>
711716
</li>
712717

@@ -967,13 +972,13 @@ <h4>Stay in the loop</h4>
967972
themeToggle.classList.remove("btn-outline-secondary");
968973
themeToggle.classList.add("btn-outline-light");
969974
themeToggle.innerHTML =
970-
'<i class="fa-solid fa-gear"></i><span class="label">Light</span>';
975+
'<span class="label">Light</span>';
971976
} else {
972977
document.body.classList.remove("dark-theme");
973978
themeToggle.classList.remove("btn-outline-light");
974979
themeToggle.classList.add("btn-outline-secondary");
975980
themeToggle.innerHTML =
976-
'<i class="fa-solid fa-gear"></i><span class="label">Dark</span>';
981+
'<span class="label">Dark</span>';
977982
}
978983
themeToggle.addEventListener("click", function (e) {
979984
e.preventDefault();
@@ -984,14 +989,14 @@ <h4>Stay in the loop</h4>
984989
themeToggle.classList.remove("btn-outline-light");
985990
themeToggle.classList.add("btn-outline-secondary");
986991
themeToggle.innerHTML =
987-
'<i class="fa-solid fa-gear"></i><span class="label">Dark</span>';
992+
'<span class="label">Dark</span>';
988993
} else {
989994
document.body.classList.add("dark-theme");
990995
localStorage.setItem("theme", "dark");
991996
themeToggle.classList.remove("btn-outline-secondary");
992997
themeToggle.classList.add("btn-outline-light");
993998
themeToggle.innerHTML =
994-
'<i class="fa-solid fa-gear"></i><span class="label">Light</span>';
999+
'<span class="label">Light</span>';
9951000
}
9961001
});
9971002
} else {

0 commit comments

Comments
 (0)