feat: redesign layout with hero section and footer

Added a hero section for better user engagement and moved informational content into a clearer main section. The footer with a credit link enhances credibility. Extra styling improves readability with a structured presentation. Updated bootstrap resource links for consistency.
This commit is contained in:
Kumi 2024-08-03 11:15:36 +02:00
parent c4054c1374
commit e6373d0535
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -8,26 +8,56 @@
/> />
<title>nobsdelivr</title> <title>nobsdelivr</title>
<link <link
href="/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" href="npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet" rel="stylesheet"
/> />
<style>
body {
background-color: #f8f9fa;
}
.hero {
background: gray;
color: white;
padding: 100px 0;
}
.hero h1 {
font-size: 3.5rem;
}
.hero p {
font-size: 1.25rem;
}
.example-code {
background-color: #e9ecef;
padding: 15px;
border-radius: 5px;
font-family: monospace;
}
</style>
</head> </head>
<body> <body>
<div class="container text-center mt-5"> <header class="hero text-center">
<h1 class="display-4">Welcome to nobsdelivr</h1> <div class="container">
<h1 class="display-4">Welcome to nobsdelivr</h1>
<p class="lead">
nobsdelivr is a simple proxy to cdn.jsdelivr.net. Use it to proxy your
requests to the CDN.
</p>
</div>
</header>
<main class="container text-center my-5">
<p class="lead"> <p class="lead">
nobsdelivr is a simple proxy to cdn.jsdelivr.net. Use it to proxy your
requests to the CDN.
</p>
<hr class="my-4" />
<p>
To use the proxy, simply replace To use the proxy, simply replace
<code>https://cdn.jsdelivr.net</code> with <code>{{ domain }}</code> in <code>https://cdn.jsdelivr.net/</code> with <code>{{ domain }}</code> in
the URL. the URL.
</p> </p>
<p>Example:</p> <p>Example:</p>
<code>{{ domain }}npm/bootstrap@5.1.3/dist/css/bootstrap.min.css</code> <div class="example-code">
</div> <code>{{ domain }}npm/bootstrap@5.1.3/dist/css/bootstrap.min.css</code>
<script src="/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> </div>
</main>
<footer class="text-center py-4">
<p>Brought to you by <a href="https://private.coffee">Private.coffee</a></p>
</footer>
<script src="npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body> </body>
</html> </html>