Skip to content

Commit 2146ffe

Browse files
authored
update: svg — html-based svg to njk ref svg (#264)
update: `svg` — html-based svg to njk ref svg
2 parents cc68b29 + aa60d5e commit 2146ffe

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/_includes/sections/preload.njk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<section class="preload">
2-
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-label="EmptyWork's Logo">
3-
<path
4-
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" />
5-
<path d="M7.23 17.6573L7.4 17.4845V19.3517L4 22.7517V5.18501H7.4V12.6763L4.82733 15.2518L7.23 17.6573Z" />
6-
<path d="M14.472 0L21 6.52801V11.3362L18.1667 8.50284V5.18501H14.8913L14.8715 5.20484L12.0665 2.40267L14.472 0Z" />
7-
</svg>
2+
{{ "logo.svg" | svg | safe }}
83
<span class="preload-text">Sit tight, the page you trying to access is currently being load</span>
94
</section>

src/assets/scss/components/_preload.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
svg {
1919
rotate: 0deg;
20-
max-width: 10em;
20+
width: min(10em, 100%);
21+
height: min(10em, 100%);
2122
animation: preload 2s infinite;
2223
}
2324

0 commit comments

Comments
 (0)