Skip to content

Commit

Permalink
middle part done
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFreezer-spesn committed Oct 8, 2023
1 parent f47adef commit e8d1137
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 56 deletions.
51 changes: 29 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Game online_gg</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="responsive.css" />
<script
src="https://kit.fontawesome.com/96919fe459.js"
crossorigin="anonymous"
Expand Down Expand Up @@ -32,30 +33,36 @@
</div>
</nav>
<section class="main-container">
<div class="auxlilary-container">
<img id="gradient" src="./images/Group 14.png" alt="" />
<section class="paragraph-main">
<h1 class="play">play like the</h1>
<h1>g.o.a.t</h1>
<ul class="highlighted-option">
<li class="ids">
<img src="./images/download.svg" alt="" />1-Click instant play
</li>
<li id="ids"><img src="./images/play.svg" alt="" />No download</li>
<li id="ids">
<img src="./images/people.svg" alt="" />1000s of supported online
games
</li>
</ul>
<section class="button-cluster">
<button class="pink-btn">SIGN IN</button
><button class="blue-btn">GO ROUGE</button>
</section>
</section>
<div class="main-container-text">
<img src="./images/Group 14.png" alt="" />
<div class="overlay-text">
<h1>Play like</h1>
<p>g.o.a.t</p>
<div class="social-icons">
<span
><i class="fa-solid fa-play" style="color: palevioletred"></i
><span class="features-text">1-Click instant play</span>
</span>
<span
><i class="fa-solid fa-download" style="color: palevioletred"></i
><span class="features-text">1-Click instant play</span>
</span>
<span
><i class="fa-solid fa-user" style="color: palevioletred"></i
><span class="features-text">1-Click instant play</span>
</span>
</div>
<div class="btn">
<button>Sign in</button><button>GO ROGUE</button>
</div>
</div>
</div>
<div class="play-img">
<img src="./images/Group 18.png" alt="" />
<div class="main-container-img">
<img class="3-pictures" src="./images/Group 18.png" alt="" />
</div>
</section>
<section class="us-pic">
<div class="toys-pic"></div>
</section>
</body>
</html>
55 changes: 55 additions & 0 deletions responsive.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@media screen and (max-width: 567px) {
nav {
flex-direction: column;
padding: 0px 0px;
margin: 60px 0px;
}
.contact-us {
flex-direction: column;
padding: 30px 0px;
margin: 0px 0px;
}
.g {
padding-left: 15px;
margin: 0px 0px;
}
button {
padding: 10px 25px;
margin: 0px 0px;
}
.about-us {
padding: 0px 0px;
margin: 0px 0px;
}
.devlopers {
padding: 30px 0px;
margin: 0px 0px;
}
/*section mid*/

.main-container-text {
margin-left: 0px;
}
.main-container {
flex-direction: column-reverse;
margin: 0px 0px;
}
.main-container-text > img {
width: 200%;
height: 660%;
}
.main-container-img > img {
width: 170%;
padding-left: 10px;
}
.main-container-text,
.main-container-img > img {
margin-left: 10px;
padding-top: 50px;
}
.overlay-text {
position: absolute;
top: 20%;
left: 20%;
}
}
92 changes: 58 additions & 34 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ a {
nav {
display: flex;
align-items: center; /* Vertically center items in the nav */
margin: 90px 140px; /* Adjust the margin as needed */
margin: 90px 140px;
background-color: #fff; /* Optional background color for the navigation bar */
}

Expand Down Expand Up @@ -60,41 +60,65 @@ button img {
}

/* main section starts form here */

.main-container {
display: flex;
.main-container-text {
position: relative;
width: 50%;
}
.paragraph-main {
.main-container-text > img {
height: 100%;
width: 100%;
}
.overlay-text {
position: absolute;
top: 30%;
left: 10%;
}
@media screen and (max-width: 567px) {
nav {
flex-direction: column;
padding: 0px 0px;
margin: 60px 0px;
}
.contact-us {
flex-direction: column;
padding: 30px 0px;
margin: 0px 0px;
}
.g {
padding-left: 15px;
margin: 0px 0px;
}
button {
padding: 10px 25px;
margin: 0px 0px;
}
.about-us {
padding: 0px 0px;
margin: 0px 0px;
}
.devlopers {
padding: 30px 0px;
margin: 0px 0px;
}
left: 20%;
}
.main-container {
max-width: 1400px;
min-height: 50px;
display: flex;
margin: 0px 125px;
}
.main-container-img {
width: 50%;
}
.main-container-img > img {
width: 100%;
height: 100%;
}
.features-text {
padding-left: 10px;
}
.social-icons {
display: flex;

flex-direction: column;
}
.fa-solid {
margin-top: 10px;
}
.overlay-text h1 {
color: #0b0223;
font-size: 49px;

font-weight: 600;

text-transform: uppercase;
}
.overlay-text p {
background: linear-gradient(180deg, #f948b2 0%, #8758f1 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

font-size: 95px;

font-weight: 800;

text-transform: uppercase;
}
.btn {
padding-top: 30px;
display: flex;
gap: 20px;
}

0 comments on commit e8d1137

Please sign in to comment.