2022-06-21 16:35:46 -04:00
|
|
|
<%- unless customization_disabled? %>
|
2022-06-23 02:07:04 -04:00
|
|
|
<section id="d-splash">
|
2022-07-08 10:30:59 -04:00
|
|
|
<template class="splash-svg-template">
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
version="1.1"
|
|
|
|
>
|
|
|
|
<style>
|
|
|
|
:root {
|
|
|
|
--animation-state: paused;
|
2022-07-25 06:02:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* user picked a theme where the "regular" scheme is dark */
|
|
|
|
<%- if dark_color_scheme? %>
|
|
|
|
:root {
|
2022-07-08 10:30:59 -04:00
|
|
|
--primary: #<%= ColorScheme.hex_for_name("primary", scheme_id) %>;
|
|
|
|
--secondary: #<%= ColorScheme.hex_for_name("secondary", scheme_id) %>;
|
|
|
|
--tertiary: #<%= ColorScheme.hex_for_name("tertiary", scheme_id) %>;
|
|
|
|
--highlight: #<%= ColorScheme.hex_for_name("highlight", scheme_id) %>;
|
|
|
|
--success: #<%= ColorScheme.hex_for_name("success", scheme_id) %>;
|
|
|
|
}
|
2022-07-25 06:02:21 -04:00
|
|
|
<%- else %>
|
|
|
|
/* user picked a theme a light scheme and also enabled a dark scheme */
|
|
|
|
|
|
|
|
/* deal with light scheme first */
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
|
|
|
--primary: #<%= ColorScheme.hex_for_name("primary", scheme_id) %>;
|
|
|
|
--secondary: #<%= ColorScheme.hex_for_name("secondary", scheme_id) %>;
|
|
|
|
--tertiary: #<%= ColorScheme.hex_for_name("tertiary", scheme_id) %>;
|
|
|
|
--highlight: #<%= ColorScheme.hex_for_name("highlight", scheme_id) %>;
|
|
|
|
--success: #<%= ColorScheme.hex_for_name("success", scheme_id) %>;
|
|
|
|
}
|
|
|
|
}
|
2022-07-08 10:30:59 -04:00
|
|
|
|
2022-07-25 06:02:21 -04:00
|
|
|
/* then deal with dark scheme */
|
2022-07-08 10:30:59 -04:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--primary: #<%= ColorScheme.hex_for_name("primary", dark_scheme_id) %>;
|
2022-07-25 06:02:21 -04:00
|
|
|
--secondary: #<%= ColorScheme.hex_for_name("secondary", dark_scheme_id) %>;
|
|
|
|
--tertiary: #<%= ColorScheme.hex_for_name("tertiary", dark_scheme_id) %>;
|
|
|
|
--highlight: #<%= ColorScheme.hex_for_name("highlight", dark_scheme_id) %>;
|
2022-07-08 10:30:59 -04:00
|
|
|
--success: #<%= ColorScheme.hex_for_name("success", dark_scheme_id) %>;
|
|
|
|
}
|
|
|
|
}
|
2022-07-25 06:02:21 -04:00
|
|
|
<%- end %>
|
2022-07-08 10:30:59 -04:00
|
|
|
|
|
|
|
/* these styles need to live here because the SVG has a different scope */
|
|
|
|
.dots {
|
|
|
|
animation-name: loader;
|
|
|
|
animation-timing-function: ease-in-out;
|
|
|
|
animation-duration: 3s;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-play-state: var(--animation-state);
|
|
|
|
stroke: #fff;
|
|
|
|
stroke-width: 0.5px;
|
|
|
|
transform-origin: center;
|
|
|
|
opacity: 0;
|
|
|
|
r: max(1vw, 11px);
|
|
|
|
cy: 50%;
|
|
|
|
filter: saturate(2) opacity(0.85);
|
2024-06-24 09:54:34 -04:00
|
|
|
fill: var(--tertiary);
|
2022-07-08 10:30:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.dots:nth-child(2) {
|
|
|
|
animation-delay: 0.15s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dots:nth-child(3) {
|
|
|
|
animation-delay: 0.3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dots:nth-child(4) {
|
|
|
|
animation-delay: 0.45s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dots:nth-child(5) {
|
|
|
|
animation-delay: 0.6s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes loader {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
45% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
|
|
|
65% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<g class="container">
|
|
|
|
<circle class="dots" cx="30vw" />
|
|
|
|
<circle class="dots" cx="40vw" />
|
|
|
|
<circle class="dots" cx="50vw" />
|
|
|
|
<circle class="dots" cx="60vw" />
|
|
|
|
<circle class="dots" cx="70vw" />
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</template>
|
|
|
|
|
2022-06-23 02:07:04 -04:00
|
|
|
<style>
|
|
|
|
html {
|
2022-06-25 00:59:16 -04:00
|
|
|
overflow-y: hidden !important;
|
2022-07-25 06:02:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* user picked a theme where the "regular" scheme is dark */
|
|
|
|
<%- if dark_color_scheme? %>
|
|
|
|
html {
|
2022-07-23 05:53:42 -04:00
|
|
|
background-color: #<%= ColorScheme.hex_for_name("secondary", scheme_id) %>;
|
2022-06-23 02:07:04 -04:00
|
|
|
}
|
|
|
|
|
2022-07-25 06:02:21 -04:00
|
|
|
#d-splash .preloader-text-wrapper {
|
|
|
|
color: #<%= ColorScheme.hex_for_name("primary", scheme_id) %>;
|
|
|
|
}
|
|
|
|
<%- else %>
|
|
|
|
/* user picked a theme a light scheme and also enabled a dark scheme */
|
|
|
|
|
|
|
|
/* deal with light scheme first */
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
html {
|
|
|
|
background-color: #<%= ColorScheme.hex_for_name("secondary", scheme_id) %>;
|
|
|
|
}
|
|
|
|
|
|
|
|
#d-splash .preloader-text-wrapper {
|
|
|
|
color: #<%= ColorScheme.hex_for_name("primary", scheme_id) %>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* then deal with dark scheme */
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
html {
|
|
|
|
background-color: #<%= ColorScheme.hex_for_name("secondary", dark_scheme_id) %>;
|
|
|
|
}
|
|
|
|
|
|
|
|
#d-splash .preloader-text-wrapper {
|
|
|
|
color: #<%= ColorScheme.hex_for_name("primary", dark_scheme_id) %>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<%- end %>
|
|
|
|
|
2022-06-23 02:07:04 -04:00
|
|
|
#d-splash {
|
|
|
|
display: grid;
|
|
|
|
place-items: center;
|
|
|
|
backface-visibility: hidden;
|
2022-06-25 00:59:16 -04:00
|
|
|
position: absolute;
|
2022-07-05 18:33:09 -04:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2022-06-25 00:59:16 -04:00
|
|
|
width: 100%;
|
2022-06-30 09:22:00 -04:00
|
|
|
z-index: 1001;
|
|
|
|
--animation-state: paused;
|
2022-06-23 02:07:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#d-splash .preloader-image {
|
|
|
|
max-width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
2022-07-05 10:41:43 -04:00
|
|
|
#d-splash .preloader-text-wrapper {
|
2024-06-24 09:54:34 -04:00
|
|
|
font-family: sans-serif;
|
2022-06-30 05:19:39 -04:00
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
animation: fade-in 0.5s ease-in-out;
|
2022-06-30 09:22:00 -04:00
|
|
|
animation-delay: 1s;
|
2022-06-30 05:19:39 -04:00
|
|
|
animation-fill-mode: forwards;
|
2022-06-30 09:22:00 -04:00
|
|
|
animation-play-state: var(--animation-state);
|
2022-07-05 12:35:55 -04:00
|
|
|
margin-bottom: -4em;
|
2022-07-05 10:41:43 -04:00
|
|
|
}
|
|
|
|
|
2022-06-23 02:07:04 -04:00
|
|
|
#d-splash .preloader-text:after {
|
|
|
|
animation: loading-text 3s infinite;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
margin: 0 0.1em;
|
2022-06-30 05:19:39 -04:00
|
|
|
left: 100%;
|
2022-06-23 02:07:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.rtl #d-splash .preloader-text:after {
|
2022-06-30 05:19:39 -04:00
|
|
|
left: 0;
|
2022-06-23 02:07:04 -04:00
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fade-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes loading-text {
|
|
|
|
0% {
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
25% {
|
|
|
|
content: ".";
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
content: "..";
|
|
|
|
}
|
|
|
|
75% {
|
|
|
|
content: "...";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<img
|
|
|
|
class="preloader-image"
|
2022-07-08 10:30:59 -04:00
|
|
|
src="data:image/svg;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
2022-06-23 02:07:04 -04:00
|
|
|
alt="<%=SiteSetting.title%>"
|
|
|
|
/>
|
|
|
|
|
2022-07-05 10:41:43 -04:00
|
|
|
<div class="preloader-text-wrapper">
|
|
|
|
<div class="preloader-text"><%= I18n.t("js.preloader_text") %></div>
|
2022-06-23 02:07:04 -04:00
|
|
|
</div>
|
2022-06-24 05:38:42 -04:00
|
|
|
|
|
|
|
<noscript>
|
|
|
|
<style>
|
|
|
|
html {
|
2022-06-25 00:59:16 -04:00
|
|
|
overflow-y: revert !important;
|
2022-06-24 05:38:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#d-splash {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</noscript>
|
2022-06-30 09:22:00 -04:00
|
|
|
|
2024-02-16 06:16:54 -05:00
|
|
|
<script nonce="<%= csp_nonce_placeholder %>">
|
|
|
|
<%= SplashScreenHelper.raw_js %>
|
|
|
|
</script>
|
2022-06-23 02:07:04 -04:00
|
|
|
</section>
|
2022-06-21 16:35:46 -04:00
|
|
|
<%- end %>
|