Skip to content

Commit bbafa20

Browse files
committed
clean up
1 parent dd77d83 commit bbafa20

38 files changed

+717
-52
lines changed

pages/[lang]/home/course/[course_id]/cards.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,19 @@ function Cards() {
123123
setOpen({ ...opened, [card.id]: !opened[card.id] })
124124
}>
125125
<CardFront>
126-
<img
127-
style={{
128-
height: 175,
129-
width: card.type !== 'challenge' && 250,
130-
}}
131-
src={`/images/card-${card.type}.svg`}
132-
alt={card.type}
126+
<div
133127
className={classnames('img-fluid border p-3', {
134128
'rounded-circle': card.type === 'challenge',
135129
rounded: card.type !== 'challenge',
136130
})}
131+
style={{
132+
height: 175,
133+
width: 250,
134+
margin: '0 auto',
135+
background: `url(/images/card-${card.type}.svg) no-repeat`,
136+
backgroundPosition: '50% 50%',
137+
backgroundSize: 'contain',
138+
}}
137139
/>
138140
</CardFront>
139141
<CardBack

public/images/card-challenge.svg

Lines changed: 236 additions & 9 deletions
Loading

public/images/card-feelings.svg

Lines changed: 236 additions & 18 deletions
Loading

public/images/card-needs.svg

Lines changed: 236 additions & 18 deletions
Loading

public/images/team/anish.jpeg

-77.7 KB
Binary file not shown.

public/images/team/cindy.png

-2.44 KB
Binary file not shown.

public/images/team/louise.png

-189 KB
Binary file not shown.

public/images/team/madhu.jpeg

-96.1 KB
Binary file not shown.

public/images/team/maud.png

-213 KB
Binary file not shown.

public/images/team/natalia.jpeg

-20.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)