-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeature_graphic.html
More file actions
244 lines (242 loc) · 7.83 KB
/
feature_graphic.html
File metadata and controls
244 lines (242 loc) · 7.83 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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1024">
<title>Note Keeper - Feature Graphic</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f5f5f5;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.toolbar {
background: white;
padding: 15px 30px;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 20px;
}
.toolbar h2 {
font-size: 18px;
color: #333;
}
.toolbar span {
color: #666;
font-size: 14px;
}
.download-btn {
background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: transform 0.2s, box-shadow 0.2s;
}
.download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(255, 159, 67, 0.4);
}
.download-btn svg {
width: 20px;
height: 20px;
fill: white;
}
.graphic-wrapper {
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
border-radius: 8px;
overflow: hidden;
}
.container {
width: 1024px;
height: 500px;
background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 50%, #FFD93D 100%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 80px;
position: relative;
overflow: hidden;
}
.content {
z-index: 2;
max-width: 500px;
}
h1 {
font-size: 64px;
color: white;
margin-bottom: 20px;
text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}
.tagline {
font-size: 28px;
color: rgba(255,255,255,0.95);
line-height: 1.4;
}
.phone-mockup {
width: 220px;
height: 440px;
background: #1a1a2e;
border-radius: 35px;
padding: 12px;
box-shadow: 0 30px 60px rgba(0,0,0,0.3);
transform: rotate(5deg);
z-index: 2;
}
.phone-screen {
width: 100%;
height: 100%;
background: white;
border-radius: 25px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.phone-header {
background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
padding: 15px;
color: white;
font-size: 16px;
font-weight: 600;
}
.phone-content {
padding: 10px;
flex: 1;
}
.note-card {
background: #FFF8E7;
border-radius: 10px;
padding: 12px;
margin-bottom: 8px;
border-left: 4px solid #FF9F43;
}
.note-title {
font-size: 12px;
font-weight: 600;
color: #2D3436;
margin-bottom: 4px;
}
.note-text {
font-size: 10px;
color: #636E72;
}
.bg-circles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.circle {
position: absolute;
border-radius: 50%;
background: rgba(255,255,255,0.1);
}
.circle1 { width: 300px; height: 300px; top: -100px; right: 200px; }
.circle2 { width: 200px; height: 200px; bottom: -50px; left: 100px; }
.circle3 { width: 150px; height: 150px; top: 50px; left: -50px; }
.icon {
width: 80px;
height: 80px;
background: white;
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 25px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.icon svg {
width: 45px;
height: 45px;
fill: #FF9F43;
}
</style>
</head>
<body>
<div class="toolbar">
<h2>Note Keeper Feature Graphic</h2>
<span>1024 x 500 px (Google Play Console)</span>
<button class="download-btn" onclick="downloadGraphic()">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>
Download PNG
</button>
</div>
<div class="graphic-wrapper">
<div class="container" id="graphic">
<div class="bg-circles">
<div class="circle circle1"></div>
<div class="circle circle2"></div>
<div class="circle circle3"></div>
</div>
<div class="content">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>
</div>
<h1>Note Keeper</h1>
<p class="tagline">Capture your thoughts instantly. Beautiful, simple, and private.</p>
</div>
<div class="phone-mockup">
<div class="phone-screen">
<div class="phone-header">My Notes</div>
<div class="phone-content">
<div class="note-card">
<div class="note-title">Shopping List</div>
<div class="note-text">Milk, bread, eggs, butter...</div>
</div>
<div class="note-card">
<div class="note-title">Meeting Notes</div>
<div class="note-text">Discuss project timeline...</div>
</div>
<div class="note-card">
<div class="note-title">Ideas</div>
<div class="note-text">New app feature concepts...</div>
</div>
<div class="note-card">
<div class="note-title">Travel Plans</div>
<div class="note-text">Book flights, hotels...</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function downloadGraphic() {
const element = document.getElementById('graphic');
html2canvas(element, {
width: 1024,
height: 500,
scale: 1,
useCORS: true,
backgroundColor: null
}).then(canvas => {
const link = document.createElement('a');
link.download = 'note_keeper_feature_graphic_1024x500.png';
link.href = canvas.toDataURL('image/png');
link.click();
});
}
</script>
</body>
</html>