fix mobile css issues
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,145 +1,134 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta
|
<meta name="viewport"
|
||||||
name="viewport"
|
content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||||
content="width=device-width, initial-scale=1, viewport-fit=cover"
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
/>
|
<title>{{block "title" .}}RideAware{{end}}</title>
|
||||||
<title>{{block "title" .}}RideAware{{end}}</title>
|
|
||||||
|
|
||||||
<!-- Icons/Fonts -->
|
<!-- Icons/Fonts -->
|
||||||
<link
|
<link
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Core CSS -->
|
<!-- Core CSS -->
|
||||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||||
|
|
||||||
<!-- Favicons -->
|
<!-- Favicons -->
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
type="image/png"
|
type="image/png"
|
||||||
sizes="32x32"
|
sizes="32x32"
|
||||||
href="/static/assets/32x32.png"
|
href="/static/assets/32x32.png"
|
||||||
/>
|
/>
|
||||||
<link
|
<link
|
||||||
rel="alternate icon"
|
rel="apple-touch-icon"
|
||||||
type="image/png"
|
sizes="180x180"
|
||||||
sizes="32x32"
|
href="/static/assets/apple-touch-icon.png"
|
||||||
href="/static/assets/32x32.png"
|
/>
|
||||||
/>
|
<link rel="manifest" href="/static/assets/site.webmanifest" />
|
||||||
<link
|
<meta name="theme-color" content="#1e4e9c" />
|
||||||
rel="apple-touch-icon"
|
|
||||||
sizes="180x180"
|
|
||||||
href="/static/assets/apple-touch-icon.png"
|
|
||||||
/>
|
|
||||||
<link rel="manifest" href="/static/assets/site.webmanifest" />
|
|
||||||
<meta name="theme-color" content="#0f172a" />
|
|
||||||
|
|
||||||
{{block "extra_head" .}}{{end}}
|
{{block "extra_head" .}}{{end}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<div class="nav-container">
|
<div class="nav-container">
|
||||||
<a href="/" class="logo" aria-label="RideAware home">
|
<a href="/" class="logo" aria-label="RideAware home">
|
||||||
<img
|
<img
|
||||||
src="/static/assets/logo.png"
|
src="/static/assets/logo.png"
|
||||||
alt="RideAware"
|
alt="RideAware"
|
||||||
class="logo-img"
|
class="logo-img"
|
||||||
width="140"
|
width="120"
|
||||||
height="28"
|
height="24"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
fetchpriority="high"
|
fetchpriority="high"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ul class="nav-links" id="primary-nav">
|
<ul class="nav-links" id="primary-nav">
|
||||||
<li><a href="/#features">Features</a></li>
|
<li><a href="/#features">Features</a></li>
|
||||||
<li><a href="/newsletters">Newsletters</a></li>
|
<li><a href="/newsletters">Newsletters</a></li>
|
||||||
<li><a href="/about">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
<li><a href="/contact">Contact</a></li>
|
<li><a href="/contact">Contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="nav-toggle"
|
class="nav-toggle"
|
||||||
id="nav-toggle"
|
id="nav-toggle"
|
||||||
aria-label="Toggle navigation"
|
aria-label="Toggle navigation menu"
|
||||||
aria-controls="primary-nav"
|
aria-controls="primary-nav"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
<span class="bar"></span>
|
<span class="bar"></span>
|
||||||
<span class="bar"></span>
|
<span class="bar"></span>
|
||||||
<span class="bar"></span>
|
<span class="bar"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{block "content" .}}
|
{{block "content" .}}
|
||||||
|
|
||||||
{{if .IsContact}}
|
{{if .IsContact}}
|
||||||
{{template "contact" .}}
|
{{template "contact" .}}
|
||||||
{{else if .IsAbout}}
|
{{else if .IsAbout}}
|
||||||
{{template "about" .}}
|
{{template "about" .}}
|
||||||
{{else if .IsHome}}
|
{{else if .IsHome}}
|
||||||
{{template "index" .}}
|
{{template "index" .}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{template "newsletters" .}}
|
{{template "newsletters" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<p>© 2025 RideAware. All rights reserved.</p>
|
<p>© 2025 RideAware. All rights reserved.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Core JS -->
|
<!-- Core JS -->
|
||||||
<script
|
<script defer src="/static/js/main.min.js" crossorigin="anonymous"></script>
|
||||||
defer
|
|
||||||
src="https://cdn.statically.io/gl/rideaware/landing/06d19988c7df53636277f945f9ed853bda76471b/static/js/main.min.js"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
></script>
|
|
||||||
|
|
||||||
{{block "extra_scripts" .}}
|
{{block "extra_scripts" .}}
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function() {
|
||||||
const btn = document.getElementById("nav-toggle");
|
const btn = document.getElementById('nav-toggle');
|
||||||
const menu = document.getElementById("primary-nav");
|
const menu = document.getElementById('primary-nav');
|
||||||
if (!btn || !menu) return;
|
if (!btn || !menu) return;
|
||||||
|
|
||||||
function closeMenu() {
|
function closeMenu() {
|
||||||
btn.classList.remove("active");
|
btn.classList.remove('active');
|
||||||
btn.setAttribute("aria-expanded", "false");
|
btn.setAttribute('aria-expanded', 'false');
|
||||||
menu.classList.remove("open");
|
menu.classList.remove('open');
|
||||||
}
|
|
||||||
|
|
||||||
btn.addEventListener("click", () => {
|
|
||||||
const open = btn.classList.toggle("active");
|
|
||||||
btn.setAttribute("aria-expanded", String(open));
|
|
||||||
menu.classList.toggle("open", open);
|
|
||||||
});
|
|
||||||
|
|
||||||
menu.addEventListener("click", (e) => {
|
|
||||||
if (e.target.tagName === "A") closeMenu();
|
|
||||||
});
|
|
||||||
|
|
||||||
document.addEventListener("keydown", (e) => {
|
|
||||||
if (e.key === "Escape") closeMenu();
|
|
||||||
});
|
|
||||||
|
|
||||||
document.addEventListener("click", (e) => {
|
|
||||||
if (!menu.contains(e.target) && !btn.contains(e.target)) {
|
|
||||||
closeMenu();
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
})();
|
btn.addEventListener('click', () => {
|
||||||
</script>
|
const isOpen = btn.classList.toggle('active');
|
||||||
{{end}}
|
btn.setAttribute('aria-expanded', String(isOpen));
|
||||||
</body>
|
menu.classList.toggle('open', isOpen);
|
||||||
|
});
|
||||||
|
|
||||||
|
menu.addEventListener('click', (e) => {
|
||||||
|
if (e.target.tagName === 'A') closeMenu();
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('keydown', (e) => {
|
||||||
|
if (e.key === 'Escape') closeMenu();
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('click', (e) => {
|
||||||
|
if (!menu.contains(e.target) && !btn.contains(e.target)) {
|
||||||
|
closeMenu();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
{{end}}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user