Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
#7 Home page and page theme draft created
Browse files Browse the repository at this point in the history
  • Loading branch information
IujyrinoT2 authored and v36u committed Apr 1, 2023
1 parent 5e3116c commit 089c77d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 14 deletions.
Binary file added public/assets/logoConversea.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ const App = (({ pageProps, Component }: CustomAppProps) => {
withNormalizeCSS
theme={{
colorScheme: 'light',
globalStyles: (theme) => ({
body: {
backgroundColor: theme.colors.indigo[1],
},
}),
}}
>
<main>
Expand Down
57 changes: 43 additions & 14 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import { Anchor, Button, Container, Loader, Stack, Title } from '@mantine/core';
import {
Anchor,
BackgroundImage,
Box,
Button,
Container,
Loader,
Stack,
Title,
} from '@mantine/core';
import { GetServerSideProps } from 'next';
import { signOut, useSession } from 'next-auth/react';
import Link from 'next/link';
import { FC } from 'react';

const IndexPage: FC = () => {
const { status } = useSession();

return (
<Container mt="xl" fluid>
{status === 'loading' && <Loader variant="bars" color="cyan" />}
Expand All @@ -28,25 +37,45 @@ const IndexPage: FC = () => {
{status === 'authenticated' && (
<Button onClick={async () => await signOut()}>Deautentificare</Button>
)}

<Title order={1} align="center">
Conversea
</Title>
<Stack

<Title mt={50} order={3} align="center">
Insert pompous motto
</Title>

<Box
mx="auto"
mt="xl"
align="center"
h={300}
w={300}
spacing="xl"
justify="center"
mt={50}
p="md"
h={400}
w={400}
sx={(theme) => ({
backgroundColor: theme.colors.gray[0],
backgroundColor: theme.colors.indigo[0],
textAlign: 'center',
padding: theme.spacing.xl,
borderRadius: theme.radius.md,
})}
>
<Button variant="outline">Inregistrare</Button>
<Button variant="outline">Logare</Button>
</Stack>
<BackgroundImage src="/assets/logoConversea.png">
<Stack mx="auto" align="center" h={400} spacing="xl" justify="center">
<Button
variant="gradient"
gradient={{ from: '#ed6ea0', to: '#ec8c69', deg: 35 }}
>
Inregistrare
</Button>
<Button
variant="gradient"
gradient={{ from: 'indigo', to: 'cyan' }}
>
Logare
</Button>
</Stack>
</BackgroundImage>
</Box>
</Container>
);
};
Expand Down

0 comments on commit 089c77d

Please sign in to comment.