portulan/src/pages/index.astro
Gu://em_ 85ed55b51d
Some checks are pending
/ build (push) Waiting to run
/ deploy (push) Blocked by required conditions
Added theme meta tag (colors navigation bar on some browsers), disabled links underline on mobile
2026-03-18 11:21:50 +01:00

65 lines
2 KiB
Text

---
import "../styles/common.css";
import "../styles/mobile.css";
import data from "../data/content.json";
const { cards, website_title, website_logo } = data;
---
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <link rel="stylesheet" href="style.css" /> -->
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- DISABLED because it prevents the font from loading -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<title>{website_title}</title>
</head>
<body>
<div class="halo"></div>
<header class="site-header">
<div class="header-row">
<a href="https://status.oblic-parallels.fr">
<img class="logo" src={website_logo} />
</a>
<h1 class="site-title">{website_title}</h1>
</div>
<div class="welcome-title">
<h2>Welcome to</h2>
</div>
</header>
<script>
window.addEventListener(
"wheel",
function (e) {
if (e.deltaY !== 0) {
e.preventDefault();
window.scrollBy({
left: e.deltaY,
behavior: "auto",
});
}
},
{ passive: false },
);
</script>
<div class="card-container">
{
cards.map((card) => (
<a class="card" href={card.link}>
<img src={card.icon} />
<div class="card-title">{card.title}</div>
<div class="card-desc">{card.description}</div>
</a>
))
}
</div>
</body>
</html>