Skip to content

Commit 08d0a2d

Browse files
committed
add status page and embed Datadog dashboard; enhance styles for status embed
1 parent 02af105 commit 08d0a2d

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

docs/index.ptree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
index.html
44
manifesto.html
5+
status.html

docs/pollen.rkt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@
4545
(h3 (a ((href ,url)) ,name))
4646
(p ((class "project-desc")) ,@description)
4747
(p ((class "project-status")) (span ((class "pink")) "Status: ") (em ,status) " · Written in " (a ((href ,lang-url)) ,lang))))
48+
49+
;; Datadog dashboard embed
50+
(define (datadog-embed src)
51+
`(div ((class "status-embed"))
52+
(iframe ((src ,src)
53+
(title "Brickell Research status dashboard")
54+
(loading "lazy")))))

docs/status.html.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#lang pollen
2+
3+
◊(define-meta title "Status")
4+
5+
◊h2{System Status}
6+
7+
◊cyan{We dogfood ◊link["https://caffeine-lang.run/"]{Caffeine} on our own infrastructure. The dashboard below is rendered from SLO definitions written in Caffeine and shipped to Datadog.}
8+
9+
◊datadog-embed["https://p.datadoghq.com/sb/embed/5132f4c8-409d-11ee-9683-da7ad0900002-679fca999eae93e17c4c020056700d2e"]

docs/styles.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,29 @@ li { margin-bottom: 0.8em; }
8484
.project-status em { color: #00CED1; }
8585

8686

87+
.status-embed {
88+
position: relative;
89+
left: 50%;
90+
transform: translateX(-50%);
91+
width: min(calc(100vw - 2rem), 900px);
92+
margin: 1.5rem 0;
93+
border: 1px solid #1a1a2e;
94+
border-radius: 8px;
95+
overflow: hidden;
96+
background: #0a0a14;
97+
}
98+
99+
.status-embed iframe {
100+
display: block;
101+
width: 100%;
102+
height: 800px;
103+
border: 0;
104+
}
105+
106+
@media (max-width: 600px) {
107+
.status-embed iframe { height: 600px; }
108+
}
109+
87110
.manifesto-comment {
88111
font-family: 'JetBrains Mono', monospace;
89112
font-size: 0.85em;

0 commit comments

Comments
 (0)