Skip to content

Commit aa6a152

Browse files
committed
j6
1 parent ced42cf commit aa6a152

4 files changed

Lines changed: 37 additions & 1 deletion

File tree

src/Card.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,16 @@
7777
filter: brightness(30%);
7878
}
7979

80-
.img-wrapper img {width: 100%;}
80+
.img-wrapper img {width: 100%;}
81+
82+
83+
.card .imgVinoScreen {
84+
width: 50vw !important;
85+
height:auto;
86+
max-height: none;
87+
}
88+
.card .imgVino {
89+
width: 50vw !important;
90+
height: auto !important;
91+
max-height: none;
92+
}

src/Content.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import penseeNoireUrl from './assets/pensee_noire.png'
33
import bateauIvreUrl from './assets/bateau_ivre.jpg'
44
import pigeonUrl from './assets/pigeon.jpg'
55
import motUrl from './assets/mot.png'
6+
import vinScreenUrl from './assets/vin_conv.jpg'
7+
import vinUrl from './assets/vino.jpg'
8+
import './Card.css'
9+
10+
import { useState } from 'react'
611

712
const days: Record<number, Function> = {
813
1: () => {
@@ -50,6 +55,25 @@ const days: Record<number, Function> = {
5055
<p>❤️</p>
5156

5257
</>)
58+
},
59+
6: () => {
60+
let [isOpenened, doOpen] = useState(false)
61+
let s = {
62+
"width": "100%"
63+
}
64+
let ending = isOpenened ? <img className="imgVino" src={vinUrl} /> : <div><button onClick={() => doOpen(true)}>Veritas?</button></div>
65+
66+
return (<>
67+
<p>In vino:</p>
68+
<div>
69+
<img className="imgVinoScreen" src={vinScreenUrl} />
70+
71+
</div>
72+
<div>
73+
{ending}
74+
75+
</div>
76+
</>)
5377
}
5478

5579
}

src/assets/vin_conv.jpg

258 KB
Loading

src/assets/vino.jpg

686 KB
Loading

0 commit comments

Comments
 (0)