Skip to content

Commit

Permalink
Refactor CSS to add sponsor logos, adjust font sizes, and make the pa…
Browse files Browse the repository at this point in the history
…ge responsive
  • Loading branch information
bamcasa committed Oct 12, 2024
1 parent 29d7b67 commit d91b3a1
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 48 deletions.
46 changes: 29 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,17 @@
<p>우리의 <img src="Rectangle.svg" alt="Rectangle"> <img src="Ellipse.svg" alt="Rectangle">,</p>
<p>모두 여기로 <span style="color : #332C27">모여!</span></p>
</div>

<p class="header-subtitle">멋쟁이사자처럼 연합 해커톤에 모여!</p>
<div style="text-align: center;">
<p class="header-subtitle">멋쟁이사자처럼 연합 해커톤에 모여!<br>
with</p>
<div class="sponsors">
<img src="images/Elice.svg">
<img src="images/Inflearn.svg">
<img src="images/Flexstudio.svg">
<img src="images/Likelion.svg">
<img src="images/yeongnimwonsoft.svg">
</div>
</div>
<div style="position: absolute; left: 0; width: 100%; height: 160px; z-index: -1;">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="229" viewBox="0 0 1440 229" fill="none"
preserveAspectRatio="none">
Expand All @@ -35,23 +44,25 @@
stroke="#FF6737" stroke-width="64.526" />
</svg>
</div>


<div class="header-buttons">
<p class="btn-gather">GATHER!</p>
<p class=" btn-gather">GATHER!</p>
<p class="btn-hackathon">HACKATHON</p>
<p class="btn-together">TOGETHER</p>
<p class="btn-fun">FUN</p>
<p class="btn-keepitup">KEEP IT UP!</p>
</div>

<div class="apply-btn-container">
<a href="https://forms.gle/WvLC9fbhtCGAvMLD8" class="apply-btn1">지금 신청하기 <img src="Arrow.svg"
alt="arrow"></a>
<a href="https://forms.gle/WvLC9fbhtCGAvMLD8" class="apply-btn1">지금 신청하기 <img src="Arrow.svg" alt="arrow"
class="arrow"></a>
</div>
</header>
<main>
<section id="introduce">
<div style="position: absolute; top: -25%; left: 0; width: 100%; height: 148%; z-index: -1;">
<svg width="100%" height="100%" viewBox="0 0 1440 1086" reserveAspectRatio="none" fill="none"
<div style="position: absolute; top: -25%; left: 0; height: 148%; z-index: -1;">
<svg height="100%" viewBox="0 0 1440 1086" preserveAspectRatio="xMidYMid meet" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M121.031 11.5739C-20.6278 -20.7702 -179.448 26.9467 -276.377 75.7385L-309 1019.58C-181.226 1079.91 121.031 1103.02 288.595 1050.91C434.697 1005.47 608.895 994.739 774.976 1063.74C941.057 1132.74 1184.67 1007.92 1364.42 1050.91C1655.06 1120.42 1729.94 940.694 1724.75 852.027V11.5739C1510.48 -30.594 1347.36 75.7385 1136.8 88.2365C926.228 100.734 910.658 11.5739 571.082 88.2365C333.68 141.832 289.522 50.0444 121.031 11.5739Z"
Expand Down Expand Up @@ -88,19 +99,19 @@
<div class="card-container">
<a class="card">
<p class="card-name" style="color: #FF6737;">네모여</p>
<img src="네모여.png" alt="네모여" width="168px" class="card-character">
<img src="네모여.png" alt="네모여" class="card-character">
</a>
<a class="card" style="background:#89BFFF;;">
<p class="card-name" style="color: #89BFFF;">실력이</p>
<img src="실력이.png" alt="실력이" width="209px" class="card-character">
<img src="실력이.png" alt="실력이" class="card-character">
</a>
<a class="card" style="background: #FFC6C3;">
<p class="card-name" style="color: #FFC6C3;">아이디어</p>
<img src="아이디어.png" alt="아이디어" width="207px" class="card-character">
<img src="아이디어.png" alt="아이디어" class="card-character">
</a>
<a class="card" style="background: #964C59;">
<p class="card-name" style="color: #964C59;">사라미</p>
<img src="사라미.png" alt="사라미" width="207px" class="card-character">
<img src="사라미.png" alt="사라미" class="card-character">
</a>

