Skip to content

Commit c1264e9

Browse files
committed
Add backlink
1 parent d69ed72 commit c1264e9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

frontend/src/Pages/LoginPickerPage/LoginPickerPage.module.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,34 @@
9393
box-shadow: none;
9494
}
9595
}
96+
97+
.backLink {
98+
display: inline-block;
99+
position: relative;
100+
margin-top: 15px;
101+
margin-bottom: 20px;
102+
padding-left: 14px;
103+
font-size: 1rem;
104+
color: #0b0c0c;
105+
text-decoration: underline;
106+
cursor: pointer;
107+
108+
// arrow
109+
&::before {
110+
content: '';
111+
display: block;
112+
position: absolute;
113+
top: 50%;
114+
left: 0;
115+
width: 7px;
116+
height: 7px;
117+
margin-top: -4px;
118+
border-width: 0 0 2px 2px;
119+
border-style: solid;
120+
transform: rotate(45deg);
121+
}
122+
123+
&:hover {
124+
color: #505a5f;
125+
}
126+
}

frontend/src/Pages/LoginPickerPage/LoginPickerPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export const LoginPickerPage: FC<Props> = ({ newRoute }) => {
2525
return (
2626
<Page>
2727
<div className={styles.container}>
28+
<a href="#" onClick={() => navigate(-1)} className={styles.backLink}>
29+
Tilbake
30+
</a>
2831
<form onSubmit={onSubmit} className={styles.formWrapper}>
2932
<h1 className={styles.headerTitle}>Hvordan vil du logge inn?</h1>
3033

0 commit comments

Comments
 (0)