Simple attempt at a social image
This commit is contained in:
parent
529c866547
commit
4b7b964445
2 changed files with 30 additions and 0 deletions
8
src/social-image/index.html
Normal file
8
src/social-image/index.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<img src="./index.svg" />
|
||||
</body>
|
||||
</html>
|
22
src/social-image/index.svg
Normal file
22
src/social-image/index.svg
Normal file
|
@ -0,0 +1,22 @@
|
|||
<svg width="1280" height="720" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
.info-box {
|
||||
fill: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.title {
|
||||
white-space: break-spaces;
|
||||
fill: white;
|
||||
font-size: 56px;
|
||||
text-anchor: start;
|
||||
dominant-baseline: text-after-edge;
|
||||
}
|
||||
</style>
|
||||
<image
|
||||
href="https://images.unsplash.com/photo-1500462918059-b1a0cb512f1d?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
|
||||
width="1280"
|
||||
height="720"
|
||||
preserveAspectRatio="xMidYMid slice"
|
||||
/>
|
||||
<rect y="360" width="1280" height="360" class="info-box"/>
|
||||
<text y="540" class="title"><tspan x="20">The very long title which</tspan><tspan x="20" dy="56">is too long to fit.</tspan></text>
|
||||
</svg>
|
After Width: | Height: | Size: 793 B |
Loading…
Reference in a new issue