Skip to content

Commit

Permalink
Add error status watermark; #11
Browse files Browse the repository at this point in the history
  • Loading branch information
redoPop committed Nov 28, 2017
1 parent fd168c5 commit d6c3afc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/templates/status.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
<meta name=viewport content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles/global.css">
</head>
<body>
<body style="background:url(data:image/svg+xml;base64,{{base64 (concat '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0, 0, 100, 100" width="200" height="200"><text x="50" y="50" fill="#FCFCFC" font-family="sans-serif" font-size="25" font-weight="700" text-anchor="middle" transform="rotate(-45 50,50)">' code '</text></svg>')}})">

<div class="t">
<div class="t__c">
<div class="Notice">
<img src="/assets/{{image}}">

<h1>{{headline}} (<a href="https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#{{code}}">{{code}}</a>)</h1>
<h1>{{headline}}</h1>

{{{message}}}

{{#if (or
(eq code 404)
(eq code 410))}}
{{#if (eq code 404)}}
<form class="Search" action="https://www.ted.com/search" role="search">
<input class="Search__input" placeholder="Search TED.com&hellip;" name="q">
<input class="Search__button" type="submit" value="Go">
Expand Down

0 comments on commit d6c3afc

Please sign in to comment.