summaryrefslogtreecommitdiffstats
path: root/docs/theme/SocialCard.jinja
blob: 2fe00be439bedf388cf4067453e06e33d62f9319 (plain)
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
{#def page #}
<Layout
  title={{ page.title }}
  description={{page.description }}
>
  <style>
    body {
      background-color: black;
    }
    .sc1 {
      width: 1200px;
      height: 630px;
      margin: 0;
      font-family: SF Pro Display, system-ui, sans-serif;
      color: white;
      background-image: linear-gradient(to bottom, #404faa, #0068b2);
    }
    .sc1__wrapper {
      position: absolute;
      inset: 60px 90px 90px 60px;
    }
    .sc1__wrapper > * {
      position: absolute;
      left: 0;
      max-width: 1060px;
    }
    .sc1__logo {
      top: 0;
      height: 50px;
    }
    .sc1__section {
      top: 150px;
      line-height: 1;
      font-weight: bold;
      text-transform: uppercase;
      font-size: 22px;
      width: 600px;
    }
    .sc1__title {
      top: 180px;
      line-height: 1;
      font-weight: bold;
      font-size: 68px;
    }
    .sc1__description {
      bottom: 0;
      line-height: 1.4;
      font-weight: normal;
      font-size: 22px;
    }
  </style>

  <article class="sc1">
    <div class="sc1__wrapper">
      <img class="sc1__logo" src="/static/img/jinjax-logo-w.png" />
      <h2 class="sc1__section">{{ page.section }}</h2>
      <h1 class="sc1__title">{{ page.title | utils.widont }}</h1>
      <div class="sc1__description">{{ page.description | utils.widont }}</div>
    </div>
  </article>
</Layout>