Skip to content

Commit f3fe187

Browse files
committed
Simplify OG image template to fix rendering
1 parent 1bf72cc commit f3fe187

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

assets/images/og-image-template.html

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
<!DOCTYPE html>
2-
<html style="margin: 0; padding: 0; width: 1200px; height: 630px; overflow: hidden;">
2+
<html>
33
<head>
44
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=1200, height=630">
56
<style>
67
* { margin: 0; padding: 0; box-sizing: border-box; }
7-
html {
8-
margin: 0 !important;
9-
padding: 0 !important;
10-
width: 1200px !important;
11-
height: 630px !important;
12-
overflow: hidden !important;
13-
background: #0D0D0D;
8+
html, body {
9+
width: 1200px;
10+
height: 630px;
11+
margin: 0;
12+
padding: 0;
1413
}
1514
body {
16-
margin: 0 !important;
17-
padding: 0 !important;
18-
width: 1200px !important;
19-
height: 630px !important;
2015
background: linear-gradient(145deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
2116
display: flex;
2217
align-items: center;
2318
justify-content: center;
2419
font-family: 'Inter', -apple-system, sans-serif;
2520
position: relative;
26-
overflow: hidden !important;
21+
overflow: hidden;
2722
}
2823
body::before {
2924
content: '';

assets/images/og-image.png

-66.7 KB
Loading

0 commit comments

Comments
 (0)