Skip to content

Commit

Permalink
Done #2
Browse files Browse the repository at this point in the history
  • Loading branch information
marco0212 committed May 14, 2020
1 parent a815587 commit 30ade6f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
20 changes: 16 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ body {
img {
vertical-align: top;
}
.img-wrap {
width: 100%;
}
.img-wrap img {
width: 100%;
}
.swiper-container {
box-sizing: border-box;
width: 100%;
Expand All @@ -33,19 +39,21 @@ img {
position: relative;
background: no-repeat center center / cover;
}
.swiper-slide.first p {
.group {
position: relative;
}
.group p {
position: absolute;
font-size: 25px;
font-size: 20px;
color: #fff;
line-height: 1.5;
top: 15px;
top: 20px;
left: 0;
right: 0;
padding: 0 15px;
box-sizing: border-box;
text-align: center;
text-shadow: 0px 0px 3px rgba(0, 0, 0, 1), 0px 0px 3px rgba(0, 0, 0, 1), 0px 0px 3px rgba(0, 0, 0, 1);

}
.content-wrap {
display: flex;
Expand Down Expand Up @@ -80,6 +88,10 @@ img {
html, body, #root {
height: auto;
}
.group p {
position: relative;
margin-top: 15px;
}
.content-wrap {
width: 100%;
flex-direction: column;
Expand Down
18 changes: 10 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ function App() {
return (
<div className="swiper-container">
<div className="swiper-wrapper">
<div
className="swiper-slide first"
style={{ backgroundImage: `url(${groupImg})`}}
>
<p>
여기까지 오게 된 것은 모두 켄님 덕분입니다. Special thanks to ken.<br />
2020.01.06 ~ 05.09 바닐라코딩 7기, 스승의 날
</p>
<div className="swiper-slide">
<div className="group">
<div className="img-wrap">
<img src={groupImg} alt="Bye Vanilla" />
</div>
<p>
여기까지 오게 된 것은 모두 켄님 덕분입니다. Special thanks to ken.<br />
2020.01.06 ~ 05.09 바닐라코딩 7기, 스승의 날
</p>
</div>
</div>
{
letters.map(letter => {
Expand Down
Binary file modified src/pictures/group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30ade6f

Please sign in to comment.