feat(brand): update app to use the Grimmory brand identity (#550)
@@ -1,19 +1,25 @@
|
||||
> [!NOTE]
|
||||
> Grimmory is an independent community fork of Booklore.
|
||||
|
||||
<div align="center">
|
||||
|
||||
Grimmory is a self-hosted application for managing your entire book collection in one place.
|
||||
Organize, read, annotate, sync across devices, and share without relying on third-party services.
|
||||
<picture>
|
||||
<source srcset="assets/logo-with-text.svg">
|
||||
<img src="assets/logo-with-text.svg" alt="Grimmory" height="80" />
|
||||
</picture>
|
||||
|
||||
**Grimmory is a self-hosted digital library for people who take their reading seriously.**
|
||||
|
||||
[](https://github.com/grimmory-tools/grimmory/releases)
|
||||
[](LICENSE)
|
||||
[](https://hub.docker.com/r/grimmory/grimmory)
|
||||
[](https://discord.gg/9YJ7HB4n8T)
|
||||
|
||||
[Documentation](https://grimmory.org/docs) · [Quick Start](docs/QUICKSTART.md) · [Discord](https://discord.gg/9YJ7HB4n8T) · [Releases](https://github.com/grimmory-tools/grimmory/releases)
|
||||
|
||||
[Website](https://grimmory.org/) | [Documentation](https://grimmory.org/docs/getting-started) | [Quick Start](#quick-start) | [Discord](https://discord.gg/9YJ7HB4n8T)
|
||||
<!--  -->
|
||||
|
||||

|
||||
</div>
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 12 MiB |
@@ -1,6 +0,0 @@
|
||||
<svg width="500" height="126" viewBox="0 0 500 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M189.08 83.28C191.107 83.6 192.947 84.4267 194.6 85.76C196.307 87.0933 197.64 88.7467 198.6 90.72C199.613 92.6933 200.12 94.8 200.12 97.04C200.12 99.8667 199.4 102.427 197.96 104.72C196.52 106.96 194.413 108.747 191.64 110.08C188.92 111.36 185.693 112 181.96 112H161.16V56.24H181.16C184.947 56.24 188.173 56.88 190.84 58.16C193.507 59.3867 195.507 61.0667 196.84 63.2C198.173 65.3333 198.84 67.7333 198.84 70.4C198.84 73.7067 197.933 76.4533 196.12 78.64C194.36 80.7733 192.013 82.32 189.08 83.28ZM168.44 80.32H180.68C184.093 80.32 186.733 79.52 188.6 77.92C190.467 76.32 191.4 74.1067 191.4 71.28C191.4 68.4533 190.467 66.24 188.6 64.64C186.733 63.04 184.04 62.24 180.52 62.24H168.44V80.32ZM181.32 106C184.947 106 187.773 105.147 189.8 103.44C191.827 101.733 192.84 99.36 192.84 96.32C192.84 93.2267 191.773 90.8 189.64 89.04C187.507 87.2267 184.653 86.32 181.08 86.32H168.44V106H181.32ZM229.343 112.72C225.236 112.72 221.503 111.787 218.143 109.92C214.836 108.053 212.223 105.413 210.303 102C208.436 98.5333 207.503 94.5333 207.503 90C207.503 85.52 208.463 81.5733 210.383 78.16C212.356 74.6933 215.023 72.0533 218.383 70.24C221.743 68.3733 225.503 67.44 229.663 67.44C233.823 67.44 237.583 68.3733 240.943 70.24C244.303 72.0533 246.943 74.6667 248.863 78.08C250.836 81.4933 251.823 85.4667 251.823 90C251.823 94.5333 250.809 98.5333 248.783 102C246.809 105.413 244.116 108.053 240.703 109.92C237.289 111.787 233.503 112.72 229.343 112.72ZM229.343 106.32C231.956 106.32 234.409 105.707 236.703 104.48C238.996 103.253 240.836 101.413 242.223 98.96C243.663 96.5067 244.383 93.52 244.383 90C244.383 86.48 243.689 83.4933 242.303 81.04C240.916 78.5867 239.103 76.7733 236.863 75.6C234.623 74.3733 232.196 73.76 229.583 73.76C226.916 73.76 224.463 74.3733 222.223 75.6C220.036 76.7733 218.276 78.5867 216.943 81.04C215.609 83.4933 214.943 86.48 214.943 90C214.943 93.5733 215.583 96.5867 216.863 99.04C218.196 101.493 219.956 103.333 222.143 104.56C224.329 105.733 226.729 106.32 229.343 106.32ZM280.514 112.72C276.408 112.72 272.674 111.787 269.314 109.92C266.008 108.053 263.394 105.413 261.474 102C259.608 98.5333 258.674 94.5333 258.674 90C258.674 85.52 259.634 81.5733 261.554 78.16C263.528 74.6933 266.194 72.0533 269.554 70.24C272.914 68.3733 276.674 67.44 280.834 67.44C284.994 67.44 288.754 68.3733 292.114 70.24C295.474 72.0533 298.114 74.6667 300.034 78.08C302.008 81.4933 302.994 85.4667 302.994 90C302.994 94.5333 301.981 98.5333 299.954 102C297.981 105.413 295.288 108.053 291.874 109.92C288.461 111.787 284.674 112.72 280.514 112.72ZM280.514 106.32C283.128 106.32 285.581 105.707 287.874 104.48C290.168 103.253 292.008 101.413 293.394 98.96C294.834 96.5067 295.554 93.52 295.554 90C295.554 86.48 294.861 83.4933 293.474 81.04C292.088 78.5867 290.274 76.7733 288.034 75.6C285.794 74.3733 283.368 73.76 280.754 73.76C278.088 73.76 275.634 74.3733 273.394 75.6C271.208 76.7733 269.448 78.5867 268.114 81.04C266.781 83.4933 266.114 86.48 266.114 90C266.114 93.5733 266.754 96.5867 268.034 99.04C269.368 101.493 271.128 103.333 273.314 104.56C275.501 105.733 277.901 106.32 280.514 106.32ZM337.046 112L319.846 92.64V112H312.566V52.8H319.846V87.6L336.726 68.16H346.886L326.246 90L346.966 112H337.046Z" fill="white"/>
|
||||
<path d="M361.018 52.8V112H353.738V52.8H361.018ZM392.546 112.72C388.439 112.72 384.706 111.787 381.346 109.92C378.039 108.053 375.426 105.413 373.506 102C371.639 98.5333 370.706 94.5333 370.706 90C370.706 85.52 371.666 81.5733 373.586 78.16C375.559 74.6933 378.226 72.0533 381.586 70.24C384.946 68.3733 388.706 67.44 392.866 67.44C397.026 67.44 400.786 68.3733 404.146 70.24C407.506 72.0533 410.146 74.6667 412.066 78.08C414.039 81.4933 415.026 85.4667 415.026 90C415.026 94.5333 414.012 98.5333 411.986 102C410.012 105.413 407.319 108.053 403.906 109.92C400.492 111.787 396.706 112.72 392.546 112.72ZM392.546 106.32C395.159 106.32 397.612 105.707 399.906 104.48C402.199 103.253 404.039 101.413 405.426 98.96C406.866 96.5067 407.586 93.52 407.586 90C407.586 86.48 406.892 83.4933 405.506 81.04C404.119 78.5867 402.306 76.7733 400.066 75.6C397.826 74.3733 395.399 73.76 392.786 73.76C390.119 73.76 387.666 74.3733 385.426 75.6C383.239 76.7733 381.479 78.5867 380.146 81.04C378.812 83.4933 378.146 86.48 378.146 90C378.146 93.5733 378.786 96.5867 380.066 99.04C381.399 101.493 383.159 103.333 385.346 104.56C387.532 105.733 389.932 106.32 392.546 106.32ZM431.878 75.28C433.158 72.7733 434.971 70.8267 437.318 69.44C439.718 68.0533 442.624 67.36 446.038 67.36V74.88H444.118C435.958 74.88 431.878 79.3067 431.878 88.16V112H424.598V68.16H431.878V75.28ZM494.441 88.4C494.441 89.7867 494.361 91.2533 494.201 92.8H459.161C459.428 97.12 460.895 100.507 463.561 102.96C466.281 105.36 469.561 106.56 473.401 106.56C476.548 106.56 479.161 105.84 481.241 104.4C483.375 102.907 484.868 100.933 485.721 98.48H493.561C492.388 102.693 490.041 106.133 486.521 108.8C483.001 111.413 478.628 112.72 473.401 112.72C469.241 112.72 465.508 111.787 462.201 109.92C458.948 108.053 456.388 105.413 454.521 102C452.655 98.5333 451.721 94.5333 451.721 90C451.721 85.4667 452.628 81.4933 454.441 78.08C456.255 74.6667 458.788 72.0533 462.041 70.24C465.348 68.3733 469.135 67.44 473.401 67.44C477.561 67.44 481.241 68.3467 484.441 70.16C487.641 71.9733 490.095 74.48 491.801 77.68C493.561 80.8267 494.441 84.4 494.441 88.4ZM486.921 86.88C486.921 84.1067 486.308 81.7333 485.081 79.76C483.855 77.7333 482.175 76.2133 480.041 75.2C477.961 74.1333 475.641 73.6 473.081 73.6C469.401 73.6 466.255 74.7733 463.641 77.12C461.081 79.4667 459.615 82.72 459.241 86.88H486.921Z" fill="#818CF8"/>
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818CF8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.3 KiB |
@@ -1,6 +0,0 @@
|
||||
<svg width="500" height="126" viewBox="0 0 500 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M189.08 83.28C191.107 83.6 192.947 84.4267 194.6 85.76C196.307 87.0933 197.64 88.7467 198.6 90.72C199.613 92.6933 200.12 94.8 200.12 97.04C200.12 99.8667 199.4 102.427 197.96 104.72C196.52 106.96 194.413 108.747 191.64 110.08C188.92 111.36 185.693 112 181.96 112H161.16V56.24H181.16C184.947 56.24 188.173 56.88 190.84 58.16C193.507 59.3867 195.507 61.0667 196.84 63.2C198.173 65.3333 198.84 67.7333 198.84 70.4C198.84 73.7067 197.933 76.4533 196.12 78.64C194.36 80.7733 192.013 82.32 189.08 83.28ZM168.44 80.32H180.68C184.093 80.32 186.733 79.52 188.6 77.92C190.467 76.32 191.4 74.1067 191.4 71.28C191.4 68.4533 190.467 66.24 188.6 64.64C186.733 63.04 184.04 62.24 180.52 62.24H168.44V80.32ZM181.32 106C184.947 106 187.773 105.147 189.8 103.44C191.827 101.733 192.84 99.36 192.84 96.32C192.84 93.2267 191.773 90.8 189.64 89.04C187.507 87.2267 184.653 86.32 181.08 86.32H168.44V106H181.32ZM229.343 112.72C225.236 112.72 221.503 111.787 218.143 109.92C214.836 108.053 212.223 105.413 210.303 102C208.436 98.5333 207.503 94.5333 207.503 90C207.503 85.52 208.463 81.5733 210.383 78.16C212.356 74.6933 215.023 72.0533 218.383 70.24C221.743 68.3733 225.503 67.44 229.663 67.44C233.823 67.44 237.583 68.3733 240.943 70.24C244.303 72.0533 246.943 74.6667 248.863 78.08C250.836 81.4933 251.823 85.4667 251.823 90C251.823 94.5333 250.809 98.5333 248.783 102C246.809 105.413 244.116 108.053 240.703 109.92C237.289 111.787 233.503 112.72 229.343 112.72ZM229.343 106.32C231.956 106.32 234.409 105.707 236.703 104.48C238.996 103.253 240.836 101.413 242.223 98.96C243.663 96.5067 244.383 93.52 244.383 90C244.383 86.48 243.689 83.4933 242.303 81.04C240.916 78.5867 239.103 76.7733 236.863 75.6C234.623 74.3733 232.196 73.76 229.583 73.76C226.916 73.76 224.463 74.3733 222.223 75.6C220.036 76.7733 218.276 78.5867 216.943 81.04C215.609 83.4933 214.943 86.48 214.943 90C214.943 93.5733 215.583 96.5867 216.863 99.04C218.196 101.493 219.956 103.333 222.143 104.56C224.329 105.733 226.729 106.32 229.343 106.32ZM280.514 112.72C276.408 112.72 272.674 111.787 269.314 109.92C266.008 108.053 263.394 105.413 261.474 102C259.608 98.5333 258.674 94.5333 258.674 90C258.674 85.52 259.634 81.5733 261.554 78.16C263.528 74.6933 266.194 72.0533 269.554 70.24C272.914 68.3733 276.674 67.44 280.834 67.44C284.994 67.44 288.754 68.3733 292.114 70.24C295.474 72.0533 298.114 74.6667 300.034 78.08C302.008 81.4933 302.994 85.4667 302.994 90C302.994 94.5333 301.981 98.5333 299.954 102C297.981 105.413 295.288 108.053 291.874 109.92C288.461 111.787 284.674 112.72 280.514 112.72ZM280.514 106.32C283.128 106.32 285.581 105.707 287.874 104.48C290.168 103.253 292.008 101.413 293.394 98.96C294.834 96.5067 295.554 93.52 295.554 90C295.554 86.48 294.861 83.4933 293.474 81.04C292.088 78.5867 290.274 76.7733 288.034 75.6C285.794 74.3733 283.368 73.76 280.754 73.76C278.088 73.76 275.634 74.3733 273.394 75.6C271.208 76.7733 269.448 78.5867 268.114 81.04C266.781 83.4933 266.114 86.48 266.114 90C266.114 93.5733 266.754 96.5867 268.034 99.04C269.368 101.493 271.128 103.333 273.314 104.56C275.501 105.733 277.901 106.32 280.514 106.32ZM337.046 112L319.846 92.64V112H312.566V52.8H319.846V87.6L336.726 68.16H346.886L326.246 90L346.966 112H337.046Z" fill="#1e293b"/>
|
||||
<path d="M361.018 52.8V112H353.738V52.8H361.018ZM392.546 112.72C388.439 112.72 384.706 111.787 381.346 109.92C378.039 108.053 375.426 105.413 373.506 102C371.639 98.5333 370.706 94.5333 370.706 90C370.706 85.52 371.666 81.5733 373.586 78.16C375.559 74.6933 378.226 72.0533 381.586 70.24C384.946 68.3733 388.706 67.44 392.866 67.44C397.026 67.44 400.786 68.3733 404.146 70.24C407.506 72.0533 410.146 74.6667 412.066 78.08C414.039 81.4933 415.026 85.4667 415.026 90C415.026 94.5333 414.012 98.5333 411.986 102C410.012 105.413 407.319 108.053 403.906 109.92C400.492 111.787 396.706 112.72 392.546 112.72ZM392.546 106.32C395.159 106.32 397.612 105.707 399.906 104.48C402.199 103.253 404.039 101.413 405.426 98.96C406.866 96.5067 407.586 93.52 407.586 90C407.586 86.48 406.892 83.4933 405.506 81.04C404.119 78.5867 402.306 76.7733 400.066 75.6C397.826 74.3733 395.399 73.76 392.786 73.76C390.119 73.76 387.666 74.3733 385.426 75.6C383.239 76.7733 381.479 78.5867 380.146 81.04C378.812 83.4933 378.146 86.48 378.146 90C378.146 93.5733 378.786 96.5867 380.066 99.04C381.399 101.493 383.159 103.333 385.346 104.56C387.532 105.733 389.932 106.32 392.546 106.32ZM431.878 75.28C433.158 72.7733 434.971 70.8267 437.318 69.44C439.718 68.0533 442.624 67.36 446.038 67.36V74.88H444.118C435.958 74.88 431.878 79.3067 431.878 88.16V112H424.598V68.16H431.878V75.28ZM494.441 88.4C494.441 89.7867 494.361 91.2533 494.201 92.8H459.161C459.428 97.12 460.895 100.507 463.561 102.96C466.281 105.36 469.561 106.56 473.401 106.56C476.548 106.56 479.161 105.84 481.241 104.4C483.375 102.907 484.868 100.933 485.721 98.48H493.561C492.388 102.693 490.041 106.133 486.521 108.8C483.001 111.413 478.628 112.72 473.401 112.72C469.241 112.72 465.508 111.787 462.201 109.92C458.948 108.053 456.388 105.413 454.521 102C452.655 98.5333 451.721 94.5333 451.721 90C451.721 85.4667 452.628 81.4933 454.441 78.08C456.255 74.6667 458.788 72.0533 462.041 70.24C465.348 68.3733 469.135 67.44 473.401 67.44C477.561 67.44 481.241 68.3467 484.441 70.16C487.641 71.9733 490.095 74.48 491.801 77.68C493.561 80.8267 494.441 84.4 494.441 88.4ZM486.921 86.88C486.921 84.1067 486.308 81.7333 485.081 79.76C483.855 77.7333 482.175 76.2133 480.041 75.2C477.961 74.1333 475.641 73.6 473.081 73.6C469.401 73.6 466.255 74.7733 463.641 77.12C461.081 79.4667 459.615 82.72 459.241 86.88H486.921Z" fill="#818CF8"/>
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818CF8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1,63 @@
|
||||
<svg width="2500" height="350" viewBox="0 0 2500 350" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_2_81)">
|
||||
<path d="M71.8311 296.149V314.103V332.047V350L89.7839 332.047L107.747 350V332.047V314.103V296.149H71.8311Z" fill="white"/>
|
||||
<path d="M1748.64 102.654H1701.96C1691.71 102.654 1683.37 110.983 1683.37 121.23V165.376C1683.37 175.622 1691.7 183.952 1701.96 183.952H1748.64C1757.49 183.952 1764.7 176.746 1764.7 167.895V118.721C1764.7 109.869 1757.49 102.664 1748.64 102.664V102.654Z" fill="#ED8A22"/>
|
||||
<path d="M896.673 102.654H852.504C842.263 102.654 833.919 110.983 833.919 121.23V167.885C833.919 176.736 841.128 183.942 849.984 183.942H899.184C908.039 183.942 915.249 176.736 915.249 167.885V121.23C915.249 110.983 906.915 102.654 896.663 102.654H896.673Z" fill="#ED8A22"/>
|
||||
<path d="M653.709 183.942H697.878C708.119 183.942 716.463 175.612 716.463 165.366V118.711C716.463 109.859 709.254 102.654 700.398 102.654H651.199C642.343 102.654 635.134 109.859 635.134 118.711V165.366C635.134 175.612 643.467 183.942 653.719 183.942H653.709Z" fill="#ED8A22"/>
|
||||
<path d="M107.747 80.7661H269.361C274.322 80.7661 278.338 76.7519 278.338 71.7944V8.97179C278.338 4.01422 274.322 0 269.361 0H35.9155C29.369 0 23.2442 1.75622 17.9527 4.81707C12.5007 7.96823 7.96226 12.5043 4.80949 17.9536C1.75712 23.2323 0 29.354 0 35.8972V296.149C0 315.979 16.0751 332.046 35.9155 332.046H58.8786V314.103H35.9155C25.9953 314.103 17.9527 306.064 17.9527 296.149C17.9527 286.234 25.9953 278.196 35.9155 278.196H260.385C270.305 278.196 278.348 270.157 278.348 260.242V116.663C278.348 106.748 270.305 98.7097 260.385 98.7097H107.747C102.786 98.7097 98.7702 102.724 98.7702 107.681V170.504C98.7702 175.462 102.786 179.476 107.747 179.476H188.554C193.514 179.476 197.53 183.49 197.53 188.448C197.53 193.405 193.514 197.419 188.554 197.419H107.747C92.8663 197.419 80.8074 185.367 80.8074 170.494V107.671C80.8074 92.7988 92.8663 80.7461 107.747 80.7461V80.7661Z" fill="url(#paint0_linear_2_81)"/>
|
||||
<path d="M269.361 314.103H121.231V332.046H269.361C274.322 332.046 278.338 328.032 278.338 323.075C278.338 318.117 274.322 314.103 269.361 314.103Z" fill="url(#paint1_linear_2_81)"/>
|
||||
<path d="M1620.14 3.3017C1600.16 3.3017 1583.98 19.489 1583.98 39.4498V248.099C1583.98 267.538 1599.74 283.294 1619.19 283.294H1847.17C1856.53 283.294 1864.11 275.717 1864.11 266.364V19.6898C1864.11 10.6377 1856.77 3.3017 1847.72 3.3017H1620.14ZM1782.77 167.885C1782.77 186.701 1767.46 202.006 1748.64 202.006H1701.96C1681.74 202.006 1665.3 185.567 1665.3 165.366V121.219C1665.3 101.018 1681.74 84.5796 1701.96 84.5796H1748.64C1767.46 84.5796 1782.77 99.8839 1782.77 118.701V167.885Z" fill="url(#paint2_linear_2_81)"/>
|
||||
<path d="M849.994 202.006C831.168 202.006 815.856 186.701 815.856 167.885V121.229C815.856 101.028 832.302 84.5897 852.514 84.5897H896.683C897.527 84.5897 898.37 84.6298 899.204 84.69V84.5897C908.059 84.5897 915.269 77.3842 915.269 68.5328V19.6898C915.269 10.6377 907.929 3.3017 898.872 3.3017H671.31C651.329 3.3017 635.144 19.489 635.144 39.4498V68.5328C635.144 77.3842 642.353 84.5897 651.209 84.5897H700.408C719.234 84.5897 734.546 99.8939 734.546 118.711V165.366C734.546 185.567 718.1 202.006 697.888 202.006H653.719C652.875 202.006 652.032 201.966 651.199 201.905V202.006C642.343 202.006 635.134 209.211 635.134 218.063V248.099C635.134 267.538 650.897 283.294 670.346 283.294H898.33C907.688 283.294 915.269 275.717 915.269 266.364V218.063C915.269 209.211 908.059 202.006 899.204 202.006H849.994Z" fill="url(#paint3_linear_2_81)"/>
|
||||
<path d="M1215.14 3.3017H987.582C967.601 3.3017 951.415 19.489 951.415 39.4498V248.099C951.415 267.538 967.179 283.294 986.628 283.294H1016.52C1025.37 283.294 1032.58 276.088 1032.58 267.237V93.6217C1032.58 88.634 1036.63 84.5897 1041.62 84.5897C1046.61 84.5897 1050.66 88.634 1050.66 93.6217V267.417C1050.76 276.188 1057.92 283.294 1066.71 283.294H1116.07C1124.93 283.294 1132.14 276.088 1132.14 267.237V93.6217C1132.14 88.634 1136.18 84.5897 1141.17 84.5897C1146.16 84.5897 1150.21 88.634 1150.21 93.6217V267.237C1150.21 276.088 1157.41 283.294 1166.28 283.294H1214.6C1223.96 283.294 1231.54 275.717 1231.54 266.364V19.6898C1231.54 10.6377 1224.2 3.3017 1215.14 3.3017Z" fill="url(#paint4_linear_2_81)"/>
|
||||
<path d="M1531.43 3.3017H1303.86C1283.88 3.3017 1267.7 19.489 1267.7 39.4498V248.099C1267.7 267.538 1283.46 283.294 1302.91 283.294H1332.8C1341.66 283.294 1348.87 276.088 1348.87 267.237V93.6217C1348.87 88.634 1352.91 84.5897 1357.9 84.5897C1362.89 84.5897 1366.94 88.634 1366.94 93.6217V267.417C1367.04 276.188 1374.2 283.294 1382.99 283.294H1432.35C1441.21 283.294 1448.42 276.088 1448.42 267.237V93.6217C1448.42 88.634 1452.47 84.5897 1457.46 84.5897C1462.45 84.5897 1466.49 88.634 1466.49 93.6217V267.237C1466.49 276.088 1473.69 283.294 1482.56 283.294H1530.88C1540.24 283.294 1547.82 275.717 1547.82 266.364V19.6898C1547.82 10.6377 1540.48 3.3017 1531.43 3.3017Z" fill="url(#paint5_linear_2_81)"/>
|
||||
<path d="M2090.02 202.006C2085.03 202.006 2080.98 197.961 2080.98 192.974C2080.98 187.986 2085.03 183.942 2090.02 183.942H2164.32C2173.18 183.942 2180.38 176.736 2180.38 167.885V19.6898C2180.38 10.6377 2173.05 3.3017 2163.99 3.3017H1936.43C1916.45 3.3017 1900.26 19.489 1900.26 39.4498V248.099C1900.26 267.538 1916.02 283.294 1935.47 283.294H1965.52C1974.38 283.294 1981.59 276.088 1981.59 267.237V247.216C1981.59 247.216 1981.59 247.186 1981.59 247.166V192.974C1981.59 187.986 1985.64 183.942 1990.63 183.942C1995.62 183.942 1999.66 187.986 1999.66 192.974V247.216C1999.68 267.116 2015.89 283.294 2035.81 283.294H2163.46C2172.81 283.294 2180.4 275.717 2180.4 266.364V218.063C2180.4 209.211 2173.19 202.006 2164.33 202.006H2090.02ZM1990.62 102.684C1985.63 102.684 1981.58 98.6395 1981.58 93.6518C1981.58 88.6641 1985.63 84.6198 1990.62 84.6198H2090.02C2095.01 84.6198 2099.06 88.6641 2099.06 93.6518C2099.06 98.6395 2095.01 102.684 2090.02 102.684H1990.62Z" fill="url(#paint6_linear_2_81)"/>
|
||||
<path d="M508.611 202.006C503.621 202.006 499.574 197.961 499.574 192.974C499.574 187.986 503.621 183.942 508.611 183.942H582.912C591.768 183.942 598.977 176.736 598.977 167.885V19.6898C598.977 10.6377 591.637 3.3017 582.581 3.3017H355.019C335.038 3.3017 318.852 19.489 318.852 39.4498V248.099C318.852 267.538 334.616 283.294 354.065 283.294H384.116C392.972 283.294 400.182 276.088 400.182 267.237V247.216C400.182 247.216 400.182 247.186 400.182 247.166V192.974C400.182 187.986 404.228 183.942 409.218 183.942C414.208 183.942 418.255 187.986 418.255 192.974V247.216C418.275 267.116 434.481 283.294 454.401 283.294H582.048C591.406 283.294 598.987 275.717 598.987 266.364V218.063C598.987 209.211 591.778 202.006 582.922 202.006H508.611ZM409.208 102.684C404.218 102.684 400.171 98.6395 400.171 93.6518C400.171 88.6641 404.218 84.6198 409.208 84.6198H508.611C513.601 84.6198 517.647 88.6641 517.647 93.6518C517.647 98.6395 513.601 102.684 508.611 102.684H409.208Z" fill="url(#paint7_linear_2_81)"/>
|
||||
<path d="M2480.27 3.3017H2379.19C2370.33 3.3017 2363.13 10.5072 2363.13 19.3586V93.6217C2363.13 98.6094 2359.08 102.654 2354.09 102.654C2349.1 102.654 2345.05 98.6094 2345.05 93.6217V19.3586C2345.05 10.5072 2337.84 3.3017 2328.99 3.3017H2252.7C2232.72 3.3017 2216.53 19.489 2216.53 39.4498V147.814C2216.53 167.734 2232.75 183.942 2252.68 183.942H2406.3C2411.29 183.942 2415.34 187.986 2415.34 192.974C2415.34 197.961 2411.29 202.006 2406.3 202.006H2232.43C2223.65 202.096 2216.53 209.261 2216.53 218.053V248.089C2216.53 267.528 2232.3 283.284 2251.74 283.284H2479.73C2489.09 283.284 2496.67 275.707 2496.67 266.354V19.6898C2496.67 10.6377 2489.33 3.3017 2480.27 3.3017Z" fill="url(#paint8_linear_2_81)"/>
|
||||
<path d="M2491.43 314.103H327.818C322.858 314.103 318.842 318.117 318.842 323.075C318.842 328.032 322.858 332.046 327.818 332.046H2491.43C2496.39 332.046 2500.4 328.032 2500.4 323.075C2500.4 318.117 2496.39 314.103 2491.43 314.103Z" fill="url(#paint9_linear_2_81)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint3_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint4_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint5_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint6_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint7_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint8_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint9_linear_2_81" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<clipPath id="clip0_2_81">
|
||||
<rect width="2500" height="350" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
@@ -1,4 +1,15 @@
|
||||
<svg width="126" height="126" viewBox="0 0 126 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818cf8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
<svg width="100" height="126" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8063 106.614V113.077V119.537V126L32.256 119.537L38.7094 126V119.537V113.077V106.614H25.8063Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#paint0_linear_2_61)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#paint1_linear_2_61)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2_61" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_2_61" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FBB042"/>
|
||||
<stop offset="1" stop-color="#F16422"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 1.7 KiB |
@@ -2,9 +2,20 @@
|
||||
@if (loading) {
|
||||
<div class="splash-screen">
|
||||
<div class="splash-content">
|
||||
<svg class="logo" viewBox="0 0 126 126" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818cf8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
<svg class="logo" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8062 106.614V113.077V119.537V126L32.2559 119.537L38.7093 126V119.537V113.077V106.614H25.8062Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#app-loading-logo-gradient)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-loading-logo-gradient-secondary)"/>
|
||||
<defs>
|
||||
<linearGradient id="app-loading-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="app-loading-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
@if (offline) {
|
||||
<h1>{{ t('offline') }}</h1>
|
||||
@@ -20,9 +31,20 @@
|
||||
} @else if (offline) {
|
||||
<div class="splash-screen">
|
||||
<div class="splash-content">
|
||||
<svg class="logo" viewBox="0 0 126 126" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818cf8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
<svg class="logo" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8062 106.614V113.077V119.537V126L32.2559 119.537L38.7093 126V119.537V113.077V106.614H25.8062Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#app-offline-logo-gradient)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-offline-logo-gradient-secondary)"/>
|
||||
<defs>
|
||||
<linearGradient id="app-offline-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="app-offline-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
<h1>{{ t('offline') }}</h1>
|
||||
<p>{{ t('connectionLost') }}</p>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 64px;
|
||||
width: auto;
|
||||
height: 64px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@@ -5,12 +5,20 @@
|
||||
<div class="login-card">
|
||||
<div class="login-header">
|
||||
<div class="logo-wrapper">
|
||||
<svg class="logo-icon" viewBox="0 0 126 126" fill="var(--primary-color)" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z"/>
|
||||
<path
|
||||
d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z"
|
||||
fill="white"/>
|
||||
<svg class="logo-icon" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8062 106.614V113.077V119.537V126L32.2559 119.537L38.7093 126V119.537V113.077V106.614H25.8062Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#login-logo-gradient)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#login-logo-gradient-secondary)"/>
|
||||
<defs>
|
||||
<linearGradient id="login-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="login-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
<h1 class="login-title">{{ t('title') }}</h1>
|
||||
|
||||
@@ -5,12 +5,20 @@
|
||||
<div class="setup-card">
|
||||
<div class="setup-header">
|
||||
<div class="logo-wrapper">
|
||||
<svg class="logo-icon" viewBox="0 0 126 126" fill="var(--primary-color)" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z"/>
|
||||
<path
|
||||
d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z"
|
||||
fill="white"/>
|
||||
<svg class="logo-icon" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8062 106.614V113.077V119.537V126L32.2559 119.537L38.7093 126V119.537V113.077V106.614H25.8062Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#setup-logo-gradient)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#setup-logo-gradient-secondary)"/>
|
||||
<defs>
|
||||
<linearGradient id="setup-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="setup-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
<h1 class="setup-title">{{ t('title') }}</h1>
|
||||
|
||||
@@ -2,15 +2,21 @@
|
||||
<div class="layout-topbar">
|
||||
|
||||
<a class="layout-topbar-logo topbar-logo" routerLink="">
|
||||
<!--
|
||||
<svg class="logo-icon half-title" viewBox="0 0 126 126" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z"/>
|
||||
<path
|
||||
d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z"
|
||||
fill="white"/>
|
||||
<svg class="logo-icon half-title" viewBox="0 0 100 126" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M25.8062 106.614V113.077V119.537V126L32.2559 119.537L38.7093 126V119.537V113.077V106.614H25.8062Z" fill="white"/>
|
||||
<path d="M38.7093 29.0758H96.7715C98.5535 29.0758 99.9964 27.6307 99.9964 25.846V3.22984C99.9964 1.44512 98.5535 0 96.7715 0H12.9031C10.5512 0 8.35077 0.63224 6.44975 1.73414C4.49102 2.86856 2.86054 4.50155 1.72787 6.4633C0.631268 8.36363 0 10.5674 0 12.923V106.614C0 113.753 5.7752 119.537 12.9031 119.537H21.1529V113.077H12.9031C9.33915 113.077 6.44975 110.183 6.44975 106.614C6.44975 103.044 9.33915 100.15 12.9031 100.15H93.5466C97.1106 100.15 100 97.2566 100 93.6871V41.9988C100 38.4293 97.1106 35.5355 93.5466 35.5355H38.7093C36.9273 35.5355 35.4845 36.9806 35.4845 38.7653V61.3815C35.4845 63.1662 36.9273 64.6113 38.7093 64.6113H67.7404C69.5224 64.6113 70.9653 66.0564 70.9653 67.8412C70.9653 69.6259 69.5224 71.071 67.7404 71.071H38.7093C33.3634 71.071 29.0311 66.732 29.0311 61.3779V38.7617C29.0311 33.4076 33.3634 29.0686 38.7093 29.0686V29.0758Z" fill="url(#grimmory-logo-topbar-primary-gradient)"/>
|
||||
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#grimmory-logo-topbar-primary-gradient-secondary)"/>
|
||||
<defs>
|
||||
<linearGradient id="grimmory-logo-topbar-primary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="grimmory-logo-topbar-primary-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color: var(--p-primary-300)"/>
|
||||
<stop offset="1" style="stop-color: var(--p-primary-500)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
-->
|
||||
<span class="logo-text">Grimmory</span>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
.topbar-logo {
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 6rem;
|
||||
gap: 0.5rem;
|
||||
.layout-topbar-logo.topbar-logo {
|
||||
width: var(--sidebar-width, 225px);
|
||||
min-width: var(--sidebar-width, 225px);
|
||||
justify-content: flex-start;
|
||||
padding-left: 2.05rem;
|
||||
padding-right: 0;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
@@ -10,6 +13,13 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
width: auto;
|
||||
height: 2rem;
|
||||
flex-shrink: 0;
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.topbar-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -9,7 +9,7 @@ describe('FaviconService', () => {
|
||||
const createObjectUrlSpy = vi.spyOn(URL, 'createObjectURL').mockReturnValue('blob:favicon');
|
||||
|
||||
const service = new FaviconService();
|
||||
service.updateFavicon('#123456');
|
||||
service.updateFavicon('#abcdef', '#123456');
|
||||
|
||||
expect(querySelectorSpy).toHaveBeenCalledWith("link[rel*='icon']");
|
||||
expect(createObjectUrlSpy).toHaveBeenCalledOnce();
|
||||
@@ -30,11 +30,28 @@ describe('FaviconService', () => {
|
||||
vi.spyOn(URL, 'createObjectURL').mockReturnValue('blob:new-favicon');
|
||||
|
||||
const service = new FaviconService();
|
||||
service.updateFavicon('#abcdef');
|
||||
service.updateFavicon('#fedcba', '#abcdef');
|
||||
|
||||
expect(appended).toEqual([favicon]);
|
||||
expect(favicon.rel).toBe('icon');
|
||||
expect(favicon.type).toBe('image/svg+xml');
|
||||
expect(favicon.href).toBe('blob:new-favicon');
|
||||
});
|
||||
|
||||
it('revokes the previous favicon object URL before replacing it', () => {
|
||||
const favicon = {type: '', href: ''} as HTMLLinkElement;
|
||||
|
||||
vi.spyOn(document, 'querySelector').mockReturnValue(favicon);
|
||||
vi.spyOn(URL, 'createObjectURL')
|
||||
.mockReturnValueOnce('blob:first-favicon')
|
||||
.mockReturnValueOnce('blob:second-favicon');
|
||||
const revokeObjectUrlSpy = vi.spyOn(URL, 'revokeObjectURL').mockImplementation(() => undefined);
|
||||
|
||||
const service = new FaviconService();
|
||||
service.updateFavicon('#fedcba', '#abcdef');
|
||||
service.updateFavicon('#89abcd', '#123456');
|
||||
|
||||
expect(revokeObjectUrlSpy).toHaveBeenCalledWith('blob:first-favicon');
|
||||
expect(favicon.href).toBe('blob:second-favicon');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,18 +2,31 @@ import {Injectable} from '@angular/core';
|
||||
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class FaviconService {
|
||||
private svgTemplate = (color: string) => `
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 126 126" fill="currentColor">
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="${color}"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
private currentUrl?: string;
|
||||
|
||||
private svgTemplate = (startColor: string, endColor: string) => `
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 119 150" fill="none">
|
||||
<path d="M30.7094 126.921V134.616V142.306V150L38.3846 142.306L46.064 150V142.306V134.616V126.921H30.7094Z" fill="white"/>
|
||||
<path d="M46.0641 34.6141H115.158C117.279 34.6141 118.996 32.8937 118.996 30.769V3.84505C118.996 1.72038 117.279 0 115.158 0H15.3547C12.5559 0 9.93741 0.752667 7.6752 2.06446C5.34431 3.41496 3.40405 5.35899 2.05616 7.6944C0.751208 9.9567 0 12.5803 0 15.3845V126.921C0 135.42 6.87248 142.306 15.3547 142.306H25.1719V134.615H15.3547C11.1136 134.615 7.6752 131.17 7.6752 126.921C7.6752 122.672 11.1136 119.227 15.3547 119.227H111.32C115.562 119.227 119 115.782 119 111.532V49.9986C119 45.7492 115.562 42.3042 111.32 42.3042H46.0641C43.9435 42.3042 42.2265 44.0245 42.2265 46.1492V73.0732C42.2265 75.1978 43.9435 76.9182 46.0641 76.9182H80.6111C82.7317 76.9182 84.4487 78.6386 84.4487 80.7633C84.4487 82.8879 82.7317 84.6083 80.6111 84.6083H46.0641C39.7024 84.6083 34.547 79.4429 34.547 73.0689V46.1449C34.547 39.7709 39.7024 34.6055 46.0641 34.6055V34.6141Z" fill="url(#favicon-gradient)"/>
|
||||
<path d="M115.158 134.615H51.8291V142.306H115.158C117.279 142.306 118.996 140.585 118.996 138.461C118.996 136.336 117.279 134.615 115.158 134.615Z" fill="url(#favicon-gradient)"/>
|
||||
<defs>
|
||||
<linearGradient id="favicon-gradient" x1="59.5" y1="0" x2="59.5" y2="142.306" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" stop-color="${startColor}"/>
|
||||
<stop offset="100%" stop-color="${endColor}"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
`;
|
||||
|
||||
updateFavicon(color: string) {
|
||||
const svg = this.svgTemplate(color);
|
||||
updateFavicon(startColor: string, endColor: string) {
|
||||
const svg = this.svgTemplate(startColor, endColor);
|
||||
const blob = new Blob([svg], {type: 'image/svg+xml'});
|
||||
const url = URL.createObjectURL(blob);
|
||||
|
||||
if (this.currentUrl) {
|
||||
URL.revokeObjectURL(this.currentUrl);
|
||||
}
|
||||
|
||||
let favicon = document.querySelector("link[rel*='icon']") as HTMLLinkElement;
|
||||
if (!favicon) {
|
||||
favicon = document.createElement('link');
|
||||
@@ -23,5 +36,6 @@ export class FaviconService {
|
||||
|
||||
favicon.type = 'image/svg+xml';
|
||||
favicon.href = url;
|
||||
this.currentUrl = url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import {ChangeDetectionStrategy, Component, computed, effect, inject} from '@angular/core';
|
||||
import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
|
||||
|
||||
import Aura from '../theme-palette-extend';
|
||||
|
||||
import {AppConfigService} from '../../service/app-config.service';
|
||||
import {TranslocoDirective} from '@jsverse/transloco';
|
||||
import {FaviconService} from './favicon-service';
|
||||
import {NgClass} from '@angular/common';
|
||||
import Aura from '../theme-palette-extend';
|
||||
|
||||
type ColorPalette = Record<string, string>;
|
||||
|
||||
@@ -32,28 +28,16 @@ interface Palette {
|
||||
})
|
||||
export class ThemeConfiguratorComponent {
|
||||
readonly configService = inject(AppConfigService);
|
||||
readonly faviconService = inject(FaviconService);
|
||||
|
||||
readonly surfaces = this.configService.surfaces;
|
||||
|
||||
readonly selectedPrimaryColor = computed(() => this.configService.appState().primary);
|
||||
readonly selectedSurfaceColor = computed(() => this.configService.appState().surface);
|
||||
|
||||
readonly faviconColor = computed(() => {
|
||||
const name = this.selectedPrimaryColor() ?? 'green';
|
||||
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>;
|
||||
const colorPalette = presetPalette[name];
|
||||
return colorPalette?.[500] ?? name;
|
||||
});
|
||||
|
||||
private readonly _faviconSyncEffect = effect(() => {
|
||||
this.faviconService.updateFavicon(this.faviconColor());
|
||||
});
|
||||
|
||||
readonly primaryColors = computed<Palette[]>(() => {
|
||||
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>;
|
||||
const colors = [
|
||||
'emerald', 'green', 'lime', 'orange', 'amber', 'yellow',
|
||||
'orange', 'amber', 'yellow', 'lime', 'green', 'emerald',
|
||||
'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet',
|
||||
'purple', 'fuchsia', 'pink', 'rose', 'red',
|
||||
'coralSunset', 'roseBlush', 'melonBlush', 'cottonCandy',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { AppConfigService } from './app-config.service';
|
||||
import { FaviconService } from '../layout/theme-configurator/favicon-service';
|
||||
|
||||
function createLocalStorageMock() {
|
||||
const store = new Map<string, string>();
|
||||
@@ -22,16 +23,23 @@ function createLocalStorageMock() {
|
||||
describe('AppConfigService', () => {
|
||||
let service: AppConfigService;
|
||||
let localStorageMock: ReturnType<typeof createLocalStorageMock>;
|
||||
let faviconServiceMock: { updateFavicon: ReturnType<typeof vi.fn> };
|
||||
const rootStyle = document.documentElement.style;
|
||||
|
||||
beforeEach(() => {
|
||||
localStorageMock = createLocalStorageMock();
|
||||
faviconServiceMock = {
|
||||
updateFavicon: vi.fn(),
|
||||
};
|
||||
vi.stubGlobal('localStorage', localStorageMock);
|
||||
rootStyle.cssText = '';
|
||||
|
||||
TestBed.resetTestingModule();
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AppConfigService],
|
||||
providers: [
|
||||
AppConfigService,
|
||||
{ provide: FaviconService, useValue: faviconServiceMock },
|
||||
],
|
||||
});
|
||||
|
||||
service = TestBed.inject(AppConfigService);
|
||||
@@ -44,9 +52,10 @@ describe('AppConfigService', () => {
|
||||
});
|
||||
|
||||
it('applies the default app-owned tokens on init', () => {
|
||||
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#4ade80');
|
||||
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#fb923c');
|
||||
expect(rootStyle.getPropertyValue('--ground-background')).toBe('#0d1012');
|
||||
expect(rootStyle.getPropertyValue('--content-border-color')).toBe('#464f56');
|
||||
expect(faviconServiceMock.updateFavicon).toHaveBeenCalledWith('#fdba74', '#f97316');
|
||||
});
|
||||
|
||||
it('updates app-owned tokens for custom palettes', () => {
|
||||
@@ -61,6 +70,7 @@ describe('AppConfigService', () => {
|
||||
expect(rootStyle.getPropertyValue('--primary-color-rgb')).toBe('239, 117, 80');
|
||||
expect(rootStyle.getPropertyValue('--ground-background')).toBe('#121518');
|
||||
expect(rootStyle.getPropertyValue('--card-background')).toBe('#1f252c');
|
||||
expect(faviconServiceMock.updateFavicon).toHaveBeenLastCalledWith('#f9be9e', '#ef7550');
|
||||
});
|
||||
|
||||
it('maps noir to the selected surface palette', () => {
|
||||
@@ -74,5 +84,6 @@ describe('AppConfigService', () => {
|
||||
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#f0f0f0');
|
||||
expect(rootStyle.getPropertyValue('--primary-contrast-color')).toBe('#141414');
|
||||
expect(rootStyle.getPropertyValue('--primary-hover-color')).toBe('#d1d1d1');
|
||||
expect(faviconServiceMock.updateFavicon).toHaveBeenLastCalledWith('#f0f0f0', '#b8b8b8');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
||||
import { effect, inject, Injectable, PLATFORM_ID, signal } from '@angular/core';
|
||||
import { $t } from '@primeuix/themes';
|
||||
import { FaviconService } from '../layout/theme-configurator/favicon-service';
|
||||
import Aura from '../layout/theme-palette-extend';
|
||||
import { AppState } from '../model/app-state.model';
|
||||
|
||||
@@ -19,6 +20,7 @@ export class AppConfigService {
|
||||
appState = signal<AppState>({});
|
||||
document = inject(DOCUMENT);
|
||||
platformId = inject(PLATFORM_ID);
|
||||
faviconService = inject(FaviconService);
|
||||
private initialized = false;
|
||||
|
||||
readonly surfaces: Palette[] = [
|
||||
@@ -359,7 +361,7 @@ export class AppConfigService {
|
||||
}
|
||||
return {
|
||||
preset: 'Aura',
|
||||
primary: 'green',
|
||||
primary: 'orange',
|
||||
surface: 'ash',
|
||||
};
|
||||
}
|
||||
@@ -376,7 +378,7 @@ export class AppConfigService {
|
||||
|
||||
getPresetExt(): object {
|
||||
const surfacePalette = this.getSurfacePalette(this.appState().surface ?? 'neutral');
|
||||
const primaryName = this.appState().primary ?? 'green';
|
||||
const primaryName = this.appState().primary ?? 'orange';
|
||||
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>;
|
||||
const color = presetPalette[primaryName] ?? {};
|
||||
|
||||
@@ -427,6 +429,29 @@ export class AppConfigService {
|
||||
};
|
||||
}
|
||||
|
||||
getFaviconGradient(): { start: string; end: string } {
|
||||
const primaryName = this.appState().primary ?? 'orange';
|
||||
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>;
|
||||
const fallbackPalette = presetPalette['orange'] ?? {};
|
||||
|
||||
if (primaryName === 'noir') {
|
||||
const surfaceName = this.appState().surface ?? 'ash';
|
||||
const surfacePalette = this.getSurfacePalette(surfaceName);
|
||||
|
||||
return {
|
||||
start: surfacePalette['50'] ?? surfacePalette['0'] ?? '#f4f6f8',
|
||||
end: surfacePalette['300'] ?? surfacePalette['200'] ?? '#b4bcc7'
|
||||
};
|
||||
}
|
||||
|
||||
const colorPalette = presetPalette[primaryName] ?? fallbackPalette;
|
||||
|
||||
return {
|
||||
start: colorPalette['300'] ?? colorPalette['500'] ?? '#fdba74',
|
||||
end: colorPalette['500'] ?? colorPalette['700'] ?? '#f97316'
|
||||
};
|
||||
}
|
||||
|
||||
onPresetChange(): void {
|
||||
if (!isPlatformBrowser(this.platformId)) {
|
||||
return;
|
||||
@@ -436,11 +461,13 @@ export class AppConfigService {
|
||||
const preset = this.getPresetExt();
|
||||
$t().preset(Aura).preset(preset).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
|
||||
this.applyDesignTokens();
|
||||
const faviconGradient = this.getFaviconGradient();
|
||||
this.faviconService.updateFavicon(faviconGradient.start, faviconGradient.end);
|
||||
}
|
||||
|
||||
private applyDesignTokens(): void {
|
||||
const style = this.document.documentElement.style;
|
||||
const primaryName = this.appState().primary ?? 'green';
|
||||
const primaryName = this.appState().primary ?? 'orange';
|
||||
const surfaceName = this.appState().surface ?? 'ash';
|
||||
const surface = this.getSurfacePalette(surfaceName);
|
||||
const primary = ((Aura.primitive ?? {}) as Record<string, ColorPalette>)[primaryName] ?? {};
|
||||
@@ -449,12 +476,12 @@ export class AppConfigService {
|
||||
const primary400 = isNoir ? surface['50'] : primary['400'];
|
||||
const primary500 = isNoir ? surface['50'] : (primary['500'] ?? primary['400']);
|
||||
|
||||
style.setProperty('--primary-color', primary400 ?? '#4ade80');
|
||||
style.setProperty('--primary-color', primary400 ?? '#fb923c');
|
||||
style.setProperty('--primary-color-rgb', this.toRgbChannels(primary500));
|
||||
style.setProperty('--primary-contrast-color', isNoir ? (surface['950'] ?? '#0d1012') : (surface['900'] ?? '#1a1e21'));
|
||||
style.setProperty('--primary-hover-color', isNoir ? (surface['200'] ?? '#d3d8de') : (primary['300'] ?? primary400 ?? '#86efac'));
|
||||
style.setProperty('--primary-text-color', primary400 ?? '#4ade80');
|
||||
style.setProperty('--primary-text-color-dark', isNoir ? (surface['950'] ?? '#0d1012') : (primary['900'] ?? '#14532d'));
|
||||
style.setProperty('--primary-hover-color', isNoir ? (surface['200'] ?? '#d3d8de') : (primary['300'] ?? primary400 ?? '#fdba74'));
|
||||
style.setProperty('--primary-text-color', primary400 ?? '#fb923c');
|
||||
style.setProperty('--primary-text-color-dark', isNoir ? (surface['950'] ?? '#0d1012') : (primary['900'] ?? '#9a3412'));
|
||||
|
||||
style.setProperty('--ground-background', surface['950'] ?? '#0d1012');
|
||||
style.setProperty('--overlay-background', surface['900'] ?? '#1a1e21');
|
||||
|
||||
@@ -75,9 +75,10 @@
|
||||
}
|
||||
|
||||
@mixin auth-logo-icon {
|
||||
width: 4rem;
|
||||
width: auto;
|
||||
height: 4rem;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
filter: drop-shadow(0 4px 12px rgb(59 130 246 / 40%));
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
<svg viewBox="0 0 126 126" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M59 4.79297C71.5051 11.5557 80 24.7854 80 40C80 40.5959 79.987 41.1888 79.9609 41.7783C79.8609 44.0406 81.7355 46 84 46C106.091 46 124 63.9086 124 86C124 108.091 106.091 126 84 126H10C4.47715 126 0 121.523 0 116V39.0068L0.0126953 38.9941C0.357624 25.0252 7.86506 12.8347 19 5.95215V63.832C19 64.8345 20.0676 65.4391 20.9121 64.9902L21.0771 64.8867L38.2227 52.3428C38.6819 52.0068 39.3064 52.0068 39.7656 52.3428L56.9229 64.8945L57.0879 64.998C57.9324 65.447 59 64.8423 59 63.8398V4.79297Z" fill="#818cf8"/>
|
||||
<path d="M40 0C43.8745 0 47.6199 0.552381 51.1631 1.58008V50.9697L44.3926 46.0176L44.0879 45.8037C40.9061 43.6679 36.7098 43.7393 33.5957 46.0176L26.8369 50.9619V2.21875C30.9593 0.782634 35.3881 0 40 0Z" fill="white"/>
|
||||
<svg viewBox="0 0 119 150" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M30.7094 126.921V134.616V142.306V150L38.3846 142.306L46.064 150V142.306V134.616V126.921H30.7094Z" fill="white"/>
|
||||
<path d="M46.0641 34.6141H115.158C117.279 34.6141 118.996 32.8937 118.996 30.769V3.84505C118.996 1.72038 117.279 0 115.158 0H15.3547C12.5559 0 9.93741 0.752667 7.6752 2.06446C5.34431 3.41496 3.40405 5.35899 2.05616 7.6944C0.751208 9.9567 0 12.5803 0 15.3845V126.921C0 135.42 6.87248 142.306 15.3547 142.306H25.1719V134.615H15.3547C11.1136 134.615 7.6752 131.17 7.6752 126.921C7.6752 122.672 11.1136 119.227 15.3547 119.227H111.32C115.562 119.227 119 115.782 119 111.532V49.9986C119 45.7492 115.562 42.3042 111.32 42.3042H46.0641C43.9435 42.3042 42.2265 44.0245 42.2265 46.1492V73.0732C42.2265 75.1978 43.9435 76.9182 46.0641 76.9182H80.6111C82.7317 76.9182 84.4487 78.6386 84.4487 80.7633C84.4487 82.8879 82.7317 84.6083 80.6111 84.6083H46.0641C39.7024 84.6083 34.547 79.4429 34.547 73.0689V46.1449C34.547 39.7709 39.7024 34.6055 46.0641 34.6055V34.6141Z" fill="url(#paint0_linear_2_61)"/>
|
||||
<path d="M115.158 134.615H51.8291V142.306H115.158C117.279 142.306 118.996 140.585 118.996 138.461C118.996 136.336 117.279 134.615 115.158 134.615Z" fill="url(#paint1_linear_2_61)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2_61" x1="59.5" y1="0" x2="59.5" y2="142.306" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" style="stop-color: var(--p-primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--p-primary-500, #f97316)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_2_61" x1="59.5" y1="0" x2="59.5" y2="142.306" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" style="stop-color: var(--p-primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--p-primary-500, #f97316)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 1.8 KiB |