</div>
Expand All @@ -112,7 +123,7 @@
<table class="schedule-table">
<tr>
<td class="label">참가자 모집</td>
<td class="value">2024. 10. 8. - 2024. 10. 11.</td>
<td class="value">2024. 10. 8. - 2024. 10. 13.</td>
</tr>
<tr>
<td class="label">주제 공개</td>
Expand Down Expand Up @@ -143,12 +154,12 @@
</section>
<section id="timetable">
<div class="timetable-title">
<p><img src="Cloud2.svg" alt="*"> 시간표</p>
<p><img src="Cloud2.svg" alt="*"> 타임테이블</p>
</div>
<div class="timeline-container">
<div>
<div class="days">
<div class="day">DAY1</div>
<div class="day" style="margin-top: 420px;">DAY2</div>
<div class="day" style="margin-top: 31rem;">DAY2</div>
</div>
<ul id='timeline'>
<li class='event'>
Expand Down Expand Up @@ -238,9 +249,10 @@
<p class="footer-content">열정이 가득한 아기사자들과 함께 <br>
모여톤에 지원해 여러분의 꿈을 펼쳐보세요!</p>
<div class="footer-apply">
<img src="Cloud1-white.svg" style="width: 133px;"> <img src="Cloud2-white.svg" style="width: 139px;">
<img src="Cloud1-white.svg" class="cloud"> <img src="Cloud2-white.svg" class="cloud">
<a href="https://forms.gle/WvLC9fbhtCGAvMLD8" class="apply-btn"
style="background-color: #D94941; float: right;">지금 신청하기 <img src="Arrow-orange.svg" alt="Arrow"></a>
style="background-color: #D94941; float: right;">지금 신청하기 <img src="Arrow-orange.svg" alt="Arrow"
class="arrow2"></a>
</div>
<hr>
<div class="footer-contact">
Expand Down
100 changes: 69 additions & 31 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,30 @@ html {
}

