Skip to content

Commit f6fc979

Browse files
Slashgearclaude
andcommitted
refactor: remove image from HomeAnnouncement component
Remove the cinema image, its import, and all related CSS (image styles, image-width variable, description margin offset). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 78c8ccf commit f6fc979

3 files changed

Lines changed: 0 additions & 29 deletions

File tree

modules/lyonjs100/HomeAnnouncement.module.css

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.container {
2-
--image-width: 300px;
3-
}
4-
51
.description {
62
display: flex;
73
flex-direction: column;
@@ -19,10 +15,6 @@
1915
font-weight: 600;
2016
}
2117

22-
.image {
23-
display: none;
24-
}
25-
2618
.cta {
2719
position: absolute;
2820
bottom: -1.5rem;
@@ -34,24 +26,6 @@
3426
}
3527

3628
@media screen and (min-width: 768px) {
37-
.description {
38-
margin-left: calc(var(--image-width) + 2rem);
39-
}
40-
41-
.image {
42-
display: block;
43-
position: absolute;
44-
top: -3rem;
45-
left: 2rem;
46-
bottom: 1rem;
47-
max-width: var(--image-width);
48-
height: auto;
49-
max-height: 100%;
50-
object-fit: cover;
51-
object-position: bottom;
52-
border-radius: 0.5rem;
53-
}
54-
5529
.cta {
5630
justify-content: flex-end;
5731
right: 5rem;

modules/lyonjs100/HomeAnnouncement.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import Image from 'next/image';
21
import styles from './HomeAnnouncement.module.css';
32
import React from 'react';
4-
import cinema from './cinema.jpg';
53
import { ButtonLink } from '../atoms/button/Button';
64
import { Article, H2 } from '../home/Home.components';
75

@@ -13,7 +11,6 @@ export function HomeAnnouncement() {
1311
className={`flex flex-col grow justify-center rounded-lg p-10 pt-20 mt-10 ${styles.container}`}
1412
style={{ backgroundColor: 'var(--background-card)', position: 'relative' }}
1513
>
16-
<Image className={styles.image} src={cinema} width={350} alt="" />
1714
<div className={styles.description}>
1815
<p>LyonJS a fêté sa 100ème édition et ses 13 ans.</p>
1916
<p>

modules/lyonjs100/cinema.jpg

-12 MB
Binary file not shown.

0 commit comments

Comments
 (0)