Skip to content

Commit

Permalink
馃拕 Add logo and gradient background to navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelGuillemet committed Feb 8, 2024
1 parent 09d05dd commit 28d2bd3
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions components/website-frontend/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions components/website-frontend/public/name.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions components/website-frontend/src/components/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useRef, useState } from 'react';
import { ResolverResult, useForm } from 'react-hook-form';

import Image from 'next/image';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { signIn } from 'next-auth/react';
Expand Down Expand Up @@ -83,9 +84,14 @@ export default function Login() {
<CardHeader className='pb-0'>
<Link
href={pages.index}
className='flex self-center text-2xl font-semibold mb-2'
className='flex self-center mb-4'
>
<span>Pfe Broker</span>
<Image
src='/name.svg'
alt='name'
width={150}
height={150}
/>
</Link>
<CardTitle className='text-xl font-bold md:text-2xl'>Connectez-vous</CardTitle>
</CardHeader>
Expand Down
9 changes: 9 additions & 0 deletions components/website-frontend/src/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react';

import dynamic from 'next/dynamic';
import Image from 'next/image';
import Link from 'next/link';

import LoginButton from '@/components/navbar/login-button';
Expand All @@ -19,6 +20,14 @@ export default function Navbar(): React.JSX.Element {
return (
<header className='flex flex-col lg:flex-row'>
<div className='flex justify-between items-center'>
<Link href={pages.index}>
<Image
src='/logo.svg'
alt='logo'
width={250}
height={150}
/>
</Link>
<button
id='hamburger-menu'
aria-label='hamburger-menu'
Expand Down
10 changes: 8 additions & 2 deletions components/website-frontend/src/components/register.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FieldErrors, ResolverResult, useForm } from 'react-hook-form';
import toast from 'react-hot-toast';

import Image from 'next/image';
import Link from 'next/link';
import { useRouter } from 'next/router';

Expand Down Expand Up @@ -103,9 +104,14 @@ export default function Register(props: Readonly<RegisterProps>): React.JSX.Elem
<CardHeader className='pb-0'>
<Link
href={pages.index}
className='flex self-center text-2xl font-semibold mb-2'
className='flex self-center mb-4'
>
<span>Pfe Broker</span>
<Image
src='/name.svg'
alt='name'
width={150}
height={150}
/>
</Link>
<CardTitle className='text-xl font-bold md:text-2xl'>Cr茅ation du compte</CardTitle>
</CardHeader>
Expand Down

0 comments on commit 28d2bd3

Please sign in to comment.