mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Trying an alternate background.
This commit is contained in:
parent
c7c9f1df5c
commit
4a067f428e
2 changed files with 39 additions and 14 deletions
|
@ -8,14 +8,10 @@
|
||||||
<link rel="shortcut icon" type="image/svg+xml" href="/images/lemmy.svg" />
|
<link rel="shortcut icon" type="image/svg+xml" href="/images/lemmy.svg" />
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
|
--font-family-sans: Inter, Helvetica, Roboto, sans-serif;
|
||||||
--grid-maxWidth: 108rem;
|
--grid-maxWidth: 108rem;
|
||||||
|
--grid-gutter: 4rem;
|
||||||
--color-success: #fafafa;
|
--color-success: #fafafa;
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'CaviarDreams';
|
|
||||||
src: url('/fonts/CaviarDreams.ttf') format('truetype');
|
|
||||||
}
|
|
||||||
body.dark {
|
|
||||||
--bg-color: #000;
|
--bg-color: #000;
|
||||||
--bg-secondary-color: #131316;
|
--bg-secondary-color: #131316;
|
||||||
--font-color: #f5f5f5;
|
--font-color: #f5f5f5;
|
||||||
|
@ -23,6 +19,10 @@
|
||||||
--color-darkGrey: #777;
|
--color-darkGrey: #777;
|
||||||
--color-success: #020f09;
|
--color-success: #020f09;
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'CaviarDreams';
|
||||||
|
src: url('/fonts/CaviarDreams.ttf') format('truetype');
|
||||||
|
}
|
||||||
.stylized {
|
.stylized {
|
||||||
font-family: 'CaviarDreams', Fallback, sans-serif;
|
font-family: 'CaviarDreams', Fallback, sans-serif;
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
|
@ -45,6 +45,37 @@
|
||||||
height: 100px;
|
height: 100px;
|
||||||
object-fit: scale-down;
|
object-fit: scale-down;
|
||||||
}
|
}
|
||||||
|
.bg-image {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: -1;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background:
|
||||||
|
linear-gradient(
|
||||||
|
rgba(0, 0, 0, 0.6),
|
||||||
|
rgba(0, 0, 0, 0.6)
|
||||||
|
),
|
||||||
|
url('/images/main_img.webp');
|
||||||
|
background-image:
|
||||||
|
/* Darken */
|
||||||
|
linear-gradient(
|
||||||
|
rgba(0, 0, 0, 0.9),
|
||||||
|
rgba(0, 0, 0, 0.9)
|
||||||
|
),
|
||||||
|
-webkit-filter: blur(5px);
|
||||||
|
-moz-filter: blur(5px);
|
||||||
|
-o-filter: blur(5px);
|
||||||
|
-ms-filter: blur(5px);
|
||||||
|
filter: blur(5px);
|
||||||
|
|
||||||
|
/* Center and scale the image nicely */
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -78,12 +109,6 @@
|
||||||
</nav>
|
</nav>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
|
||||||
if (window.matchMedia &&
|
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
||||||
document.body.classList.add('dark');
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
style="position: absolute; width: 0; height: 0; overflow: hidden;"
|
style="position: absolute; width: 0; height: 0; overflow: hidden;"
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="bg-image"></div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<h1 class="stylized">Lemmy</h1>
|
<h1 class="stylized">Lemmy</h1>
|
||||||
<p>A link aggregator for the fediverse.</p>
|
<h4>A link aggregator for the fediverse.</h4>
|
||||||
<p>
|
<p>
|
||||||
<a class="button primary" href="/join">Join a Server</a>
|
<a class="button primary" href="/join">Join a Server</a>
|
||||||
<a class="button primary" href="https://dev.lemmy.ml/docs/administration.html">Run a Server</a>
|
<a class="button primary" href="https://dev.lemmy.ml/docs/administration.html">Run a Server</a>
|
||||||
</p>
|
</p>
|
||||||
<img src="images/main_img.webp">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue