Pin pagefind-astro and add svg logotype

This commit is contained in:
Maciej Jur 2023-07-17 17:05:00 +02:00
parent f6947d456e
commit af7f193aa6
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
4 changed files with 23 additions and 7 deletions

View file

@ -16,7 +16,7 @@
"@citation-js/plugin-bibtex": "^0.6.8",
"@js-temporal/polyfill": "^0.4.4",
"astro": "^2.8.3",
"astro-pagefind": "^1.2.1",
"astro-pagefind": "1.2.0",
"chart.js": "^4.3.0",
"citation-js": "^0.6.8",
"dayjs": "^1.11.9",
@ -46,4 +46,4 @@
"pagefind": "^0.12.0",
"sass": "^1.63.6"
}
}
}

View file

@ -21,8 +21,8 @@ dependencies:
specifier: ^2.8.3
version: 2.8.3(sass@1.63.6)
astro-pagefind:
specifier: ^1.2.1
version: 1.2.1(astro@2.8.3)
specifier: ^1.2.0
version: 1.2.0(astro@2.8.3)
chart.js:
specifier: ^4.3.0
version: 4.3.0
@ -1341,8 +1341,8 @@ packages:
hasBin: true
dev: false
/astro-pagefind@1.2.1(astro@2.8.3):
resolution: {integrity: sha512-Yi8+NEtEc5fz260hG+tnH3UOSPEEcgHxYDbDPxRFeJm/E5opBXz7Kx4D297f/SZhxkPPHzPgjJWD3+dCp95C8g==}
/astro-pagefind@1.2.0(astro@2.8.3):
resolution: {integrity: sha512-1l4RSz/Cm5jIHbgN+mZZ2jOjpB5gK0qWJDZ0zWqUcguX3NJxaS+pai/snGmBoxtEbOGXx/SjrhlSAq2inqwdQw==}
peerDependencies:
astro: ^2.0.4
dependencies:

View file

@ -1,4 +1,7 @@
---
import Logotype from "./Logotype.astro";
interface MenuItem {
name: string;
url: string;
@ -39,7 +42,9 @@ const menu: MenuItem[] = [
<a href="/" class="p-nav__logo">
<img class="p-nav__logo-icon" height="48px" width="51px" src="/static/svg/aya.svg" alt="">
<div class="p-nav__logo-text">
<div class="p-nav__logo-main">Kamoshi.org</div>
<div class="p-nav__logo-main">
<Logotype />
</div>
<div class="p-nav__logo-sub" id="p-nav-splash">
Doesn't require JavaScript!
</div>

View file

@ -0,0 +1,11 @@
<svg style="fill: currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="212.852" height="39.511" viewBox="0 0 56.317 10.454">
<path d="M5.224 7.281c0-.295-.326-.749-.977-1.38-.775-.749-1.726-1.54-2.842-2.372l.76-.605C3.586 1.772 4.429.992 4.687.589c.036-.057.052-.119.052-.181 0-.176-.145-.341-.326-.341-.134 0-.248.098-.326.217-.072.114-.382.419-.92.915S1.897 2.305.961 3.023l-.191.15L.837.429C.837.243.682.088.512.088.336.088.171.238.165.413L0 7.369c0 .212.165.32.336.32.165 0 .336-.109.336-.32l.083-3.488c1.209.889 2.201 1.71 2.987 2.465.496.475.775.822.837 1.028.047.15.176.227.31.227.171 0 .336-.119.336-.32zm5.607-3.333c-.067-.713-.346-1.204-.853-1.473a1.93 1.93 0 0 0-.915-.227c-.258 0-.527.047-.806.14-.729.233-1.276.703-1.633 1.406a3.3 3.3 0 0 0-.367 1.509c0 .816.243 1.452.661 1.845a1.4 1.4 0 0 0 .956.382c.134 0 .274-.021.424-.062.243-.026.475-.129.703-.31.372-.3.723-.713 1.054-1.245.005.605.062 1.111.171 1.509.047.171.176.243.31.243.171 0 .351-.124.351-.315a.36.36 0 0 0-.015-.098c-.098-.372-.15-.853-.15-1.452a15.42 15.42 0 0 1 .078-1.457.95.95 0 0 0 .047-.274.44.44 0 0 0-.015-.119zm-.672.047l-.021.212c-.32.956-1.003 1.969-1.519 2.377-.176.14-.289.207-.346.212-.15.016-.258.057-.393.057a.75.75 0 0 1-.527-.217c-.248-.233-.424-.729-.424-1.323 0-.424.103-.842.32-1.266.258-.506.661-.842 1.214-1.018.227-.072.434-.109.62-.109.636 0 1.013.413 1.075 1.075zm3.99-1.52c-.501 0-.92.315-1.235.951-.098-.367-.233-.651-.398-.863-.072-.088-.16-.124-.248-.124-.181 0-.357.155-.357.341 0 .067.021.134.078.202.284.357.439 1.065.47 2.134-.057.434-.083.92-.083 1.452l.015.698c.01.202.176.31.341.31s.315-.098.331-.295l.031-.357c.031-.336.041-.729.041-1.183l-.005-.589c.088-.656.233-1.168.444-1.535.186-.32.388-.481.599-.481.248 0 .517.212.806.641.264.393.444.92.543 1.586l-.026.811.036 1.09c.021.196.181.3.341.3s.31-.093.331-.284a7.38 7.38 0 0 0 .062-.966c0-.341-.026-.651-.067-.966.057-.667.186-1.276.486-1.804.186-.326.424-.486.677-.486.227 0 .465.134.682.398.331.403.532 1.013.532 1.778 0 .599-.165 1.24-.501 1.917-.129.258.098.475.3.475.124 0 .243-.057.305-.176.377-.77.568-1.509.568-2.222 0-.92-.248-1.664-.661-2.165-.341-.419-.775-.692-1.235-.692-.238 0-.481.078-.723.248-.357.253-.636.677-.832 1.266-.315-.708-.889-1.411-1.648-1.411z"/>
<use xlink:href="#B"/>
<path d="M26.531 3.757a1.29 1.29 0 0 0 .057.388c.155.537.615.946 1.158 1.09.196.052.501.078.91.078l.62-.016c.475 0 .791.155.941.455a.66.66 0 0 1 .072.284c0 .16-.072.315-.207.465-.253.274-.62.413-1.096.413-.765 0-1.344-.243-1.824-.667-.062-.052-.14-.078-.222-.078-.181 0-.336.145-.336.331a.34.34 0 0 0 .114.253c.537.47 1.214.749 2.036.827l.222.01a2.39 2.39 0 0 0 1.018-.222c.512-.233.822-.599.935-1.101.021-.083.026-.165.026-.248 0-.186-.047-.372-.14-.563-.289-.579-.822-.832-1.71-.832l-.543.021c-.501 0-.863-.098-1.075-.295-.191-.176-.289-.367-.289-.574a.79.79 0 0 1 .041-.238c.129-.388.548-.579 1.256-.579.692 0 1.416.377 1.809.754.067.062.145.088.238.088.196-.005.326-.171.326-.341a.31.31 0 0 0-.103-.233c-.651-.62-1.468-.941-2.465-.941-.91 0-1.767.501-1.767 1.468zm5.472 2.47l-.01.558.01.486c.005.207.171.31.331.31.171 0 .341-.114.341-.326V6.242c.021-.537.078-1.023.176-1.442.196-.847.661-1.871 1.53-1.871.32 0 .625.129.91.377.47.408.78 1.09.78 1.974 0 .589-.155 1.199-.47 1.835-.129.258.103.475.3.475a.33.33 0 0 0 .3-.176c.362-.729.543-1.442.543-2.134 0-1.111-.403-1.953-1.013-2.48-.413-.362-.858-.543-1.344-.543a1.82 1.82 0 0 0-.233.016c-.599.072-1.106.465-1.488 1.132l-.005-3.08c0-.217-.165-.326-.336-.326-.165 0-.336.109-.336.326zm5.772-4.966c0 .295.222.537.475.537.119 0 .253-.036.403-.114a.63.63 0 0 0 .439-.584c0-.269-.258-.61-.579-.61-.331 0-.739.388-.739.77zm.837 5.436l.052-2.982-.01-1.054c0-.217-.16-.32-.326-.32s-.341.109-.341.331l.005.842-.15 3.612a.44.44 0 0 0-.026.134c0 .191.16.341.341.341.32 0 .434-.351.455-.904zm2.657.398c0-.362-.305-.93-.62-.93-.227 0-.439.408-.486.594a1.08 1.08 0 0 0-.031.253c0 .357.196.636.574.636a.55.55 0 0 0 .563-.553z"/>
<use xlink:href="#B" x="22.024"/>
<path d="M48.906 7.581c.145 0 .413-.15.413-.305 0-.041-.021-.093-.021-.181 0-.16.021-.31.041-.62a7.9 7.9 0 0 1 .227-1.096c.413-1.457 1.059-2.243 1.933-2.351a.3.3 0 0 0 .284-.315c0-.176-.119-.351-.326-.351h-.041c-.863.109-1.54.656-2.041 1.643-.016-.599-.062-1.039-.134-1.318-.036-.129-.16-.253-.32-.253-.207 0-.326.145-.326.341a.71.71 0 0 0 .026.196c.041.165.072.625.093 1.39l.01.718c0 .605-.078 1.328-.098 1.705-.01.124-.072.269-.072.398 0 .155.16.398.351.398zm4.579.021a1.44 1.44 0 0 0 .424-.067c.558-.067 1.137-.698 1.731-1.881l.005.398c0 1.096-.155 1.969-.465 2.61-.315.651-.734 1.116-1.535 1.116a2.33 2.33 0 0 1-.269-.016c-.408-.047-.842-.207-1.302-.486-.253-.15-.506.057-.506.289 0 .114.052.222.155.284.543.331 1.08.522 1.607.584l.31.021c1.07 0 1.741-.682 2.145-1.499.357-.739.532-1.7.532-2.899 0-.465-.078-1.778-.14-2.057-.072-.972-.625-1.71-1.612-1.71a2.08 2.08 0 0 0-.729.134c-.661.238-1.152.713-1.468 1.426-.212.486-.32.987-.32 1.504 0 1.085.455 2.248 1.437 2.248zm.047-.682c-.15 0-.295-.067-.429-.191-.212-.202-.382-.78-.382-1.375 0-.424.093-.842.279-1.261.233-.522.584-.868 1.065-1.039.171-.062.346-.093.522-.093.584 0 .858.351.92 1.08 0 .016.005.052.01.103-.021.114-.114.372-.274.775-.238.599-.718 1.431-1.111 1.772-.134.114-.222.171-.274.171-.124 0-.212.057-.326.057z"/>
<defs >
<path id="B" d="M22.934 2.181c-.041-.016-.083-.021-.124-.016-.61.026-1.152.258-1.633.698s-.765.997-.863 1.685a2.96 2.96 0 0 0-.031.419 2.65 2.65 0 0 0 .439 1.462c.434.661 1.137 1.163 2.155 1.163.548 0 1.07-.165 1.478-.429a2.55 2.55 0 0 0 1.147-2.134c0-.636-.165-1.152-.46-1.576-.548-.796-1.251-1.22-2.108-1.271zm1.891 2.811c0 .377-.098.76-.3 1.075-.3.475-.925.858-1.633.858-.243 0-.491-.041-.744-.145-.605-.243-1.199-.92-1.199-1.804 0-1.158.806-2.077 1.866-2.139.026.01.057.016.083.016.972.062 1.928.941 1.928 2.139z"/>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.7 KiB