-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
139 lines (113 loc) · 4.17 KB
/
index.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
139
<!DOCTYPE html>
<html>
<head>
<title>My Blog</title>
<meta charset="UTF-8" />
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="stylesheet" href="src/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!--Header-->
<div class="header">
<div class="logo" style="background-image:url(img/logo.png)"></div>
</div>
<!--Nav bar-->
<div class="container-nav">
<div class="nav-wrapper">
<div class="nav-left-side">
<div class="nav-link-wrapper active-nav-link">
<a href="index.html">Home</a>
</div>
<div class="nav-link-wrapper">
<div class="dropdown">
<div class="dropbtn">Blog <i class="fa fa-caret-down"></i>
<div class="dropdown-content">
<a href="life.html">Life in Germany</a>
<a href="travel.html">Travels</a>
<a href="food.html">Food</a>
</div>
</div>
</div>
<div class="dropdown">
<div class="dropbtn">About <i class="fa fa-caret-down"></i>
<div class="dropdown-content">
<a href="profile.html">Profile</a>
<a href="mailto:[email protected]">Contact</a>
</div>
</div>
</div>
</div>
</div>
<div class="nav-right-side">
<div class="nav-button-wrapper">
<a href="https://www.facebook.com/alexis.neo" class="fa fa-facebook"></a>
<a href="https://twitter.com/TheHangryKat" class="fa fa-twitter"></a>
<a href="#" class="fa fa-youtube"></a>
<a href="https://www.instagram.com/the.hangrykat" class="fa fa-instagram"></a>
<a href="https://de.linkedin.com/in/hsueh-yen-neo" class="fa fa-linkedin"></a>
</div>
</div>
</div>
</div>
<!--Content-->
<div class="content-wrapper">
<div class="content-grids-wrapper">
<div class="content-grid-wrapper">
<a href="life.html">
<div class="grid-img-background" style="background-image:url(img/grid1.jpg)"></div>
<div class="img-text-wrapper">
<div class="subtitle"><h2>Munich</h2><br><br><p>My city, my home</p></div>
</div>
</a>
</div>
<div class="content-grid-wrapper">
<a href="life.html">
<div class="grid-img-background" style="background-image:url(img/grid2.jpg)"></div>
<div class="img-text-wrapper">
<div class="subtitle"><h2>Best of Germany</h2><br><br><p>Beautiful cities in Germany</p></div>
</div>
</a>
</div>
<div class="content-grid-wrapper">
<a href="food.html">
<div class="grid-img-background" style="background-image:url(img/grid3.jpg)"></div>
<div class="img-text-wrapper">
<div class="subtitle"><h2>German food & culture</h2><br><br><p>Food, beer, snacks, beer and beer</p></div>
</div>
</a>
</div>
<div class="content-grid-wrapper">
<a href="travels.html">
<div class="grid-img-background" style="background-image:url(img/grid4.jpg)"></div>
<div class="img-text-wrapper">
<div class="subtitle"><h2>Travels</h2><br><br><p>Wanderlust around the world</p></div>
</div>
</a>
</div>
<div class="content-grid-wrapper">
<a href="passion.html">
<div class="grid-img-background" style="background-image:url(img/grid5.jpg)"></div>
<div class="img-text-wrapper">
<div class="subtitle"><h2>Passion</h2><br><br><p>Hobbies and interests</p></div>
</div>
</a>
</div>
</div>
</div>
</div>
</body>
<script>
const contentGrids = document.querySelectorAll('.content-grid-wrapper');
contentGrids.forEach(contentGrid => {
contentGrid.addEventListener('mouseover', () => {
console.log(contentGrid.childNodes[1].childNodes[1].classList)
contentGrid.childNodes[1].childNodes[1].classList.add('image-blur');
});
contentGrid.addEventListener('mouseout', () => {
console.log(contentGrid.childNodes[1].childNodes[1].classList)
contentGrid.childNodes[1].childNodes[1].classList.remove('image-blur');
});
});
</script>
</html>