summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/web/views/info-card.pug
blob: 0a95ea7b173197f41bc0dff8a361b9e03adfc262 (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
doctype html

html

	head
		meta(charset='utf-8')
		meta(name='application-name' content='Sharkey')
		title= meta.name || host
		style.
			html, body {
				margin: 0;
				padding: 0;
				min-height: 100vh;
				background: #fff;
			}

			#a {
				display: block;
			}

			#banner {
				background-size: cover;
				background-position: center center;
			}

			#title {
				display: inline-block;
				margin: 24px;
				padding: 0.5em 0.8em;
				color: #fff;
				background: rgba(0, 0, 0, 0.5);
				font-weight: bold;
				font-size: 1.3em;
			}

			#content {
				overflow: auto;
				color: #353c3e;
			}

			#description {
				margin: 24px;
			}

	body
		a#a(href=url target="_blank")
			header#banner(style=`background-image: url(${meta.bannerUrl})`)
				div#title= meta.name || host
		div#content
			div#description!= meta.description