|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>CAP Alerting - Screenly Edge App</title> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | + <link rel="stylesheet" href="dist/css/style.css" /> |
| 8 | + </head> |
| 9 | + <body class="m-0 p-0 overflow-hidden"> |
| 10 | + <div id="app" class="w-full h-screen flex items-center justify-center"> |
| 11 | + <div id="alerts" class="w-full h-full flex flex-col"></div> |
| 12 | + </div> |
| 13 | + |
| 14 | + <!-- Alert Card Template --> |
| 15 | + <template id="alert-card-template"> |
| 16 | + <div |
| 17 | + class="alert-card w-full h-full bg-white flex flex-col overflow-y-auto" |
| 18 | + > |
| 19 | + <div id="status-banner-container"></div> |
| 20 | + <div id="header-row-container"></div> |
| 21 | + <h3 |
| 22 | + id="headline" |
| 23 | + class="font-extrabold leading-tight flex-shrink-0 headline-text text-gray-900 mx-[5vw] mb-[1.5vh]" |
| 24 | + ></h3> |
| 25 | + <p |
| 26 | + id="description" |
| 27 | + class="font-semibold leading-snug body-text text-gray-800 mx-[5vw] mb-[2vh]" |
| 28 | + ></p> |
| 29 | + <div id="instruction-container"></div> |
| 30 | + <div id="resources-container"></div> |
| 31 | + </div> |
| 32 | + </template> |
| 33 | + |
| 34 | + <!-- Status Banner Template --> |
| 35 | + <template id="status-banner-template"> |
| 36 | + <div |
| 37 | + class="w-full text-center font-black uppercase tracking-[0.15em] flex-shrink-0 status-stripe-pattern status-banner-text py-[2.5vh] px-[4vw] text-white" |
| 38 | + ></div> |
| 39 | + </template> |
| 40 | + |
| 41 | + <!-- Header Row Template --> |
| 42 | + <template id="header-row-template"> |
| 43 | + <div |
| 44 | + class="flex items-center justify-between gap-[2vw] mx-[5vw] mt-[2vh] mb-[1.5vh]" |
| 45 | + > |
| 46 | + <h2 |
| 47 | + class="text-red-600 font-black uppercase leading-none event-title-text" |
| 48 | + ></h2> |
| 49 | + <div |
| 50 | + class="severity-badge inline-block text-white rounded-xl font-black uppercase tracking-wider flex-shrink-0 severity-badge-text px-[4vw] py-[2vh]" |
| 51 | + ></div> |
| 52 | + </div> |
| 53 | + </template> |
| 54 | + |
| 55 | + <!-- Instruction Box Template --> |
| 56 | + <template id="instruction-box-template"> |
| 57 | + <div |
| 58 | + class="instruction-box rounded-xl flex-shrink-0 px-[4vw] py-[2.5vh] mx-[5vw] mb-[2vh]" |
| 59 | + ></div> |
| 60 | + </template> |
| 61 | + |
| 62 | + <!-- Instruction List Template --> |
| 63 | + <template id="instruction-list-template"> |
| 64 | + <ul class="instruction-text leading-snug text-gray-900"></ul> |
| 65 | + </template> |
| 66 | + |
| 67 | + <!-- Instruction List Item Template --> |
| 68 | + <template id="instruction-list-item-template"> |
| 69 | + <li class="mb-[1vh] flex items-start"> |
| 70 | + <span class="mr-[2vw] flex-shrink-0 font-black text-orange-600">•</span> |
| 71 | + <span class="flex-1 font-extrabold"></span> |
| 72 | + </li> |
| 73 | + </template> |
| 74 | + |
| 75 | + <!-- Instruction Paragraph Template --> |
| 76 | + <template id="instruction-paragraph-template"> |
| 77 | + <p |
| 78 | + class="instruction-text font-extrabold leading-snug whitespace-pre-line text-gray-900" |
| 79 | + ></p> |
| 80 | + </template> |
| 81 | + |
| 82 | + <!-- Image Resource Template --> |
| 83 | + <template id="image-resource-template"> |
| 84 | + <div class="mx-[5vw] my-[2vh]"> |
| 85 | + <img |
| 86 | + class="max-w-full max-h-[20vh] rounded-2xl object-contain shadow-lg" |
| 87 | + crossorigin="anonymous" |
| 88 | + /> |
| 89 | + </div> |
| 90 | + </template> |
| 91 | + |
| 92 | + <!-- NWS Forecast Content Template (with preamble) --> |
| 93 | + <template id="nws-forecast-template"> |
| 94 | + <div |
| 95 | + class="nws-content font-semibold leading-snug body-text text-gray-800 mx-[5vw] mb-[2vh]" |
| 96 | + > |
| 97 | + <p class="nws-preamble"></p> |
| 98 | + <ul class="nws-forecast-list"></ul> |
| 99 | + </div> |
| 100 | + </template> |
| 101 | + |
| 102 | + <!-- NWS Forecast List Item Template --> |
| 103 | + <template id="nws-forecast-item-template"> |
| 104 | + <li> |
| 105 | + <strong class="period-label"></strong> |
| 106 | + <span class="period-content"></span> |
| 107 | + </li> |
| 108 | + </template> |
| 109 | + |
| 110 | + <!-- NWS WWWI Content Template --> |
| 111 | + <template id="nws-wwwi-template"> |
| 112 | + <ul |
| 113 | + class="nws-wwwi-list font-semibold leading-snug body-text text-gray-800 mx-[5vw] mb-[2vh]" |
| 114 | + ></ul> |
| 115 | + </template> |
| 116 | + |
| 117 | + <!-- NWS WWWI List Item Template --> |
| 118 | + <template id="nws-wwwi-item-template"> |
| 119 | + <li> |
| 120 | + <strong class="wwwi-label"></strong> |
| 121 | + <span class="wwwi-content"></span> |
| 122 | + </li> |
| 123 | + </template> |
| 124 | + |
| 125 | + <script src="screenly.js?version=1"></script> |
| 126 | + <script src="dist/js/main.js"></script> |
| 127 | + </body> |
| 128 | +</html> |
0 commit comments