Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 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>Glass Website</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap"
rel="stylesheet"
Expand Down Expand Up @@ -43,6 +44,7 @@ <h2>Join pro for free games.</h2>
<img src="./images/controller.png" alt="" />
</div>
</div>
<div class="toggle"></div>
<div class="games">
<div class="status">
<h1>Active Games</h1>
Expand Down Expand Up @@ -82,5 +84,12 @@ <h2 class="percentage">60%</h2>
</main>
<div class="circle1"></div>
<div class="circle2"></div>
<script>
const navigation = document.querySelector('.dashboard');
document.querySelector('.toggle').onclick = function(){
this.classList.toggle('active');
navigation.classList.toggle('active');
}
</script>
</body>
</html>
82 changes: 64 additions & 18 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
h1 {
color: #426696;
font-weight: 600;
font-size: 3rem;
font-size: 2rem;/* 3 */
opacity: 0.8;
}
h2,
Expand Down Expand Up @@ -35,7 +35,7 @@ main {
.glass {
background: white;
min-height: 80vh;
width: 60%;
width: 80vw;
background: linear-gradient(
to right bottom,
rgba(255, 255, 255, 0.7),
Expand All @@ -54,19 +54,19 @@ main {
rgba(255, 255, 255, 0.8),
rgba(255, 255, 255, 0.3)
);
height: 20rem;
width: 20rem;
height: 10rem;
width: 10rem;
position: absolute;
border-radius: 50%;
}

.circle1 {
top: 5%;
right: 15%;
top: 0%;
right: 0%;
}
.circle2 {
bottom: 5%;
left: 10%;
bottom: 0%;
left: 0%;
}
.dashboard {
flex: 1;
Expand All @@ -81,15 +81,19 @@ main {
rgba(255, 255, 255, 0.3)
);
border-radius: 2rem;

}
.dashboard.active{
display:none;
}
.link {
display: flex;
margin: 2rem 0rem;
padding: 1rem 5rem;
margin: 1rem 0rem;/* 2 0 */
padding: 1rem 1rem;/* 1 5 */
align-items: center;
}
.link h2 {
padding: 0rem 2rem;
padding: 0rem 1rem;/* 0 2 */
}

.games {
Expand All @@ -100,24 +104,24 @@ main {
background: linear-gradient(to right top, #65dfc9, #6cdbeb);
border-radius: 2rem;
color: white;
padding: 1rem;
padding: 0.5rem;/* */
position: relative;
}

.pro img {
position: absolute;
top: -10%;
top: -2rem;
right: 10%;
}
.pro h2 {
width: 40%;
color: white;
font-weight: 600;
font-weight: 500;
}

/* GAMES */
.status {
margin-bottom: 3rem;
margin-bottom: 1rem;
}

.status input {
Expand All @@ -133,7 +137,7 @@ main {
}

.games {
margin: 5rem;
margin: 3rem;/* 5 */
display: flex;
flex-direction: column;
justify-content: space-evenly;
Expand All @@ -147,8 +151,8 @@ main {
rgba(255, 255, 255, 0.5)
);
border-radius: 1rem;
margin: 2rem 0rem;
padding: 2rem;
margin: 1rem 0rem; /* 2 0 */
padding: 1rem; /* 2 */
box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
justify-content: space-between;
}
Expand All @@ -173,6 +177,7 @@ main {
display: flex;
flex-direction: column;
justify-content: space-between;
padding-left:1rem;
}

.percentage {
Expand All @@ -181,3 +186,44 @@ main {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}


.toggle{
position: absolute;
top:3% ;
left: 25%; /* left:calc(30% - 35px); */
width:40px;
height:40px;
/* background: #f5f5f5; */
cursor: pointer;
/* border : 5px solid #65bedf;
border-radius: 50%; */
}
.toggle::before{
content:'\f053';
font-family: fontAwesome;
position: absolute;
width:100%;
height:100%;
line-height: 30px;
text-align: center;
font-size: 16px;
color:#65bedf
}
.toggle.active::before{
content:'\f0c9';

}
.toggle.active{
left:0;
}


@media(max-width:900px){
.glass{
flex-direction: column;
}
.toggle{
left: 90%;
}
}