|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + |
| 4 | +<head> |
| 5 | + <meta charset="utf-8" /> |
| 6 | + <link rel="icon" href="/favicon.png" /> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 8 | + <title>{{profile.display_name}}</title> |
| 9 | + <link rel="canonical" href="{{handle}}" /> |
| 10 | + |
| 11 | + <style> |
| 12 | + /* Comment out Google Fonts from Google CDN to prevent tracking. */ |
| 13 | + @import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Lora:ital@0;1&display=swap'); |
| 14 | +
|
| 15 | + body { |
| 16 | + --body: Lora, Cambria, Cochin, Times, sans-serif; |
| 17 | + --head: 'Libre Caslon Display', Georgia, 'Times New Roman' Times, serif; |
| 18 | + color-scheme: dark light; |
| 19 | + background-color: black white; |
| 20 | + text-rendering: optimizeLegibility; |
| 21 | + } |
| 22 | + |
| 23 | + * { margin: 0;} |
| 24 | + main { |
| 25 | + height: 100%; |
| 26 | + min-height: 100dvh; |
| 27 | + padding-inline: 2rem; |
| 28 | + font-weight: normal; |
| 29 | + font-family: var(--body); |
| 30 | + } |
| 31 | + h1,h2 { |
| 32 | + font-family: var(--head); |
| 33 | + font-size: 1.125em; |
| 34 | + font-weight: 400; |
| 35 | + } |
| 36 | + ul {padding:0;} |
| 37 | + section { padding-block-end: 1rem;} |
| 38 | + li { |
| 39 | + list-style-type: none; |
| 40 | + display:flex; |
| 41 | + } |
| 42 | + a, p { |
| 43 | + max-width: 45ch; |
| 44 | + hypens: auto; |
| 45 | + text-wrap: pretty; |
| 46 | + } |
| 47 | + a { |
| 48 | + color: inherit; |
| 49 | + text-decoration: none; |
| 50 | + flex-grow: 2; |
| 51 | + transition: text-decoration 200ms ease-in-out; |
| 52 | + &:hover { |
| 53 | + text-decoration: underline; |
| 54 | + }} |
| 55 | + section:first-child { |
| 56 | + padding-block-start: 4rem; |
| 57 | + div{ |
| 58 | + display: flex; |
| 59 | + align-items: stretch; |
| 60 | + gap: .25rem; |
| 61 | + } |
| 62 | + figure { |
| 63 | + display:flex; |
| 64 | + align-items: end; |
| 65 | + margin: 0; |
| 66 | + } |
| 67 | + figure, img { |
| 68 | + width: 100%; |
| 69 | + max-width: 1.125rem; |
| 70 | + } |
| 71 | + h1 { |
| 72 | + line-height: 100%; |
| 73 | + } |
| 74 | + } |
| 75 | + .prof { |
| 76 | + text-align: center; |
| 77 | + p, a {margin-inline: auto;} |
| 78 | + section>div{ |
| 79 | + justify-content: center; |
| 80 | + } |
| 81 | + } |
| 82 | + .cozy { |
| 83 | + background-color: #E4DFD2; |
| 84 | + color: #32281B; |
| 85 | + } |
| 86 | + .oled { |
| 87 | + background-color: oklch(0 0 0); |
| 88 | + color: oklch(.9 0 0); |
| 89 | + } |
| 90 | + .dark { |
| 91 | + background-color: oklch(.26 0 0); |
| 92 | + color: oklch(.85 0 0); |
| 93 | + } |
| 94 | + .brut { |
| 95 | + --body: Inter, "San Francisco", Calibri, "Gill Sans", |
| 96 | + Oxygen, Ubuntu, system-ui, -apple-system, Roboto, |
| 97 | + sans-serif; |
| 98 | + --head: var(--body); |
| 99 | + section { |
| 100 | + h1, h2 { |
| 101 | + font-size: 1rem; |
| 102 | + font-weight: 400; |
| 103 | + opcaticy: .9; |
| 104 | + } |
| 105 | + p, a { |
| 106 | + color: oklch(.4 0 0); |
| 107 | + font-weight: 360; |
| 108 | + transition: opacity 300ms ease-in; |
| 109 | + &:hover { |
| 110 | + opacity: 1; |
| 111 | + } |
| 112 | + } |
| 113 | + } |
| 114 | + } |
| 115 | + |
| 116 | + </style> |
| 117 | +</head> |
| 118 | + |
| 119 | +<!-- Add a class to change the style [cozy, prof, brut, oled, dark] --> |
| 120 | +<body class="cozy brut"> |
| 121 | + <main> |
| 122 | + <section> |
| 123 | + <div> |
| 124 | + <figure class="avatar-figure"> |
| 125 | + <img class="avatar" src="/avatar" alt="{{display_name}} avatar" /> |
| 126 | + </figure> |
| 127 | + <h1>{{display_name}}</h1> |
| 128 | + </div> |
| 129 | + {% if bio %} |
| 130 | + <div> {{bio | markdown}} </div> |
| 131 | + {% endif %} |
| 132 | + </section> |
| 133 | + |
| 134 | + {% if social_links %} |
| 135 | + <section> |
| 136 | + <h2>Contact</h2> |
| 137 | + <ul class="contact"> |
| 138 | + {% for link in social_links %} |
| 139 | + <li><a rel="me" title="{{link.label}}" href="{{link.url}}" target="_blank" class="link"> |
| 140 | + {{link.platform_name}} |
| 141 | + </a></li> |
| 142 | + {% endfor %} |
| 143 | + </ul> |
| 144 | + </section> |
| 145 | + {% endif %} |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + {% if tags %} |
| 150 | + <section> |
| 151 | + <h2>Tags</h2> |
| 152 | + <ul class="tags"> |
| 153 | + {% for tag in tags %} |
| 154 | + <li><a href="{{instance_info.url}}/people#{{tag}}" target="_blank" class="tag"> |
| 155 | + {{tag}} |
| 156 | + </a></li> |
| 157 | + {% endfor %} |
| 158 | + </ul> |
| 159 | + </section> |
| 160 | + {% endif %} |
| 161 | + |
| 162 | + {% if links %} |
| 163 | + <section class="links"> |
| 164 | + <h2>Links</h2> |
| 165 | + <ul> |
| 166 | + {% for link in links %} |
| 167 | + <li><a rel="me" href="{{link.url}}" target="_blank" class="link"> |
| 168 | + {{link.label or link.url}} |
| 169 | + </a></li> |
| 170 | + {% endfor %} |
| 171 | + </ul> |
| 172 | + </section> |
| 173 | + {% endif %} |
| 174 | + |
| 175 | + |
| 176 | + {% if pages %} |
| 177 | + <section class="links"> |
| 178 | + <h2>Pages</h2> |
| 179 | + <ul> |
| 180 | + {% for page in pages %} |
| 181 | + <li><a href="/{{page.slug}}" class="link"> |
| 182 | + {{page.name or page.slug}} |
| 183 | + </a></li> |
| 184 | + {% endfor %} |
| 185 | + </ul> |
| 186 | + </section> |
| 187 | + {% endif %} |
| 188 | + </main> |
| 189 | +</body> |
| 190 | + |
| 191 | +</html> |
0 commit comments