Skip to content

Commit

Permalink
Justeringer på stil
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusae committed Jan 3, 2025
1 parent b0c1fa4 commit c6f0879
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 5 additions & 3 deletions lps-client-frontend-v/src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ function Header() {
return (
<Box padding="4" background="gray-100">
<HStack gap="12" align="center">
<img src={logo} alt="Logo"
style={{maxWidth: '150px'}}/>
<Box style={{marginLeft: 72}}>
<img src={logo} alt="Logo"
style={{maxWidth: '150px'}}/>
</Box>
<Heading size="medium">
TigerSys lønns- og personalsystem
TigerSys lønns- og personalsystem
</Heading>

</HStack>
Expand Down
18 changes: 8 additions & 10 deletions lps-client-frontend-v/src/LoginForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Alert, Box, Button, TextField, VStack } from "@navikt/ds-react";
import { Alert, BodyShort, Box, Button, Heading, TextField, VStack } from "@navikt/ds-react";
import axios from 'axios';
import { useNavigate } from 'react-router-dom';

Expand Down Expand Up @@ -57,13 +57,12 @@ function LoginForm() {
};

return (
<Box
style={{width: 400, marginLeft: "auto", marginRight: "auto"}}
>


<VStack gap="4" justify="center">
{error && <Alert variant="error">{error}</Alert>}
<Heading size="medium">
Logg inn for å ta i bruk systemet
</Heading>
{error && <Alert variant="error">{error}</Alert>}

<TextField
label="Orgnr"
Expand All @@ -75,17 +74,16 @@ function LoginForm() {
/>


<Button variant="primary" onClick={handleSubmit} >
<Button variant="primary" onClick={handleSubmit} style={{maxWidth: 340}}>
Logg inn
</Button>

<Button variant="secondary" onClick={handleRegistrerNyBedrift}>
<Button variant="secondary" onClick={handleRegistrerNyBedrift} style={{maxWidth: 340}}>
Registrer ny bedrift
</Button>


</VStack>
</Box>

);
}

Expand Down
4 changes: 2 additions & 2 deletions lps-client-frontend-v/src/Velkommen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Velkommen() {
};

return (
<VStack gap="5" align="center" justify="center">
<VStack gap="5" justify="center">
<Box>
<Heading size="small" spacing>
Velkommen!
Expand All @@ -25,7 +25,7 @@ function Velkommen() {
</BodyShort>
</Box>

<Button onClick={handleGaaTilForsiden}>
<Button onClick={handleGaaTilForsiden} style={{maxWidth: 340}}>
Gå til forsiden
</Button>
</VStack>
Expand Down

0 comments on commit c6f0879

Please sign in to comment.