diff options
-rw-r--r-- | apps/website/config.ts | 5 | ||||
-rw-r--r-- | apps/website/public/media/oneconfig/logo_text.svg | 33 | ||||
-rw-r--r-- | apps/website/src/components/base/Footer.astro | 6 | ||||
-rw-r--r-- | apps/website/src/pages/projects/oneconfig.astro | 2 | ||||
-rw-r--r-- | apps/website/src/types/Config.d.ts | 16 |
5 files changed, 40 insertions, 22 deletions
diff --git a/apps/website/config.ts b/apps/website/config.ts index 20da56f..0d45d76 100644 --- a/apps/website/config.ts +++ b/apps/website/config.ts @@ -3,6 +3,11 @@ import type { Config, NavbarDropdown, Project } from '@webtypes/Config'; export const configConst = { projects: getProjects(), logos: ['oneconfig.minimal', 'polyfrost.full', 'polyfrost.minimal', 'polyfrost.minimal_bg'], + socials: { + youtube: 'https://youtube.com/', + discord: 'https://discord.gg/', + github: 'https://github.com/Polyfrost', + }, navbar: { left: [ { diff --git a/apps/website/public/media/oneconfig/logo_text.svg b/apps/website/public/media/oneconfig/logo_text.svg index 0b27025..3c10fe4 100644 --- a/apps/website/public/media/oneconfig/logo_text.svg +++ b/apps/website/public/media/oneconfig/logo_text.svg @@ -1,13 +1,20 @@ -<svg width="334" height="72" viewBox="0 0 334 72" fill="none" xmlns="http://www.w3.org/2000/svg"> -<path d="M48.3378 32.3335C48.3953 32.4377 48.4556 32.5467 48.5023 32.6603C49.4804 34.7169 49.4407 37.685 48.3201 39.6961L44.2425 46.7665C43.0367 44.9206 41.3477 43.3368 39.3175 42.1403C39.3687 42.0607 39.4141 41.9809 39.4539 41.901C43.0539 34.603 39.3175 24.9635 30.2976 25.1058C21.1186 24.952 17.49 34.7682 21.2494 42.1632C19.2303 43.3597 17.5528 44.9375 16.3526 46.778C16.3245 46.718 15.9252 46.0307 15.3776 45.0875C14.0463 42.7947 11.8378 38.9918 11.9509 39.024C11.1944 37.1895 11.2058 34.6826 11.9964 32.871C12.0439 32.7433 12.1028 32.62 12.1647 32.5014C12.1991 32.4351 12.2347 32.3703 12.2694 32.307L18.0815 22.2116C18.0901 22.2001 18.0973 22.187 18.1046 22.1741C18.1118 22.1614 18.1187 22.1489 18.127 22.1377C19.327 20.1379 22.1649 18.5142 24.4797 18.5142H36.1041C38.7429 18.5142 41.1828 19.9271 42.4966 22.2116C42.51 22.2285 44.5313 25.7336 46.1886 28.6073C47.3371 30.5989 48.3106 32.2873 48.3201 32.3013L48.3378 32.3335Z" fill="#0048C5"/> -<path d="M84.775 19.2378V52.7714H79.23L63.6303 32.7001V52.7714H56.1345V19.2378H61.4007L77.234 39.5596V19.2378H84.775Z" fill="#0048C5"/> -<path d="M118.818 46.3107V52.7714H94.6819V19.2378H118.534V25.6984H102.178V32.4894H117.112V38.8076H102.178V46.3107H118.818Z" fill="#0048C5"/> -<path fill-rule="evenodd" clip-rule="evenodd" d="M193.899 29.1397C193.029 27.0315 191.789 25.1972 190.174 23.6304C188.565 22.0638 186.688 20.8446 184.555 19.9729C182.423 19.1012 180.108 18.6682 177.611 18.6682C175.081 18.6682 172.743 19.1012 170.593 19.9729C168.444 20.8446 166.578 22.0638 164.997 23.6304C163.416 25.1972 162.188 27.026 161.301 29.1168C160.413 31.2078 159.975 33.4866 159.975 35.9534C159.975 38.3919 160.413 40.6652 161.301 42.7731C162.188 44.8753 163.433 46.7212 165.048 48.305C166.658 49.8888 168.54 51.1251 170.69 52.0081C172.84 52.8969 175.177 53.3414 177.708 53.3414C180.205 53.3414 182.508 52.8969 184.629 52.0081C186.745 51.1251 188.593 49.8945 190.174 48.3277C191.755 46.761 192.989 44.9265 193.877 42.8184C194.758 40.7105 195.202 38.4431 195.202 36.0046C195.202 33.5323 194.769 31.2476 193.899 29.1397ZM186.313 41.4684C185.471 43.0465 184.311 44.2827 182.826 45.1715C181.342 46.0546 179.602 46.4991 177.611 46.4991C176.127 46.4991 174.773 46.2538 173.556 45.764C172.339 45.274 171.287 44.5618 170.406 43.6275C169.518 42.6932 168.842 41.5766 168.364 40.2776C167.892 38.9787 167.653 37.5374 167.653 35.9534C167.653 33.8682 168.063 32.0396 168.887 30.467C169.706 28.9004 170.872 27.6812 172.373 26.8094C173.875 25.9435 175.621 25.5049 177.611 25.5049C179.067 25.5049 180.41 25.7497 181.643 26.2398C182.872 26.7353 183.93 27.4474 184.817 28.382C185.704 29.3163 186.381 30.4215 186.859 31.7033C187.331 32.9851 187.569 34.4039 187.569 35.9534C187.569 38.0444 187.149 39.8846 186.313 41.4684Z" fill="#0A5BE8"/> -<path d="M155.42 48.4931C153.839 50.0142 152.008 51.1935 149.921 52.031C147.833 52.8741 145.416 53.29 142.669 53.29C140.167 53.29 137.852 52.8569 135.72 51.9853C133.587 51.1139 131.722 49.8888 130.124 48.305C128.531 46.7212 127.292 44.8753 126.404 42.7731C125.517 40.6652 125.079 38.3919 125.079 35.9534C125.079 33.5152 125.517 31.2476 126.404 29.1397C127.292 27.0318 128.531 25.203 130.124 23.6533C131.722 22.1036 133.582 20.8902 135.697 20.0185C137.813 19.1526 140.139 18.7139 142.669 18.7139C145.32 18.7139 147.686 19.1411 149.756 19.9957C151.826 20.8503 153.634 22.024 155.181 23.5108L150.16 28.5929C149.306 27.6412 148.254 26.9007 147.003 26.3594C145.757 25.8239 144.307 25.5562 142.669 25.5562C141.214 25.5562 139.883 25.8012 138.683 26.2912C137.483 26.781 136.436 27.4875 135.555 28.4049C134.667 29.322 133.991 30.4272 133.519 31.7262C133.041 33.0251 132.802 34.438 132.802 35.9534C132.802 37.5374 133.041 38.973 133.519 40.255C133.991 41.5368 134.667 42.6477 135.555 43.5763C136.436 44.5106 137.483 45.2285 138.683 45.7185C139.883 46.2083 141.214 46.4534 142.669 46.4534C144.376 46.4534 145.86 46.1914 147.122 45.6673C148.385 45.1487 149.466 44.3967 150.347 43.4111L155.42 48.4931Z" fill="#0A5BE8"/> -<path d="M231.519 52.7716V19.238H223.985V39.5656L208.146 19.238H202.885V52.7716H210.375V32.7004L225.974 52.7716H231.519Z" fill="#0A5BE8"/> -<path d="M248.923 25.6986V33.1563H263.953V39.6626H248.923V52.7716H241.433V19.238H264.71V25.6986H248.923Z" fill="#0A5BE8"/> -<path d="M272.963 19.238H280.452V52.7716H272.963V19.238Z" fill="#0A5BE8"/> -<path d="M322.606 33.7714V34.8654C322.606 38.8533 321.883 42.2261 320.443 44.9778C319.006 47.7351 317.015 49.8204 314.474 51.2276C311.924 52.635 308.996 53.3414 305.675 53.3414C303.213 53.3414 300.909 52.8855 298.776 51.9853C296.643 51.085 294.789 49.8433 293.208 48.2593C291.628 46.6755 290.388 44.8352 289.483 42.7502C288.584 40.6594 288.136 38.3919 288.136 35.9534C288.136 33.4866 288.591 31.2135 289.506 29.1397C290.421 27.0658 291.707 25.2428 293.351 23.6761C294.994 22.1093 296.898 20.8844 299.061 19.9957C301.228 19.1126 303.559 18.6682 306.056 18.6682C308.933 18.6682 311.554 19.198 313.926 20.2578C316.298 21.3173 318.255 22.7702 319.807 24.6047L314.683 29.7322C313.643 28.3419 312.385 27.288 310.918 26.5758C309.445 25.8637 307.806 25.5049 306.009 25.5049C304.048 25.5049 302.291 25.9435 300.744 26.8094C299.196 27.6812 297.985 28.9004 297.116 30.467C296.245 32.0396 295.814 33.8682 295.814 35.9534C295.814 38.0158 296.239 39.8331 297.093 41.4169C297.945 43.0009 299.118 44.2427 300.602 45.1486C302.086 46.0489 303.798 46.4991 305.726 46.4991C307.654 46.4991 309.303 46.1285 310.679 45.3822C312.055 44.6417 313.114 43.5534 313.852 42.1291C314.161 41.548 314.4 40.9157 314.575 40.2378L305.016 40.0896V33.7714H322.606Z" fill="#0A5BE8"/> -<path d="M24.9505 45.9065C28.0045 47.6383 32.6338 47.6325 35.6195 45.895C38.1674 47.1597 40.0215 49.3133 40.5959 51.8429C39.339 52.7714 37.792 53.4038 36.393 53.4722C36.3021 53.4836 36.1998 53.4836 36.1087 53.4836C36.0292 53.4815 34.4476 53.4825 32.4679 53.4838H32.3643C28.9719 53.4859 24.4821 53.4887 24.3364 53.4779C22.9032 53.4438 21.2937 52.8055 20.0027 51.8429C20.5659 49.319 22.4143 47.1711 24.9505 45.9065Z" fill="#0A5BE8"/> -<path d="M36.0409 36.0046C36.2398 43.9521 24.3536 43.9464 24.5528 36.0046C24.4447 28.0115 36.1432 28.0115 36.0409 36.0046Z" fill="#0A5BE8"/> -</svg> +<svg width="312" height="34" viewBox="0 0 312 34" fill="none" xmlns="http://www.w3.org/2000/svg"> + <g clip-path="url(#clip0_301_166)"> + <path d="M37.3381 13.3335C37.3956 13.4377 37.4558 13.5467 37.5025 13.6603C38.4807 15.7169 38.4409 18.685 37.3203 20.6961L33.2428 27.7665C32.037 25.9206 30.348 24.3368 28.3177 23.1403C28.3689 23.0607 28.4144 22.9809 28.4541 22.901C32.0541 15.603 28.3177 5.96345 19.2978 6.10576C10.1189 5.95202 6.49026 15.7682 10.2496 23.1632C8.23057 24.3597 6.55302 25.9375 5.35284 27.778C5.32479 27.718 4.92547 27.0307 4.37786 26.0875C3.04659 23.7947 0.83809 19.9918 0.951121 20.024C0.194675 18.1895 0.206069 15.6826 0.996656 13.871C1.04413 13.7433 1.10301 13.62 1.16494 13.5014C1.19936 13.4351 1.23492 13.3703 1.26963 13.307L7.08175 3.21157C7.09036 3.20014 7.09759 3.18701 7.1048 3.17409C7.11203 3.16138 7.11896 3.14889 7.12729 3.13767C8.3272 1.13791 11.1652 -0.48584 13.4799 -0.48584H25.1044C27.7432 -0.48584 30.1831 0.927055 31.4969 3.21157C31.5102 3.22851 33.5315 6.73364 35.1889 9.60729C36.3373 11.5989 37.3108 13.2873 37.3203 13.3013L37.3381 13.3335Z" fill="#0048C5"/> + <path d="M73.7753 0.237671V33.7713H68.2302L52.6305 13.7V33.7713H45.1348V0.237671H50.401L66.2343 20.5595V0.237671H73.7753Z" fill="#0048C5"/> + <path d="M107.818 27.3106V33.7713H83.6816V0.237671H107.534V6.69823H91.1774V13.4893H106.112V19.8075H91.1774V27.3106H107.818Z" fill="#0048C5"/> + <path fill-rule="evenodd" clip-rule="evenodd" d="M182.9 10.1397C182.03 8.03154 180.79 6.19724 179.174 4.63039C177.565 3.06375 175.688 1.84458 173.556 0.972896C171.423 0.101209 169.108 -0.331787 166.612 -0.331787C164.081 -0.331787 161.743 0.101209 159.594 0.972896C157.444 1.84458 155.578 3.06375 153.997 4.63039C152.416 6.19724 151.188 8.02604 150.301 10.1168C149.414 12.2078 148.976 14.4866 148.976 16.9534C148.976 19.3919 149.414 21.6652 150.301 23.7731C151.188 25.8753 152.434 27.7212 154.049 29.305C155.658 30.8888 157.541 32.1251 159.69 33.0081C161.84 33.8969 164.177 34.3414 166.708 34.3414C169.205 34.3414 171.508 33.8969 173.63 33.0081C175.745 32.1251 177.593 30.8945 179.174 29.3277C180.755 27.761 181.99 25.9265 182.877 23.8184C183.759 21.7105 184.202 19.4431 184.202 17.0046C184.202 14.5323 183.77 12.2476 182.9 10.1397ZM175.313 22.4684C174.471 24.0465 173.311 25.2827 171.827 26.1715C170.342 27.0546 168.602 27.4991 166.612 27.4991C165.127 27.4991 163.774 27.2538 162.556 26.764C161.34 26.274 160.287 25.5619 159.406 24.6275C158.519 23.6932 157.842 22.5766 157.364 21.2776C156.892 19.9787 156.653 18.5374 156.653 16.9534C156.653 14.8682 157.063 13.0396 157.887 11.467C158.706 9.90037 159.872 8.68124 161.374 7.8094C162.875 6.9435 164.621 6.50493 166.612 6.50493C168.067 6.50493 169.41 6.74973 170.644 7.23975C171.872 7.73528 172.93 8.44745 173.817 9.38197C174.705 10.3163 175.381 11.4215 175.859 12.7033C176.331 13.9851 176.57 15.4039 176.57 16.9534C176.57 19.0444 176.149 20.8846 175.313 22.4684Z" fill="#0A5BE8"/> + <path d="M144.42 29.4931C142.839 31.0142 141.008 32.1935 138.921 33.031C136.833 33.8741 134.416 34.29 131.669 34.29C129.167 34.29 126.852 33.8569 124.72 32.9853C122.587 32.1139 120.722 30.8888 119.124 29.305C117.531 27.7212 116.292 25.8753 115.404 23.7731C114.517 21.6652 114.079 19.3919 114.079 16.9534C114.079 14.5152 114.517 12.2476 115.404 10.1397C116.292 8.03177 117.531 6.20297 119.124 4.65328C120.722 3.10358 122.582 1.89022 124.697 1.01853C126.813 0.152559 129.139 -0.286133 131.669 -0.286133C134.32 -0.286133 136.686 0.141145 138.756 0.995721C140.826 1.8503 142.634 3.02396 144.181 4.51076L139.16 9.5929C138.306 8.64123 137.254 7.90069 136.003 7.35942C134.757 6.82387 133.307 6.5562 131.669 6.5562C130.214 6.5562 128.883 6.80121 127.683 7.29123C126.483 7.78104 125.436 8.48749 124.555 9.40486C123.667 10.322 122.991 11.4272 122.519 12.7262C122.041 14.0251 121.802 15.438 121.802 16.9534C121.802 18.5374 122.041 19.973 122.519 21.255C122.991 22.5368 123.667 23.6477 124.555 24.5763C125.436 25.5106 126.483 26.2285 127.683 26.7185C128.883 27.2083 130.214 27.4534 131.669 27.4534C133.376 27.4534 134.86 27.1914 136.122 26.6673C137.385 26.1487 138.466 25.3967 139.347 24.4111L144.42 29.4931Z" fill="#0A5BE8"/> + <path d="M220.519 33.7715V0.237915H212.985V20.5654L197.145 0.237915H191.885V33.7715H199.375V13.7002L214.974 33.7715H220.519Z" fill="#0A5BE8"/> + <path d="M237.923 6.69845V14.1562H252.953V20.6624H237.923V33.7715H230.434V0.237915H253.71V6.69845H237.923Z" fill="#0A5BE8"/> + <path d="M261.963 0.237915H269.453V33.7715H261.963V0.237915Z" fill="#0A5BE8"/> + <path d="M311.606 14.7714V15.8654C311.606 19.8533 310.883 23.2261 309.444 25.9778C308.006 28.7351 306.015 30.8204 303.474 32.2276C300.925 33.635 297.997 34.3414 294.676 34.3414C292.213 34.3414 289.909 33.8855 287.776 32.9853C285.643 32.085 283.789 30.8433 282.208 29.2593C280.629 27.6755 279.388 25.8352 278.483 23.7502C277.585 21.6594 277.137 19.3919 277.137 16.9534C277.137 14.4866 277.591 12.2135 278.507 10.1397C279.422 8.06585 280.707 6.24277 282.352 4.67613C283.994 3.10928 285.899 1.88435 288.061 0.995703C290.228 0.112623 292.56 -0.331787 295.056 -0.331787C297.934 -0.331787 300.555 0.198006 302.927 1.25776C305.298 2.31728 307.256 3.7702 308.808 5.60472L303.683 10.7322C302.643 9.34194 301.386 8.28799 299.918 7.57582C298.445 6.86366 296.807 6.50493 295.01 6.50493C293.048 6.50493 291.292 6.9435 289.744 7.8094C288.197 8.68124 286.985 9.90037 286.117 11.467C285.246 13.0396 284.814 14.8682 284.814 16.9534C284.814 19.0158 285.239 20.8331 286.093 22.4169C286.945 24.0009 288.119 25.2427 289.603 26.1486C291.087 27.0489 292.799 27.4991 294.727 27.4991C296.655 27.4991 298.303 27.1285 299.68 26.3822C301.056 25.6417 302.115 24.5534 302.853 23.1291C303.161 22.548 303.4 21.9157 303.576 21.2378L294.016 21.0896V14.7714H311.606Z" fill="#0A5BE8"/> + <path d="M13.9508 26.9066C17.0048 28.6384 21.634 28.6327 24.6198 26.8951C27.1677 28.1598 29.0218 30.3134 29.5961 32.843C28.3392 33.7716 26.7922 34.4039 25.3932 34.4723C25.3023 34.4837 25.2 34.4837 25.1089 34.4837C25.0294 34.4816 23.4478 34.4827 21.4681 34.4839H21.3645C17.9721 34.4861 13.4823 34.4888 13.3367 34.478C11.9034 34.4439 10.2939 33.8057 9.00293 32.843C9.5661 30.3192 11.4145 28.1712 13.9508 26.9066Z" fill="#0A5BE8"/> + <path d="M25.0414 17.0047C25.2403 24.9522 13.3541 24.9465 13.5533 17.0047C13.4452 9.01162 25.1437 9.01162 25.0414 17.0047Z" fill="#0A5BE8"/> + </g> + <defs> + <clipPath id="clip0_301_166"> + <rect width="312" height="34" fill="white"/> + </clipPath> + </defs> + </svg> diff --git a/apps/website/src/components/base/Footer.astro b/apps/website/src/components/base/Footer.astro index 626ff0b..d41ef29 100644 --- a/apps/website/src/components/base/Footer.astro +++ b/apps/website/src/components/base/Footer.astro @@ -12,9 +12,9 @@ import Link from './Link.astro'; <Logo logo="polyfrost.full" /> <p>English, USA</p> {/* hardcoded for now, todo i18n */} <div class="flex flex-row gap-3"> - <a href="" class="hover:text-[#5865F2]"><Icon icon="discord" /></a> - <a href="" class="hover:text-[#ff0000]"><Icon icon="youtube" /></a> - <a href="" class="hover:text-[#000000]"><Icon icon="github" /></a> + <a href={configConst.socials.discord} target="_blank" class="hover:text-[#5865F2]"><Icon icon="discord" /></a> + <a href={configConst.socials.youtube} target="_blank" class="hover:text-[#ff0000]"><Icon icon="youtube" /></a> + <a href={configConst.socials.github} target="_blank" class="hover:text-[#000000]"><Icon icon="github" /></a> </div> </div> diff --git a/apps/website/src/pages/projects/oneconfig.astro b/apps/website/src/pages/projects/oneconfig.astro index 885d2c6..147ea28 100644 --- a/apps/website/src/pages/projects/oneconfig.astro +++ b/apps/website/src/pages/projects/oneconfig.astro @@ -161,7 +161,7 @@ import { Code } from 'astro:components'; <Section class="flex-col justify-center items-center md:h-4/5 md:min-h-[600px] mb-[10rem]"> <div class="flex relative md:-left-12"> <img src="/media/oneconfig/page_media_4.png" class="rounded-2xl"/> - <div class="border border-gray-200 rounded-3xl md:rounded-4xl shadow-sm bg-gray-50 flex flex-col justify-center items-center md:items-start p-4 md:p-8 absolute -bottom-12 translate-x-1/2 right-1/2 md:translate-x-0 md:-right-12"> + <div class="border border-gray-200 rounded-3xl md:rounded-4xl shadow-sm bg-gray-50 flex flex-col justify-center items-center md:items-start p-4 md:p-8 absolute -bottom-12 translate-x-1/2 right-1/2 md:translate-x-0 md:-right-12 gap-y-8"> <Logo logo="oneconfig.logo_text" class="w-48 h-12 md:min-w-72 md:h-auto"></Logo> <Button href="/projects/oneconfig/download" iconLeft="download" text="Download now" class="max-w-fit"/> </div> diff --git a/apps/website/src/types/Config.d.ts b/apps/website/src/types/Config.d.ts index f53967a..6ba2756 100644 --- a/apps/website/src/types/Config.d.ts +++ b/apps/website/src/types/Config.d.ts @@ -33,11 +33,17 @@ export interface FooterColumn { } export interface Config { - projects: Project[] - logos: string[] + projects: Project[], + logos: string[], + socials: { + youtube: string, + // twitter: string, + discord: string, + github: string, + }, navbar: { - left: NavbarElement[] - right: NavbarElement[] + left: NavbarElement[], + right: NavbarElement[], }, - footer: FooterColumn[] + footer: FooterColumn[], } |