-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (133 loc) · 2.94 KB
/
index.html
File metadata and controls
153 lines (133 loc) · 2.94 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>memes</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
outline: 0;
box-sizing: border-box;
}
body {
font-family: helvetica;
font-weight: 300;
text-align: center;
}
.rapper {
margin: 0 auto;
width: 60vh;
display: flex;
flex-direction: column;
min-height: 100vh;
justify-content: center;
}
h1 {
margin: 10px 0;
font-weight: bold;
font-size: 6vmin;
}
.desktop h1 {
-webkit-text-stroke-width: 2px;
-webkit-text-stroke-color: black;
color: white;
}
.wrapper {
display: flex;
flex-direction: column;
align-content: center;
justify-content: center;
overflow: hidden;
padding: 10px;
border: 2px dashed;
background: white;
}
span {
border: none;
font-size: 5vmin;
padding-bottom: 10px;
text-align: left;
}
#image {
background-size: contain;
background-repeat: no-repeat;
background-position: top left;
height: 60vh;
width: 100%;
}
#image div {
position: relative;
width: 100%;
height: 100%;
}
input[type=file] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.buttons {
display: flex;
margin-bottom: 10px;
}
.buttons div {
border: 2px solid black;
padding: 10px;
margin-top: 10px;
font-weight: bold;
font-size: 24px;
flex: 1;
}
.desktop .buttons div:first-child {
border-right: 0;
}
.desktop .buttons div:hover {
background: black;
color: white;
cursor: pointer;
}
.mobile h1 {
display: none
}
.mobile .rapper {
width: 100%;
padding:10px;
}
.mobile .wrapper {
border: 0;
padding:0;
}
.mobile .buttons {
flex-direction: column;
}
</style>
</head>
<body>
<div class="rapper">
<div class="wrapper">
<span id="text" contenteditable="true">start typing a meme</span>
<div id="image" style="background-image: url(assets/img/x.svg);">
<div>
<input type="file">
</div>
</div>
</div>
<div class="buttons">
<div id="save">
Save
</div>
<div id="reset">
Reset
</div>
</div>
<footer>
©2018 OKFocus
</footer>
</div>
</body>
<script src="assets/app.concat.js"></script>
</html>