nocdnbs/templates/index.html
Kumi 8a37bc9f2c
feat: switch CDN from jsdelivr to Cloudflare
Updated the proxy route to use Cloudflare CDN instead of jsdelivr. Corresponding changes made in the HTML to reflect the new CDN, along with a rebrand from "nobsdelivr" to "nocdnbs". This enhances CDN reliability and availability.
2024-08-03 16:12:47 +02:00

65 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>nocdnbs</title>
<link
href="https://nobsdelivr.private.coffee/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
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>
<body>
<header class="hero text-center">
<div class="container">
<h1 class="display-4">Welcome to nocdnbs</h1>
<p class="lead">
nobsdelivr is a simple proxy to cdnjs.cloudflare.com. Use it to proxy your
requests to the CDN.
</p>
</div>
</header>
<main class="container text-center my-5">
<p class="lead">
To use the proxy, simply replace
<code>https://cdnjs.cloudflare.com/</code> with <code>{{ domain }}</code> in
the URL.
</p>
<p>Example:</p>
<div class="example-code">
<code>{{ domain }}ajax/libs/mathjax/2.7.9/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Bold.eot</code>
</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="https://nobsdelivr.private.coffee/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>