-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34bbaf8
commit 3cc258a
Showing
8 changed files
with
175 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,113 @@ | ||
html { | ||
padding: 3em 1em; | ||
margin: auto; | ||
line-height: 1.75; | ||
font-size: 1.25em; | ||
/* Box sizing rules */ | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Remove default margin */ | ||
body, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
p, | ||
figure, | ||
blockquote, | ||
dl, | ||
dd { | ||
margin: 0; | ||
} | ||
|
||
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ | ||
ul[role='list'], | ||
ol[role='list'] { | ||
list-style: none; | ||
} | ||
|
||
/* Set core root defaults */ | ||
html:focus-within { | ||
scroll-behavior: smooth; | ||
} | ||
|
||
/* Set core body defaults */ | ||
body { | ||
min-height: 100vh; | ||
text-rendering: optimizeSpeed; | ||
line-height: 1.5; | ||
} | ||
|
||
/* A elements that don't have a class get default styles */ | ||
a:not([class]) { | ||
text-decoration-skip-ink: auto; | ||
} | ||
|
||
/* Make images easier to work with */ | ||
img, | ||
picture { | ||
max-width: 100%; | ||
display: block; | ||
} | ||
|
||
/* Inherit fonts for inputs and buttons */ | ||
input, | ||
button, | ||
textarea, | ||
select { | ||
font: inherit; | ||
} | ||
|
||
h1,h2,h3,h4,h5,h6 { | ||
margin: 3em 0 1em; | ||
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ | ||
@media (prefers-reduced-motion: reduce) { | ||
html:focus-within { | ||
scroll-behavior: auto; | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
animation-duration: 0.01ms !important; | ||
animation-iteration-count: 1 !important; | ||
transition-duration: 0.01ms !important; | ||
scroll-behavior: auto !important; | ||
} | ||
} | ||
|
||
p,ul,ol { | ||
margin-bottom: 2em; | ||
color: #1d1d1d; | ||
h1 { | ||
margin-top: 1.5em; | ||
} | ||
|
||
h2 { | ||
margin-top: 1em; | ||
} | ||
|
||
h3 { | ||
margin-top: 1em; | ||
} | ||
|
||
html { | ||
padding: 1em 3em; | ||
font-family: sans-serif; | ||
} | ||
|
||
dt, dd { | ||
div.request { | ||
margin-top: 1em; | ||
} | ||
|
||
#request-line dd, dt { | ||
display: inline; | ||
} | ||
|
||
#request-line dt { | ||
font-weight: bold; | ||
margin-right: .5em; | ||
} | ||
|
||
#request-line dd { | ||
margin-right: 1.5em; | ||
} | ||
|
||
.request { | ||
border: 1px solid black; | ||
padding: 1em | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
{{define "request"}} | ||
<div class="request"> | ||
<div class="request-line"> | ||
<div id="request-line"> | ||
<dl> | ||
<dt>Method:</dt> <dd>{{.Method}}</dd> | ||
<dt>Host:</dt> <dd>{{.Host}}</dd> | ||
<dt>Path:</dt> <dd>{{.Path}}</dd> | ||
<dt>Method:</dt> | ||
<dd>{{.Method}}</dd> | ||
<dt>Host:</dt> | ||
<dd>{{.Host}}</dd> | ||
<dt>Path:</dt> | ||
<dd>{{.Path}}</dd> | ||
<dt>Timestamp:</dt> | ||
<dd>{{.Timestamp}}</dd> | ||
</dl> | ||
</div> | ||
<div> | ||
<strong>Query Params:</strong> | ||
<dl> | ||
</div> | ||
<div id="query-params"> | ||
<h3>Query Params:</h3> | ||
<dl> | ||
{{range $key, $val := .Params}} | ||
<strong> {{ $key }} </strong>: | ||
{{range $val}} | ||
{{ . }}, | ||
{{end}} | ||
<dt> {{ $key }} </dt> | ||
<dd>{{range $val}}</dd> | ||
{{ . }} {{end}} | ||
{{else}} | ||
None | ||
{{end}} | ||
</dl> | ||
<div>Request Made At: {{.Timestamp}}</div> | ||
</dl> | ||
</div> | ||
<h3>Raw Request:</h3> | ||
<pre>{{.Raw}}</pre> | ||
</div> | ||
{{end}} |