Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

update: svg — html-based svg to njk ref svg #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/_includes/sections/preload.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<section class="preload">
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-label="EmptyWork's Logo">
<path
d="M11.65 8.42634L14.8715 5.20767L18.1667 8.50567V14.2517L14.7667 17.6517V10.1178L11.65 13.2345V15.1017L8.24998 18.5017V16.6345L7.39998 17.4845V12.6763L8.24998 11.8263V7.00117L11.65 3.60117V8.42634Z" />
<path d="M7.23 17.6573L7.4 17.4845V19.3517L4 22.7517V5.18501H7.4V12.6763L4.82733 15.2518L7.23 17.6573Z" />
<path d="M14.472 0L21 6.52801V11.3362L18.1667 8.50284V5.18501H14.8913L14.8715 5.20484L12.0665 2.40267L14.472 0Z" />
</svg>
{{ "logo.svg" | svg | safe }}
<span class="preload-text">Sit tight, the page you trying to access is currently being load</span>
</section>
3 changes: 2 additions & 1 deletion src/assets/scss/components/_preload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

svg {
rotate: 0deg;
max-width: 10em;
width: min(10em, 100%);
height: min(10em, 100%);
animation: preload 2s infinite;
}

Expand Down