diff options
| author | unwox <me@unwox.com> | 2025-09-08 16:25:57 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-08 16:25:57 +0600 |
| commit | be21204a328b1d67924f273687e9a4797bb3cd37 (patch) | |
| tree | 8834aea21f01a49460dd3c0626104516ed7658b7 | |
| parent | 5026f6e51f983dd05fec806ee84494d3b488f742 (diff) | |
fix logo bg
| -rw-r--r-- | static/style.css | 13 | ||||
| -rw-r--r-- | templates.fnl | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/static/style.css b/static/style.css index 8f06a61..9beeaf5 100644 --- a/static/style.css +++ b/static/style.css @@ -146,6 +146,11 @@ nav a.active { gap: 0.5rem 2rem; } +@keyframes logo-rotation { + from { transform: rotate(0); } + to { transform: rotate(360deg); } +} + .logo { height: 95px; position: relative; @@ -165,14 +170,18 @@ nav a.active { font-weight: 900; } -.logo-bg { +.logo::before { + animation: infinite logo-rotation 120s; + background-image: url("/static/logo-bg.png"); + background-repeat: no-repeat; + background-size: cover; position: absolute; + content: ""; left: -50px; top: -58px; z-index: -1; width: 215px; height: 215px; - object-fit: cover; } .logo-glasses { diff --git a/templates.fnl b/templates.fnl index d0b74ae..d18770b 100644 --- a/templates.fnl +++ b/templates.fnl @@ -34,8 +34,6 @@ (HTML [:article {:class "article"} [:div {:class "logo"} - (HTML [:img {:class "logo-bg" :src "/static/logo-bg.png" - :alt "Солнце за логотипом, фон"}]) (if authenticated? (HTML [:img {:class "logo-glasses" :src "/static/glasses.png" :alt "Солнцезащитные очки"}]) |
