-
Notifications
You must be signed in to change notification settings - Fork 0
/
og-image.og.njk
54 lines (47 loc) · 1.72 KB
/
og-image.og.njk
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
<style>
.root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.title {
color: white;
font-size: 110px;
margin: auto 0;
position:relative;
z-index:2;padding: 0 .5em; padding-right:.2em;
text-align:left; padding-left: 40vw;
line-height:.9em;
}
</style>
<svg
style="background-color:#011529; color:#082E47; width: 100vw; height:100vh; position:absolute; z-index:-1; top:0; right:0; bottom:0; left:0;"
class="patbg"
viewBox="0 0 100 50"
preserveAspectRatio="xMinYMin slice" >
<defs>
<pattern id="pat1" width="10" height="9" patternUnits="userSpaceOnUse">
<path id="fp"
stroke="currentColor"
stroke-linecap="round"
d="M1 4H.999V1M1 1V.9959h2v.001M1 2.6v.001h1v.001" />
<use href="#fp" opacity=".6" transform="translate(0 9.5) scale(1 -1)" />
<use href="#fp" opacity=".6" transform="translate(10.5 0) scale(-1 1)" />
<use href="#fp" opacity=".4" transform="translate(10.5 9.5) scale(-1 -1)" />
</pattern>
</defs>
<g id="patg" transform="translate(-.2 -.2)">
<g transform="scale(2)"><path fill="url(#pat1)" d="M0 0h100v50H0z" />
<path fill="url(#pat1)" d="M-20 -20h140v90H0z" transform="translate(-5 -4.5)" />
</g></g>
<path transform="scale(9) translate(.015,.6)"
stroke="#7FFFD4"
stroke-linecap="round"
d="M1 4H.999V1M1 1V.9959h2v.001M1 2.6v.001h1v.001" />
</svg>
<div class="root">
<h1 class="title">{{ title }}</h1>
<p style="position:absolute; top: .9em; text-transform:uppercase; letter-spacing:.1em; right:2em; font-size: 30px; color:aquamarine;">AndyFitzsimon.com</p>
</div>