-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter.html
208 lines (185 loc) · 7.91 KB
/
filter.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
.four {
width: 32.26%;
}
/* COLUMNS */
/* CLEARFIX */
.cf:before,
.cf:after {
content: " ";
display: table;
}
.cf:after {
clear: both;
}
.cf {
*zoom: 1;
}
/* GENERAL STYLES FOR BOX AND OVERLAY */
.box {
display: block;
overflow: hidden;
background-color: #bbb;
text-align: center;
position: relative;
}
.overlay {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
/* SLIDE IN */
.slide-in .overlay {
background-color: #6addaa;
line-height: 200px;
color: #fff;
transform: translateX(-100%);
-webkit-transition: transform 0.5s ease-out;
-o-transition: transform 0.5s ease-out;
transition: transform 0.5s ease-out;
}
.slide-in .box:hover .overlay {
transform: translateX(0);
}
</style>
</head>
<body>
<div>
<div class="card-deck">
<div class="slide-in four">
<div class="card">
<img src="img/giortechnology.png" class="card-img-top" alt="...">
<div class="card-body box">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
<div class="overlay">
<div class="list-group">
<button type="button" class="list-group-item list-group-item-action active">
Cras justo odio
</button>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<img src="img/technologyandhealth.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img src="img/pentagonito.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
<div class="slide-in four">
<div class="box">
<span class="original">
<h1>Hover!</h1>
<p>Slide in from left</p>
</span>
<div class="overlay">
<button class="btn btn-success">Visitar Pagina</button>
<i class="fa fa-commenting-o fa-3x" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
<div>
<div class="p-2 text-center">
<h3>Projects grid</h3>
<div class="project-filter-buttons">
<button data-filter="" class="btn btn-square filter-button clear-button active-filter">All</button>
<button data-filter="angular" class="btn btn-square filter-button">Angular</button>
<button data-filter="bootstrap" class="btn btn-square filter-button">Bootstrap</button>
<button data-filter="firebase" class="btn btn-square filter-button">Firebase</button>
<button data-filter="php" class="btn btn-square filter-button">PHP</button>
</div>
</div>
<div class="pt-3">
<div class="row row-cols-1 row-cols-md-3 projects-work">
<div class="col mb-4 bootstrap react php">
<div class="card">
<img src="img/giortechnology.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h3 class="card-text">Desing</h3>
</div>
</div>
</div>
<div class="col mb-4 angular php">
<div class="card">
<img src="img/technologyandhealth.jpg" class="card-img-top" alt="...">
<div class="card-body text-center">
<h3 class="card-text">Desing</h3>
</div>
</div>
</div>
<div class="col mb-4 php">
<div class="card">
<img src="img/pentagonito.jpg" class="card-img-top" alt="...">
<div class="card-body text-center">
<h3 class="card-text">Desing</h3>
</div>
</div>
</div>
<div class="col mb-4 angular">
<div class="card">
<img src="http://placehold.it/350x250" class="card-img-top" alt="...">
<div class="card-body text-center">
<h3 class="card-text">Desing</h3>
</div>
</div>
</div>
<div class="col mb-4 firebase">
<div class="card">
<img src="http://placehold.it/350x250" class="card-img-top" alt="...">
<div class="card-body text-center">
<h3 class="card-text">Desing</h3>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
<script type="text/javascript">
const iso = new Isotope(".projects-work");
const filterButtons = Array.prototype.slice.call(
document.querySelectorAll(".filter-button")
);
filterButtons.map((button) => {
button.addEventListener("click", function() {
filterButtons.map((button) => button.classList.remove("active-filter"));
const type = this.getAttribute("data-filter");
this.classList.add("active-filter");
iso.arrange({
// item element provided as argument
filter: type && `.${type}`
});
iso.layout();
});
});
</script>
</body>
</html>