/* 태블릿 크기에서의 font-size 조정 */
@media screen and (max-width: 768px) {
@media screen and (max-width: 1200px) {
html {
font-size: 14px;
}
}

@media screen and (max-width: 900px) {
html {
font-size: 12px;
}
.header-buttons {
display: none !important;
}
}

/* 모바일 크기에서의 font-size 조정 */
@media screen and (max-width: 480px) {
@media screen and (max-width: 580px) {
html {
font-size: 10px;
}

.cloud {
display: none;
}
}

html,
Expand All @@ -61,16 +74,16 @@ body {
}

.header-title {
font-size: 5.25rem;
font-size: 4.5em;
color: var(--orange);
text-align: center;
font-family: "SB AggroOTF";
margin-top: 8.125rem;
}

.header-title img {
width: 5.25rem;
height: 5.25rem;
width: 4.5rem;
height: 4.5rem;
vertical-align: middle;
}

Expand All @@ -89,6 +102,17 @@ body {
margin: 0;
}

.sponsors {
margin-top: 2.375rem;
padding: 0 2.5rem;
}

.sponsors img {
width: 5rem;
height: 100%;
margin: 1.375rem;
}

.header-buttons {
position: relative;
display: block;
Expand All @@ -107,7 +131,7 @@ body {
padding: 0.938rem 2.58rem 0.586rem 2.58rem;
justify-content: center;
align-items: center;
border-radius: 2.932rem;
border-radius: 46px;
border: 0.117rem solid #000;
background: #fff;
}
Expand Down Expand Up @@ -150,11 +174,23 @@ body {
margin-top: 13rem;
}

.arrow {
width: 2.125rem;
height: 2.125rem;
margin-left: 0.625rem;
}

.arrow2 {
width: 1.125rem;
height: 1.125rem;
margin-left: 0.625rem;
}

.apply-btn1 {
background-color: var(--black);
color: white;
padding: 1.313rem 4.125rem;
border-radius: 2.75rem;
border-radius: 44px;
text-decoration: none;
display: inline-flex;
align-items: center;
Expand All @@ -167,12 +203,12 @@ body {
background-color: var(--black);
color: white;
padding: 1.438rem 4.5rem;
border-radius: 3.75rem;
border-radius: 60px;
text-decoration: none;
display: inline-flex;
align-items: center;
font-family: Pretendard;
font-size: 2.125rem;
font-size: 1.125rem;
font-weight: 800;
}

Expand All @@ -193,19 +229,19 @@ main {

.introduce-title {
color: #565656;
font-size: 1.563rem;
font-size: 1.5rem;
}

.introduce-title img {
width: 1.563rem;
height: 1.563rem;
width: 1.5rem;
height: 1.5rem;
margin-right: 0.625rem;
vertical-align: middle;
}

.introduce-content {
color: var(--black);
font-size: 4.375rem;
font-size: 3rem;
font-style: normal;
font-weight: 600;
margin: 0;
Expand All @@ -214,12 +250,12 @@ main {

.introduce-content p {
margin: 0;
margin-top: 0.563rem;
margin-top: 0.5rem;
}

.rounded-text {
padding: 0.25rem 3.25rem;
border-radius: 3.75rem;
border-radius: 60px;
background: #ff6737;
color: white;
margin-right: 1.25rem;
Expand Down Expand Up @@ -268,11 +304,11 @@ main {
width: 17.889rem;
height: 23.111rem;
background: var(--orange);
border-radius: 2.397rem;
border-radius: 18px;
border: 0.125rem black solid;
display: flex;
flex-direction: column;
margin-left: 3rem;
margin: 1rem;
}

.card-name {
Expand All @@ -281,7 +317,7 @@ main {
padding: 0.875rem 1.813rem 0.625rem 1.813rem;
justify-content: center;
align-items: center;
border-radius: 2.375rem;
border-radius: 38px;
background: #fff;
margin: 1rem;
}
Expand All @@ -296,11 +332,14 @@ main {

.card-character {
margin: auto;
margin-bottom: 1rem;
width: fit-content;
max-width: 100%;
overflow: hidden;
}

#schedule {
width: 58%;
width: 20.25rem;
min-width: 90%;
margin: 15.125rem auto 0;
font-family: Pretendard;
}
Expand All @@ -319,10 +358,10 @@ main {

.schedule-table {
width: 100%;
border-radius: 2.42rem;
border-radius: 16px;
border-collapse: collapse;
overflow: hidden;
font-size: 1.75rem;
font-size: 1.25rem;
}

tr {
Expand All @@ -331,7 +370,7 @@ tr {

td {
text-align: center;
padding: 0.625rem 1.25rem;
padding: 1.625rem 2.25rem;
border-bottom: 0.194rem solid rgba(255, 255, 255, 0.3);
}
tr:last-child td {
Expand All @@ -340,7 +379,6 @@ tr:last-child td {
.label {
background-color: var(--orange);
color: white;
font-weight: bold;
}
.value {
background-color: var(--black);
Expand All @@ -366,7 +404,7 @@ tr:last-child td {
margin: 6.625rem auto 0;
padding: 3.5rem;
width: 80%;
border-radius: 3.125rem;
border-radius: 50px;
font-family: Pretendard;
background-color: white;
}
Expand Down Expand Up @@ -394,7 +432,7 @@ tr:last-child td {
margin-left: 40%;
padding-left: 1.188rem;
border-left: 0.125rem solid var(--black);
font-size: 1.875rem;
font-size: 1.125rem;
}

#timeline li {
Expand Down Expand Up @@ -433,7 +471,7 @@ tr:last-child td {
border: 0.117rem solid #000;
color: #332c27;
font-family: "SB AggroOTF";
font-size: 1.75rem;
font-size: 1rem;
font-style: normal;
font-weight: 400;
line-height: normal;
Expand All @@ -451,8 +489,8 @@ footer {

.footer-content {
padding-top: 4rem;
padding-left: 26%;
font-size: 2.5rem;
font-size: 1.5rem;
margin-left: 10%;
}

.footer-apply {
Expand All @@ -461,8 +499,8 @@ footer {
}

.footer-contact {
padding-left: 20%;
padding-right: 20%;
padding-left: 5%;
padding-right: 5%;
padding-bottom: 6.25rem;
font-size: 0.875rem;
display: flex;
Expand Down

0 comments on commit d91b3a1

Please sign in to comment.