-
Notifications
You must be signed in to change notification settings - Fork 5
/
grades.html
138 lines (126 loc) · 4.55 KB
/
grades.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!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">
<title>Document</title>
<link rel="stylesheet" href="./styles/nav.css">
<link rel="stylesheet" href="./styles/footer.css">
<link rel="stylesheet" href="./styles/main.css">
</head>
<style>
body{
background-color: #222;
}
#guide{
/* height:1050px; */
width:100%;
/* border:2px solid red; */
background-color: #222;
margin-bottom: 20px;
}
#name{
/* height:50px; */
width:400px;
/* border:2px solid blue; */
color: white;
padding-top: 35px;
font-size: 34px;
font-family: Arial, Helvetica, sans-serif;
margin-left: 80px;
color: #e6e6e6;
margin-bottom: 15px;
margin-top: 20px;
}
#image{
display:grid;
grid-template-columns: repeat(4 ,1fr);
gap:30px;
grid-template-rows: auto;
/* border:2px solid yellow; */
/* height: 900px; */
width: 90%;
/* margin-left: 80px; */
margin: auto;
margin-top: 20px;
}
#image>div{
/* width:250px; */
/* height: 100%; */
/* border:2px solid red; */
padding-bottom: 20px;
padding-left: 15px;
background-color: black;
}
#image img{
height:300px;
width:100%;
margin-left: -10px;
}
#link{
color:#c02d28;
line-height: 35px;
margin-top: 10px;
}
#image a{
text-decoration: underline;
color: orange;
/* margin-left: 10px; */
}
@media all and (max-width:768px) and (min-width:381px){
#image {
grid-template-columns: repeat(2 ,1fr);
}
#name {
margin-left: 45px;
}
}
@media all and (min-width: 50px) and (max-width: 380px) {
#image {
grid-template-columns: repeat(1 ,1fr);
margin-top: -10px;
}
#name {
margin-left: 25px;
height:50px;
width:250px;
font-size: 20px;
}
}
</style>
<body>
<header class="header"></header>
<div id="guide">
<div id="name">Frontend Masters Books</div>
<div id="image">
<div id="image1" ><img class="im" src="https://frontendmasters.com/static-assets/guides/learning-roadmap.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
<div id="image2" ><img id="im" src="https://frontendmasters.com/static-assets/guides/javascript-enlightenment.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
<div id="image3"><img id="im" src="https://frontendmasters.com/static-assets/guides/front-end-handbook-2019.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
<div id="image4" ><img id="im" src="https://frontendmasters.com/static-assets/guides/front-end-handbook-2018.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
<div id="image5"><img id="im" src="https://frontendmasters.com/static-assets/guides/front-end-handbook-2017.jpg" alt=""><a id="link"href="">Read Online > <br>Github Repo ></a></div>
<div id="image6" ><img id="im" src="https://frontendmasters.com/static-assets/guides/front-end-handbook-2016.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
<div id="image7"><img id="im" src="https://frontendmasters.com/static-assets/guides/react-enlightenment.jpg" alt=""><a id="link" href="">Read Online > <br>Github Repo ></a></div>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<script type="module">
import navbar from "./components/navbar.js"
// console.log(navbar)
document.querySelector(".header").innerHTML=navbar()
import footer from "./components/footer.js"
document.querySelector("#footer").innerHTML=footer()
const hamburger = document.querySelector(".menu");
const navMenu = document.querySelector(".mobile");
hamburger.addEventListener("click", function () {
navMenu.classList.toggle("active");
});
const hamburger1 = document.querySelector(" #footer .menu");
const navMenu1 = document.querySelector("#footer .mobile");
hamburger1.addEventListener("click", function () {
navMenu1.classList.toggle("active");
});
</script>
<script src="https://kit.fontawesome.com/2ab2a134b6.js" crossorigin="anonymous"></script>