File tree 5 files changed +17
-18
lines changed
5 files changed +17
-18
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
- < link rel ="icon " href ="/static/favicon.svg " type ="image/svg+xml " />
6
+ < link rel ="shortcut icon " href ="/static/favicon.ico " type ="image/x-icon " />
7
7
< title > Portr - Expose local ports to public URLs</ title >
8
8
< style >
9
9
@font-face {
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { onMount } from " svelte" ;
3
-
4
3
import {
5
4
ExclamationTriangle ,
6
5
LockClosed ,
7
6
GithubLogo ,
8
7
} from " radix-icons-svelte" ;
8
+ import { X } from " lucide-svelte" ;
9
9
10
10
import * as Alert from " $lib/components/ui/alert" ;
11
11
import { Button } from " $lib/components/ui/button" ;
55
55
56
56
<div class =" grid h-screen place-items-center" >
57
57
<div
58
- class =" w-full max-w-sm p-6 m-auto mx-auto rounded-md dark:bg-gray-800 py-8 border "
58
+ class =" w-full max-w-sm p-6 m-auto mx-auto rounded-md dark:bg-gray-800 py-8"
59
59
>
60
- <div class =" flex justify-center mx-auto py-8 items-center space-x-2" >
61
- <img class =" w-auto h-12" src =" /static/logo.svg" alt =" " />
62
- </div >
63
-
64
60
<Button
65
- variant =" default "
61
+ variant =" outline "
66
62
class =" w-full"
67
63
href ={encodeURIComponent (next ) !== " null"
68
64
? ` /api/v1/auth/github?next=${encodeURIComponent (next )} `
69
65
: ` /api/v1/auth/github ` }
70
66
>
71
67
<GithubLogo class =" mr-2 h-4 w-4" />
72
- Continue with GitHub
68
+ Login with GitHub
73
69
</Button >
74
70
75
71
<div class =" my-4" >
87
83
</div >
88
84
89
85
{#if message }
90
- <div class =" mt-4" >
86
+ <div class =" mt-4" id = " error-message-box " >
91
87
<Alert .Root variant =" destructive" >
92
88
<ExclamationTriangle class =" h-4 w-4" />
93
- <Alert .Title >Error</Alert .Title >
89
+ <Alert .Title >
90
+ <p class =" flex justify-between" >
91
+ <span >Error</span >
92
+ <span
93
+ on:click ={() => {
94
+ const element = document .getElementById (" error-message-box" );
95
+ element ?.remove ();
96
+ }}><X class =" h-3 hover:cursor-pointer" /></span
97
+ >
98
+ </p >
99
+ </Alert .Title >
94
100
<Alert .Description >
95
101
{message }
96
102
</Alert .Description >
You can’t perform that action at this time.
0 commit comments