-
Notifications
You must be signed in to change notification settings - Fork 1
/
portfolio-card.html
154 lines (127 loc) · 6.05 KB
/
portfolio-card.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Material Design for Bootstrap</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" />
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" />
<!-- MDB -->
<link rel="stylesheet" href="css/bootstrap-page-transitions.min.css" />
</head>
<body>
<!-- Start your project here-->
<style>
.eyes {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
text-align: center;
}
.eye {
width: 240px;
height: 120px;
background: #fff;
display: inline-block;
margin: 40px;
border-radius: 50%;
position: relative;
overflow: hidden;
}
.ball {
width: 50px;
height: 50px;
background: #000;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 10px solid #333;
}
</style>
<div class="container my-5">
<section>
<div class="card rounded mb-4">
<div class="row">
<div class="col-md-6">
<img class="img-fluid rounded rounded-left" src="https://mdbootstrap.com/img/Photos/Vertical/7.jpg" alt="project image">
</div>
<div class="col-md-6 p-5 align-self-center">
<h5 class="font-weight-normal mb-3" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000">Project detail</h5>
<p class="text-muted" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">Out or geared it but to best up samples the for she phase of copy would do in divine
of taken and the take medical or upper at him in the logbook were, we price his mostly to commas.</p>
<ul class="list-unstyled font-small mt-5 mb-0">
<li>
<p class="text-uppercase mb-2" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000"><strong>Client</strong></p>
<p class="text-muted mb-4" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">Envato Inc.</p>
</li>
<li>
<p class="text-uppercase mb-2" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000"><strong>Date</strong></p>
<p class="text-muted mb-4" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">June 27, 2019</p>
</li>
<li>
<p class="text-uppercase mb-2" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000"><strong>Skills</strong></p>
<p class="text-muted mb-4" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">Design, HTML, CSS, Javascript</p>
</li>
<li>
<p class="text-uppercase mb-2" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000"><strong>Address</strong></p>
<a href="https://mdbootstrap.com/docs/jquery/design-blocks/" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">MDBootstrap</a>
</li>
<li>
<p class="text-uppercase mt-4 mb-2" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-down" data-mdb-animation-duration="1000"><strong>Share</strong></p>
<div class="d-flex justify-content-start" data-mdb-toggle="animation"
data-mdb-animation-start="onLoad" data-mdb-animation="slide-in-up" data-mdb-animation-duration="1000">
<a class="text-muted pe-3" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="text-muted pe-3" href="#"><i class="fab fa-twitter"></i></a>
<a class="text-muted pe-3" href="#"><i class="fab fa-instagram"></i></a>
<a class="text-muted" href="#"><i class="fab fa-dribbble"></i></a>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
</div>
<!-- End your project here-->
<!-- MDB -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script type="text/javascript"></script>
<!-- Custom scripts -->
<script>
const balls = document.getElementsByClassName("ball");
document.onmousemove = function() {
let x = event.clientX * 100 / window.innerWidth + "%";
let y = event.clientY * 100 / window.innerHeight + "%";
// event.cilentX => get the horizontal coordinate of the mouse
// event.cilentY => get the vertical coordinate of the mouse
// window.innerWidth => get the browser width
// window.innerHeight => get the browser height
for(let i = 0; i < 2; i++) {
balls[i].style.left = x;
balls[i].style.top = y;
balls[i].style.transform = "translate(-"+x+", -"+y+")";
}
}
</script>
</body>
</html>