Kumi
5d32aa7c8f
Integrated a new home route in the application that renders a template with instructions on how to use the Google Fonts proxy service, enhancing user guidance. This change includes the addition of an `index.html` template, which provides a clear example and usage instructions, and minor refactoring of existing routes for improved readability.
65 lines
1.7 KiB
HTML
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>GoogleDonts</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 GoogleDonts</h1>
|
|
<p class="lead">
|
|
GoogleDonts is a proxy service to Google Fonts. It allows you to use
|
|
Google Fonts without any data being sent to Google.
|
|
</p>
|
|
</div>
|
|
</header>
|
|
<main class="container text-center my-5">
|
|
<p class="lead">
|
|
To use the proxy, simply replace
|
|
<code>https://fonts.googleapis.com/</code> with <code>{{ domain }}</code> in
|
|
the URL.
|
|
</p>
|
|
<p>Example:</p>
|
|
<div class="example-code">
|
|
<code>{{ domain }}css?family=Montserrat:400,700</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>
|