Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit 177d4bf

Browse files
authored
Merge pull request #76 from WildCodeSchool/feature/home-fix
Home
2 parents c815f74 + 13837a9 commit 177d4bf

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

packages/frontend/web/src/components/vinyl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default function Vinyl() {
22
return (
33
<img
4-
className='pointer-events-none fixed right-0 bottom-0 w-md md:w-xl lg:w-2xl'
4+
className='pointer-events-none absolute right-0 bottom-0 max-h-120 sm:w-80 lg:h-120 lg:w-120'
55
src='/assets/vinyl.png'
66
alt='Vinyle'
77
/>
Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
1-
import '../globals.css';
1+
import { Link, useNavigate } from 'react-router-dom';
2+
3+
import Vinyl from '@/components/vinyl';
24

35
export default function Home() {
4-
return <p>{'En attente de la Home'}</p>;
6+
const navigate = useNavigate();
7+
return (
8+
<div className='bg-secondary flex min-h-screen flex-col pt-12'>
9+
<div className='flex flex-1 items-center justify-center pr-8 pl-8'>
10+
<div className='text-primary top-0 z-2 w-full max-w-3xl self-start bg-transparent'>
11+
<div className='relative top-0 flex flex-col items-center gap-4 text-center'>
12+
<div className='flex items-center'>
13+
<p className='md:text-lg'>
14+
{` Become the boss of your own music empire!
15+
In this music label management game, you take control of a rising record label. Sign talented artists, produce hit albums, release singles,to dominate the charts. Choose your strategy carefully — will you focus on niche talent, or chase mainstream success?
16+
Your decisions shape the future of your label. Fame, fortune, or failure — it's all in your hands.`}
17+
</p>
18+
</div>
19+
<div className='mt-4 flex flex-col items-center gap-1 text-sm'>
20+
<button
21+
type='button'
22+
className='bg-orange text-primary h-10 w-36 rounded rounded-2xl text-lg shadow-[3px_5px_6px_rgba(0,0,0,0.30)] transition-transform active:scale-95'
23+
onClick={() => navigate('/login')}
24+
>
25+
{'LOG IN'}
26+
</button>
27+
28+
<Link
29+
to='/register'
30+
className='group hover:text-primary mt-3 hover:underline'
31+
>
32+
{' No account yet ? '}
33+
<span className='group-hover:text-primary text-orange'>
34+
{'Sign up'}
35+
</span>
36+
</Link>
37+
</div>
38+
</div>
39+
</div>
40+
<Vinyl />
41+
</div>
42+
</div>
43+
);
544
}

packages/frontend/web/src/router.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import AlbumCongratulations from './pages/album-congratulations.tsx';
44
import App from './pages/app.tsx';
55
import ArtistHirePage from './pages/artist-hire-profile-page.tsx';
66
import ArtistPage from './pages/artist-profile-page.tsx';
7-
import CreateAlbumMenu from './pages/create-album.tsx';
87
import CreateAlbum from './pages/create-album.tsx';
9-
import CreateSingleMenu from './pages/create-single.tsx';
108
import CreateSingle from './pages/create-single.tsx';
119
import ErrorPage from './pages/error-page.tsx';
1210
import HireArtist from './pages/hire-artist.tsx';

0 commit comments

Comments
 (0)