-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
148 lines (128 loc) Β· 3.61 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
<!DOCTYPE html>
<html>
<head>
<!-- HTML Meta Tags -->
<title>eBTC - stETH Backed Bitcoin Loans</title>
<meta name="description" content="π£ 110% Collateralization | π£ 0% Fees | π£11X leverage
">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://jsfiddle.net/1234a1234/8t45wbzv/1/show">
<meta property="og:type" content="website">
<meta property="og:title" content="eBTC - stETH Backed Bitcoin Loans">
<meta property="og:description" content="π£ 110% Collateralization | π£ 0% Fees | π£11X leverage
">
<meta property="og:image" content="https://i.imgur.com/VlMJPAf.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="jsfiddle.net">
<meta property="twitter:url" content="https://jsfiddle.net/1234a1234/8t45wbzv/1/show">
<meta name="twitter:title" content="eBTC - stETH Backed Bitcoin Loans">
<meta name="twitter:description" content="π£ 110% Collateralization | π£ 0% Fees | π£11X leverage
">
<meta name="twitter:image" content="https://i.imgur.com/VlMJPAf.png">
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
<title>Image with Sunglasses</title>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<script src="https://unpkg.com/fabric@5.3.0/dist/fabric.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h3 class="HeroSection_titleHero__Z9qfp" style="text-align: center;">Take the <span style="color: purple;">Purple Pill</span></h3>
<div class="container">
<h1>Upload an image</h1>
<input id="imageUpload" type="file"/>
<canvas height="500" id="canvas" width="500"></canvas>
<button id="downloadBtn" style="
font-family: Open Sans, sans-serif;
font-size: 1.5rem;
margin-top: 30px;
background: linear-gradient(218deg, rgba(194,71,252,0), #c247fc), rgba(194,71,252,.3);
">Download</button>
</div>
<script type="text/javascript">
// Initialize Fabric.js canvas
// ... existing JavaScript code ...
</script>
<style type="text/css">
/* Reset some default browser styles */
body, h1, h2, h3, h4, p, ul, li {
margin: 0;
padding: 0;
}
/* Make a background color for the whole page */
body {
background-color: #121212;
font-family: Arial, sans-serif;
color: white;
margin: 0;
padding: 0;
}
/* Add some padding and center-align text in headings */
h1 {
padding: 20px;
text-align: center;
color: #e44dff;
}
/* Style the canvas container */
#canvas {
border: 3px solid #e44dff;
margin-top: 20px;
}
/* Style the file input and button */
input[type="file"],
button {
display: block;
margin: 20px auto;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
background-color: #e44dff;
border: none;
color: white;
border-radius: 5px;
}
/* Add a hover effect for the button */
input[type="file"]:hover,
button:hover {
background-color: #ff80ff;
}
/* Style the download button */
#downloadBtn {
display: block;
margin: 20px auto;
padding: 10px 20px;
background-color: #e44dff;
color: white;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
}
/* Hover effect for the download button */
#downloadBtn:hover {
background-color: #ff80ff;
}
.HeroSection_titleHero__Z9qfp {
margin-top: 100px;
}
/* Center the canvas and other elements */
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
@media only screen and (max-width: 600px) {
#canvas {
max-width: 100%;
height: auto;
}
.container {
width: 100%;
padding: 0 15px;
box-sizing: border-box;
}
}
</style>
</body>
</html>