Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new changes according to mentor's comments #620

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions submissions/bordun2022/taskPopup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# taskPopup
[Demo](https://bordun2022.github.io/taskPopup) |
[Code base](https://github.com/bordun2022/taskPopup)

57 changes: 57 additions & 0 deletions submissions/bordun2022/taskPopup/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pop up</title>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<nav>
<ul class="navigation_list">
<li class="nav_item link1"><a href="#">Mail</a></li>
<li class="nav_item link1"><a href="#">Images</a></li>
<li class="nav_item nav_btn">
<input id="pop_btn1" type="checkbox">
<label for="pop_btn1" id="label_1">
<img src="popup-icons/popup-button.png" alt="vg">
</label>

<ul class="pop_menu card">
<li><a href="#"><img src="popup-icons/calendar.png" alt=""><h3>Calendar</h3></a></li>
<li><a href="#"><img src="popup-icons/documents.png" alt=""><h3>Docs</h3></a></li>
<li><a href="#"><img src="popup-icons/maps.png" alt=""><h3>Maps</h3></a></li>
<li><a href="#"><img src="popup-icons/mic.png" alt=""><h3>Music</h3></a></li>
<li><a href="#"><img src="popup-icons/files.png" alt=""><h3>Files</h3></a></li>
<li><a href="#"><img src="popup-icons/videos.png" alt=""><h3>Videos</h3></a></li>
<li><a href="#"><img src="popup-icons/news.png" alt=""><h3>News</h3></a></li>
<li><a href="#"><img src="popup-icons/search.png" alt=""><h3>Search</h3></a></li>
<li><a href="#"><img src="popup-icons/classroom.png" alt=""><h3>Class</h3></a></li>
<li><a href="#"><img src="popup-icons/mail.png" alt=""><h3>Secret</h3></a></li>
<li><a href="#"><img src="popup-icons/promo.png" alt=""><h3>Promo</h3></a></li>
<li><a href="#"><img src="popup-icons/tanslation.png" alt=""><h3>Words</h3></a></li>
<li class="more_btn">
<input id="more_btn1" type="checkbox">
<label for="more_btn1" id="label_2"><span>More</span></label>
<ul class="pop_menu2">
<li><a href="#"><img src="popup-icons/apps.png" alt=""><h3>Apps</h3></a></li>
<li><a href="#"><img src="popup-icons/blogs.png" alt=""><h3>Blogs</h3></a></li>
<li><a href="#"><img src="popup-icons/contacts.png" alt=""><h3>Contacts</h3></a></li>
<li><a href="#"><img src="popup-icons/mars.png" alt=""><h3>Games</h3></a></li>
<li><a href="#"><img src="popup-icons/collection.png" alt=""><h3>Books</h3></a></li>
<li><a href="#"><img src="popup-icons/photos.png" alt=""><h3>Photos</h3></a></li>
</ul>
</li>
</ul>
</li>
<li class="nav_item"><a href="#"><img src="popup-icons/bell.png" alt="Bell"></a></li>
<li class="nav_item"><a href="#"><img src="popup-icons/logo.png" alt="Logo"></a></li>
</ul>
</nav>
</body>
</html>





280 changes: 280 additions & 0 deletions submissions/bordun2022/taskPopup/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
list-style: none;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
color: grey;
}

body {
background: linear-gradient(to right, pink 0%, white 90%);
background-size: content;
background-attachment: fixed;
}

ul li {
list-style: none;
}

.navigation_list {
margin: 20px 60px 0 0;
display: flex;
align-items: center;
text-align: center;
gap: 10px;
justify-content: flex-end;
position: relative;

}

.link1 > a {
padding-top: 8px;
}

a, label {
display: block;
}

img {
height: 35px;
width: auto;

}
a:hover, input:hover {
color: grey;
background-color: transparent;
border: 1px solid grey;
padding: 5px;
display: inline-block;
text-align: center;
align-items: center;
}

a:focus, input:focus {
outline: 2px lightgreen solid;

}

.card {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
max-width: 1300px;
max-height: 1300px;
}

input {
-webkit-appearance: none;
cursor: pointer;
right: 138px;
margin-left: 1em;
appearance: none;

}

#pop_btn1 {
position: absolute;
height: 34px;
width: 64px;

}

.pop_menu {
max-height: 0;
display: none;
position: absolute;
}

.nav_item, #label_1 {
height: 35px;
width: 60px;
}

#pop_btn1:checked ~ .pop_menu {
max-height: 500px;
top: 30px;
right: 20px;
gap: 30px;
margin: 20px;
padding: 30px;
position: absolute;
display: grid;
grid-template-columns: repeat(3, 60px);
grid-template-rows: repeat(4, 40px), repeat(4, 40px);
font-size: 12px;
text-align: center;
overflow-y: auto;

}

#more_btn1 {
width: 240px;
height: 20px;
position: fixed;
right: 130px;

}

#label_2::before {
content: "More";
font-size: 15px;
width: 240px;
display: block;
grid-column: span 3;
background: lightgrey;
height: 20px;
line-height: 20px;
cursor: pointer;
position: absolute;
}

#more.btn1:checked + #label_2:before, #more_btn1:checked {
height: 0;
opacity: 0;
cursor: none;
}

.pop_menu2 {
max-height: 20px;
display: none;
padding-top: 15px;
}

#more_btn1:checked ~ .pop_menu2 {
max-height: 1000px;
gap: 30px;
display: grid;
grid-template-columns: repeat(3, 60px);
grid-template-rows: repeat(2, 40px);
}



@media screen and (max-width: 660px) {
* {
font-size: 16px;
}

.navigation_list {
margin: 10px 30px 10px 0px;
gap: 10px;
}

img {
width: auto;
height: 35px;
}

.nav_item {
height: 45px;
width: 15%;
}

.nav_btn {
position: relative;

}

#pop_btn1 {
right: 0;
height: 40px;
width: 50px;
}

#pop_btn1:checked ~ .pop_menu {
display: grid;
max-width:660px;
top: 50px;
right: -120px;
gap: 12px;
margin: 0;
grid-template-columns: repeat(3, 80px);
grid-template-rows: repeat(4, 60px);
overflow-y: auto;
}

#more_btn1 {
height: 30px;
width: 270px;
right: 62px;

}

#label_2:before {
width: 270px;
height: 25px;
padding-top: 5px;
}

#more_btn1:checked ~ .pop_menu2 {
display: grid;
gap: 15px;
grid-template-columns: repeat(3, 80px);
grid-template-rows: repeat(2, 65px);
padding-bottom: 15px;
max-width:660px;

}

@media screen and (max-width: 280px) {
* {
font-size: 14px;
}

.navigation_list {
margin: 10px 15px 0px 0px;
gap: 15px;
}
.nav_item {
height: 55px;
width: 15%;
}

.nav_btn {
position: relative;

}

#pop_btn1 {
right: -15px;
height: 35px;
width: 50px;
}

#pop_btn1:checked ~ .pop_menu {
display: grid;
max-width:280px;
top: 50px;
right: -115px;
gap: 12px;
margin: 0;
grid-template-columns: repeat(3, 60px);
grid-template-rows: repeat(4, 60px);
overflow-y: auto;
}

#more_btn1 {
right: 39px;
height: 30px;
width: 210px;
}

#label_2:before {
width: 215px;
height: 25px;
padding-top: 5px;
right: 25px;

}

#more_btn1:checked ~ .pop_menu2 {
display: grid;
gap: 10px;
grid-template-columns: repeat(3, 60px);
grid-template-rows: repeat(2, 65px);
padding-top: 30px;

}
}
}