From c89f9d6f1b6c4f10412bf7fccb0e7a324af849c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Fri, 5 Jul 2024 08:59:26 +0200 Subject: [PATCH] feat: replace skull with Anvil logo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I refactor the homepage I can also get closer to the design specification. Signed-off-by: André Jaenisch --- src/lib/assets/anvil.png | Bin 0 -> 5149 bytes src/lib/components/atoms/AnvilLogo.svelte | 26 +++++++ src/routes/+page.svelte | 83 +++++----------------- stories/atoms/AnvilLogo.stories.ts | 32 +++++++++ 4 files changed, 75 insertions(+), 66 deletions(-) create mode 100644 src/lib/assets/anvil.png create mode 100644 src/lib/components/atoms/AnvilLogo.svelte create mode 100644 stories/atoms/AnvilLogo.stories.ts diff --git a/src/lib/assets/anvil.png b/src/lib/assets/anvil.png new file mode 100644 index 0000000000000000000000000000000000000000..0a885873fe100a7d2f67ebf7a6700faeba267712 GIT binary patch literal 5149 zcmeHL`9DF=Z#dx6j}4{oyW;dta~fI_G)M^Sqwtrn)%Uii^sN0stV6wnMoA0FN?w z|5I2HJeSSAiv}+u(RNrI06^&f4xa9)${_IJ{upaajC)jY48i~Md4ND5=!8aw;{yGo z&+9~84k`MDlm~#l)o7H32eJ6S$sboe&KC+UZ5extSjcwBNGddz_N#hGnYaH}>YZzk zki~?6L89gq(^E*rfm~<~ zPD>efIg4S18f+kvdW`>n(ElJP5Q=$(C%vyk5l9OOShgxo&VySAllK-9$*io#-=1lX zUEUEw?G7V^u9ydXYv8-OhUpd-PdQ^~wT$Hm&xw57-D8;Kj65E;sHKx}LxPIix5fW5 z8<>bxdczmemuWCxyfA%b3Snor{>EMHn-ZjKJyY~-!yq$tzc_uG+6s}Bmvt6Lp*(_e z@sMzt)RNOP)*Qv1nSn|#EsA`zOk6upvo~9B^+Re>luCOO^QW?TS2JXmPr$21E)7?U zyLF4F&len|9BWbZ*jaPJ@JDd}|g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y`3QflhXA>vIu2a*3(Qgs9 zM$Lq?ryC*_R!4A^E#+AyWO>k}xOQGIl&O5uGZ%iYdxL=2q>K(uZ2{5?+%G>~zaaRq z#;IQ`dvPn9KR1!w=xK6w^rBL$P8m}ikfY-GgSgw4QNCHF_B7&SOuyAq%*T=<8_+6s z2tvC8d3`c2%yn>teE`M3f5!HY_5$U*n(3QoQ4a>oP zM{&o&#z!2>?kPmd6L>2zY~dc?0Tl{5Uc|bL(d75)>jRf-TJMG&Ym8XrvDecQv<+kF zgoZ)MyK#!>ybJ#X=4YTs8+|?4K64I60~`AqqlxM-vrT&#DCZP(Y~{fjy&6&8pZh1y zZGJ`AdND|6pAACqhq_zu^|j2w{7(W^zZbf@NjsLFNAPj@C&l<*CgQUmlGHa{zybFZ zSky!#Gbv+pd0XNn0yV1nvi$Jz51r}-F6v&=Wiy&mo-Q+!xkC2f<`<+~f(Tc4HGOM< zzIF!27^Xd53;|>haj~J@x+nfd2l!221)RVLQ$??nKZP80LrQ7vwrf*irmU+Lx>QeQ zY*Pz%VxpnZAXTC;hHKYwU(U};%HPfT5^>4zhZ<*JOzM(iQz6;|J$E4RBV+h?xvAL9 zAb;cI62BBYe>*EnbNWBNr96Dr9a0#~0luSh^>%}n;jr6x@Yf!Iwst~2we-9Bf7*. +--> + + + +Anvil logo diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8839463..1c7fe4e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -7,75 +7,26 @@ SPDX-License-Identifier: AGPL-3.0-or-later -
-
- -
-
- - - -
- -

{$_('page.welcome')}

-

- Anvil is a F2 (Federated Forge) client. Would you like to create a new F2 account or log in - with your existing one? -

-
- - +
+ +

{$_('page.welcome')}

+

+ Anvil is a F2 (Federated Forge) client. Would you like to create a new F2 account or log in with + your existing one? +

+ - - diff --git a/stories/atoms/AnvilLogo.stories.ts b/stories/atoms/AnvilLogo.stories.ts new file mode 100644 index 0000000..8d4a76c --- /dev/null +++ b/stories/atoms/AnvilLogo.stories.ts @@ -0,0 +1,32 @@ +/* Stories for AnvilLogo atom. + * Copyright (C) 2024 André Jaenisch + * SPDX-FileCopyrightText: 2024 André Jaenisch + * SPDX-License-Identifier: AGPL-3.0-or-later + * + * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + */ + +import type { Meta, StoryObj } from '@storybook/svelte'; + +import AnvilLogo from '$lib/components/atoms/AnvilLogo.svelte'; + +const meta = { + title: 'Atoms/AnvilLogo', + component: AnvilLogo, + tags: ['autodocs'] +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Plain: Story = {}; + +export const WithClass: Story = { + args: { + class: 'w-full' + } +};