Skip to content

Commit 2fdad09

Browse files
committed
Add photos
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
1 parent b47e9a6 commit 2fdad09

File tree

4 files changed

+58
-5
lines changed

4 files changed

+58
-5
lines changed

src/pages/index.js

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,38 @@ function Home() {
137137
</h2>
138138
</div>
139139
</div>
140-
<div className="row">
141-
<div className="col">
142-
<Translate id="frontpage.sec2.item1">
143-
我们的主页正式上线了!
144-
</Translate>
140+
<div style={{ textAlign: 'center' }} className="row">
141+
<div className="col col--6">
142+
<div className={styles.card}>
143+
<h3 className={styles.header}>
144+
<Translate id="frontpage.sec2.item1">
145+
2021 届圆满落幕 🥳
146+
</Translate>
147+
</h3>
148+
<div>
149+
<img
150+
style={{ maxWidth: '400px', width: '100%' }}
151+
alt="all club members"
152+
src="/img/club_photo.jpeg"
153+
/>
154+
</div>
155+
</div>
156+
</div>
157+
<div className="col col--6">
158+
<div className={styles.card}>
159+
<h3 className={styles.header}>
160+
<Translate id="frontpage.sec2.item2">
161+
C 社 2022 届开始招新,欢迎你的加入!
162+
</Translate>
163+
</h3>
164+
<div>
165+
<img
166+
style={{ maxWidth: '400px', width: '100%' }}
167+
alt="poster"
168+
src="/img/poster.png"
169+
/>
170+
</div>
171+
</div>
145172
</div>
146173
</div>
147174
</div>

src/pages/styles.module.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,29 @@ html[data-theme='dark'] #getStarted {
6262
html[data-theme='dark'] .caption {
6363
color: #aaaaaa;
6464
}
65+
66+
.card {
67+
margin: 20px;
68+
padding: 20px;
69+
width: auto;
70+
display: flex;
71+
flex-direction: column;
72+
background: #ffffff;
73+
border-radius: 4px;
74+
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
75+
transition: 0.3s;
76+
}
77+
78+
html[data-theme='dark'] .card {
79+
background: rgba(255, 255, 255, 0.09);
80+
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);
81+
}
82+
83+
.card .header {
84+
width: auto;
85+
height: auto;
86+
padding: 30px 20px 10px 20px;
87+
display: block;
88+
text-align: center;
89+
flex-grow: 2;
90+
}

static/img/club_photo.jpeg

116 KB
Loading

static/img/poster.png

423 KB
Loading

0 commit comments

Comments
 (0)