forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2220ccb
commit cd3860a
Showing
12 changed files
with
169 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Document</title> | ||
</head> | ||
|
||
<body> | ||
<div class="rating"> | ||
<input type="radio" name="star" id="star1" checked="checked"> | ||
<label for="star1"> | ||
<img src="./img/cool.png" alt="" srcset=""> | ||
<h4>Loved It</h4> | ||
</label> | ||
<input type="radio" name="star" id="star2"> | ||
<label for="star2"> | ||
<img src="./img/surprised.png" alt="" srcset=""> | ||
<h4>Liked It</h4> | ||
</label> | ||
<input type="radio" name="star" id="star3"> | ||
<label for="star3"> | ||
<img src="./img/angry.png" alt="" srcset=""> | ||
<h4>It's Ok</h4> | ||
</label> | ||
<input type="radio" name="star" id="star4"> | ||
<label for="star4"> | ||
<img src="./img/ugly (1).png" alt="" srcset=""> | ||
<h4>Dislike Ok</h4> | ||
</label> | ||
<input type="radio" name="star" id="star5"> | ||
<label for="star5"> | ||
<img src="./img/ugly.png" alt="" srcset=""> | ||
<h4>Hated It</h4> | ||
</label> | ||
<h2 class="text">Do yo like my projects?</h2> | ||
|
||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'poppins', sans-serif; | ||
} | ||
|
||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
background: #201528; | ||
} | ||
|
||
img { | ||
height: 120px; | ||
width: 120px; | ||
} | ||
|
||
.rating { | ||
position: relative; | ||
display: flex; | ||
flex-direction: row-reverse; | ||
} | ||
|
||
.rating input { | ||
display: none; | ||
} | ||
|
||
.rating label { | ||
position: relative; | ||
width: 0; | ||
height: 128px; | ||
cursor: pointer; | ||
transition: 0.5s; | ||
filter: grayscale(1); | ||
text-align: center; | ||
opacity: 0; | ||
} | ||
|
||
.rating:hover label { | ||
width: 160px; | ||
opacity: 0.2; | ||
} | ||
|
||
.rating input:hover+label, | ||
.rating input:checked+label { | ||
filter: grayscale(0); | ||
opacity: 1; | ||
width: 160px; | ||
} | ||
|
||
.rating label h4 { | ||
color: #fff; | ||
font-size: 24px; | ||
padding-top: 10px; | ||
font-weight: 500; | ||
white-space: nowrap; | ||
opacity: 0; | ||
transform: translateY(-50px) scale(0); | ||
transition: 0.5s; | ||
} | ||
|
||
.rating input:hover+label h4, | ||
.rating input:checked+label h4 { | ||
opacity: 1; | ||
transform: translateY(0) scale(1); | ||
} | ||
|
||
.text { | ||
position: absolute; | ||
top: -80px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
color: #fff; | ||
width: 500px; | ||
font-weight: 700; | ||
letter-spacing: 2px; | ||
text-align: center; | ||
white-space: nowrap; | ||
font-size: 36px; | ||
} |