-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
179 lines (143 loc) · 4.87 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Me in 10kb</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
h1,h2,h3 { margin:0; padding: 0 }
p { line-height: 24px }
body {
background: #e2e1e0;
font-family: -apple-system, BlinkMacSystemFont, San Francisco, Roboto, Segoe UI, Helvetica Neue, sans-serif;
color: #444;
}
.slider-container {
max-width: 500px;
height: 300px;
position: relative;
margin: 0 auto;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
background-color: #fff
}
.slider-container input[type="radio"] { display: none }
.slider-container > div {
position: absolute;
top:0;
padding: 10px 20px;
height: 100%;
width: 100%;
box-sizing: border-box;
opacity: 0;
transition: all 0.5s ease-in-out;
display: flex;
align-items: center;
justify-content: center
}
.slide-1 { background-color: #283593 }
.slide-2 { background-color: #6a1b9a }
.slide-3 { background-color: #263238 }
.slide-2 { flex-direction: column }
#slide-1:checked ~ .slide-1 { z-index: 5; opacity: 1 }
#slide-2:checked ~ .slide-2 { z-index: 5; opacity: 1 }
#slide-3:checked ~ .slide-3 { z-index: 5; opacity: 1 }
#slide-1:checked ~ nav [data-slide="1"]:after,
#slide-2:checked ~ nav [data-slide="2"]:after,
#slide-3:checked ~ nav [data-slide="3"]:after {
opacity: 1;
transform: translateY(0)
}
#slide-1:checked ~ nav [data-slide="1"]:after { border-color: #283593 transparent transparent }
#slide-2:checked ~ nav [data-slide="2"]:after { border-color: #6a1b9a transparent transparent }
#slide-3:checked ~ nav [data-slide="3"]:after { border-color: #263238 transparent transparent }
.about-me p, .about-me h2 {
color: #fefefe;
font-weight: normal;
}
.intro-section {
border: 1px dashed;
border-color: #fff;
border-color: rgba(255,255,255,0.3);
width: 70%;
margin: 0 auto;
text-align: center;
padding: 13px 10px 17px 10px
}
.intro-section .heading {
text-transform: uppercase;
color: #fefefe;
font-size: 28px;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 1)
}
.intro-section strong {
font-weight: normal;
color: #eee
}
.pagination {
text-align: center;
display: block;
display: flex;
margin: 30px auto 0 auto;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
position: absolute;
bottom: -51px;
width: 100%
}
.pagination label {
border-right: 1px solid #e5e5e5;
display: block;
float: left;
padding: 15px 0;
background-color: #fff;
cursor: pointer;
width: 33.2%;
position: relative;
}
.pagination label:after {
content: '';
position: absolute;
top:0;
left:0;
right:0;
width: 0;
height: 0;
margin:0 auto;
border-style: solid;
border-width: 10px 10px 0 10px;
opacity: 0;
transform: translateY(-20px);
transition: transform 0.5s ease-in-out;
}
.pagination label:hover { background-color: #e5e5e5 }
.pagination label:last-child { border-right: 0 }
</style>
</head>
<body>
<div class="slider-container">
<input type="radio" id="slide-1" checked="checked" name="slide-1">
<div class="slide-1">
<div class="intro-section">
<h2 class="heading">Arpan Patel</h2>
<strong>(Designer / Developer)</strong>
</div>
</div>
<input type="radio" id="slide-2" name="slide-1">
<div class="slide-2 about-me">
<h2>About Me</h2>
<p>Hi there, <br> I'm arpan. 22 year old desinger from india, I specialise in website design. I maintain a healthy balance between functionality and visual impact in all my work. I believe every piece of design can be a work of art. I love my work and enjoy each new project as I get it.</p>
</div>
<input type="radio" id="slide-3" name="slide-1">
<div class="slide-3">
<div class="intro-section">
<h2 class="heading">The End</h2>
</div>
</div>
<nav class="pagination">
<label for="slide-1" data-slide="1">Intro</label>
<label for="slide-2" data-slide="2">About Me</label>
<label for="slide-3" data-slide="3">The End</label>
</nav>
</div>
</body>
</html>