File tree Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 10
10
import type { Campaign } from ' $lib/stores/campaigns' ;
11
11
import { Typography , Layout , Avatar } from ' @appwrite.io/pink-svelte' ;
12
12
import { getCampaignImageUrl } from ' $routes/(public)/card/helpers' ;
13
+ import { isSmallViewport } from ' $lib/stores/viewport' ;
13
14
14
15
export const imgLight = LoginLight ;
15
16
export const imgDark = LoginDark ;
44
45
45
46
<main class =" grid-1-1 is-full-page" id =" main" >
46
47
<section
47
- class ={` u-flex u-flex-vertical ${variation !== ' default' ? ' u-cross-center u-main-center u-height-100-percent u-width-full-line side-bg' : ' side-default' } ` }
48
+ class ={` u-flex u-flex-vertical ${variation !== ' default' ? ' u-cross-center u-main-center u-height-100-percent u-width-full-line side-bg' : ! $isSmallViewport ? ' side-default' : ' ' } ` }
48
49
style:--url ={variation !== ' default'
49
50
? ' '
50
51
: ` url(${$app .themeInUse === ' dark' ? imgDark : imgLight }) ` }>
159
160
<div class =" u-margin-block-start-24" >
160
161
<slot />
161
162
</div >
162
-
163
163
<ul
164
164
class =" inline-links is-center is-with-sep u-margin-block-start-32"
165
165
class:u-hide ={! $$slots ?.links }>
166
166
<slot name =" links" />
167
167
</ul >
168
168
</div >
169
169
<div
170
- class =" logo u-flex u-gap-16 u-margin-inline-auto is-only-mobile u-margin-block-start-32" >
170
+ class =" logo u-flex u-gap-16 u-margin-inline-auto is-only-mobile u-margin-block-start-32 mobile-logo " >
171
171
<a href ={base }>
172
172
{#if $app .themeInUse === ' dark' }
173
173
<img
174
174
src ={AppwriteLogoDark }
175
- width =" 93 "
175
+ width =" 120 "
176
176
class =" u-block u-only-dark"
177
177
alt =" Appwrite Logo" />
178
178
{:else }
179
179
<img
180
180
src ={AppwriteLogoLight }
181
- width =" 93 "
181
+ width =" 120 "
182
182
class =" u-block u-only-light"
183
183
alt =" Appwrite Logo" />
184
184
{/if }
359
359
padding-block-start : 5rem ;
360
360
}
361
361
}
362
+
363
+ .mobile-logo {
364
+ position : absolute ;
365
+ bottom : 20px ;
366
+ left : 50% ;
367
+ transform : translate (-50% , -50% );
368
+ max-width : 100% ;
369
+ margin-block-start : 0 !important ;
370
+ }
362
371
</style >
Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { base } from ' $app/paths' ;
3
- import { page } from ' $app/state' ;
4
- import { Button } from ' $lib/elements/forms' ;
5
3
import { Unauthenticated } from ' $lib/layout' ;
6
- import { Typography } from ' @appwrite.io/pink-svelte' ;
4
+ import { Button } from ' $lib/elements/forms' ;
5
+ import { Badge , Typography , Layout } from ' @appwrite.io/pink-svelte' ;
7
6
</script >
8
7
9
8
<Unauthenticated >
10
- <Typography .Title size =" xl"
11
- >{' status' in page .error
12
- ? page .error .status || ' Invalid Argument'
13
- : ' Invalid Argument' }</Typography .Title >
14
- <Typography .Title >{page .error .message }</Typography .Title >
15
- <Button href ={base }>Back to the console</Button >
9
+ <Layout .Stack gap =" l" alignItems =" center" >
10
+ <Badge variant =" secondary" content =" 404 Page not found" />
11
+ <Typography .Title size =" l" align =" center" >
12
+ The page you're looking for doesn't exist.
13
+ </Typography .Title >
14
+ <Button href ={base }>Back to console</Button >
15
+ </Layout .Stack >
16
16
</Unauthenticated >
Original file line number Diff line number Diff line change 38
38
visibility : hidden;
39
39
position : absolute;
40
40
max-width : 100% ;
41
- bottom : 60 px ;
41
+ bottom : 20 px ;
42
42
left : 50% ;
43
43
transform : translate (-50% , -50% );
44
44
}
You can’t perform that action at this time.
0 commit comments