|
| 1 | +{{ define "main" }} |
| 2 | +{{/* Custom CSS for orange links without affecting images */}} |
| 3 | +<style> |
| 4 | +.supporting-nwb-page a { |
| 5 | + color: #d17128 !important; |
| 6 | + text-decoration: none !important; |
| 7 | +} |
| 8 | +.supporting-nwb-page a:hover { |
| 9 | + color: #d17128 !important; |
| 10 | + text-decoration: underline !important; |
| 11 | + text-underline-offset: 5px !important; |
| 12 | +} |
| 13 | +</style> |
| 14 | + |
| 15 | +{{/* Hero Section */}} |
| 16 | +{{ with .Params.hero_section }} |
| 17 | +{{ if .enable }} |
| 18 | +<section class="hero bg-main aboutSect d-flex justify-content-center align-items-center"> |
| 19 | + <div class="text-center"> |
| 20 | + <h1 class="inter-700 text-48 text-white mb-3">{{ .title | markdownify }}</h1> |
| 21 | + <p class="inter-500 text-20 text-white opacity-75">{{ .subtitle | markdownify }}</p> |
| 22 | + </div> |
| 23 | +</section> |
| 24 | +{{ end }} |
| 25 | +{{ end }} |
| 26 | +{{/* End Hero Section */}} |
| 27 | + |
| 28 | +<div class="supporting-nwb-page"> |
| 29 | + |
| 30 | +{{/* Urgency Section */}} |
| 31 | +{{ with .Params.urgency_section }} |
| 32 | +{{ if .enable }} |
| 33 | +<section class="section-reduced-more"> |
| 34 | + <div class="container-lg"> |
| 35 | + <div class="alert alert-warning border-0 p-4 rounded-4 text-center"> |
| 36 | + <div class="row align-items-center"> |
| 37 | + <div class="col-lg-2 text-center mb-3 mb-lg-0"> |
| 38 | + <i class="fas fa-exclamation-triangle fa-3x text-warning"></i> |
| 39 | + </div> |
| 40 | + <div class="col-lg-10"> |
| 41 | + <h2 class="inter-700 text-32 mb-3">{{ .title | markdownify }}</h2> |
| 42 | + <p class="inter-400 text-18 mb-0">{{ .content | markdownify }}</p> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | +</section> |
| 48 | +{{ end }} |
| 49 | +{{ end }} |
| 50 | +{{/* End Urgency Section */}} |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +{{/* Action Section */}} |
| 55 | +{{ with .Params.action_section }} |
| 56 | +{{ if .enable }} |
| 57 | +<section class="section-reduced-more"> |
| 58 | + <div class="container-lg"> |
| 59 | + <div class="text-center mb-5"> |
| 60 | + <h2 class="inter-700 text-40 dark-900 mb-4">{{ .title | markdownify }}</h2> |
| 61 | + </div> |
| 62 | + <div class="row g-4 justify-content-center mb-5"> |
| 63 | + {{ range .actions }} |
| 64 | + <div class="col-12 col-md-6"> |
| 65 | + <div class="bg-light p-4 rounded-4 text-center h-100"> |
| 66 | + <img src="{{ .icon }}" alt="" width="64" class="mb-3"> |
| 67 | + <h3 class="inter-600 text-24 dark-900 mb-3">{{ .title | markdownify }}</h3> |
| 68 | + <p class="inter-400 text-16 dark-700 mb-0">{{ .description | markdownify }}</p> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + {{ end }} |
| 72 | + </div> |
| 73 | + </div> |
| 74 | +</section> |
| 75 | +{{ end }} |
| 76 | +{{ end }} |
| 77 | +{{/* End Action Section */}} |
| 78 | + |
| 79 | +{{/* Impact Section */}} |
| 80 | +{{ with .Params.impact_section }} |
| 81 | +{{ if .enable }} |
| 82 | +<section class="section-reduced bg-light"> |
| 83 | + <div class="container-lg"> |
| 84 | + <div class="text-center mb-5"> |
| 85 | + <h2 class="inter-700 text-40 dark-900 mb-4">{{ .title | markdownify }}</h2> |
| 86 | + <p class="inter-400 text-18 dark-700 col-lg-8 mx-auto">{{ .subtitle | markdownify }}</p> |
| 87 | + </div> |
| 88 | + <div class="row g-4 justify-content-center mb-5"> |
| 89 | + {{ range .stats }} |
| 90 | + <div class="col-12 col-md-6 col-lg-4"> |
| 91 | + <div class="bg-white p-4 rounded-4 text-center h-100 shadow-sm d-flex flex-column justify-content-between"> |
| 92 | + <div> |
| 93 | + <img src="{{ .icon }}" alt="" width="48" class="mb-3"> |
| 94 | + <h3 class="inter-700 text-32 text-main mb-2">{{ .number }}</h3> |
| 95 | + <h4 class="inter-600 text-20 dark-900 mb-2">{{ .label }}</h4> |
| 96 | + <div class="text-center mb-3"> |
| 97 | + <img src="{{ .additional_image }}" alt="" class="img-fluid rounded-4"> |
| 98 | + </div> |
| 99 | + <p class="inter-400 text-16 dark-700 mb-0">{{ .description | markdownify }}</p> |
| 100 | + </div> |
| 101 | + </div> |
| 102 | + </div> |
| 103 | + {{ end }} |
| 104 | + </div> |
| 105 | + |
| 106 | + <div class="text-center mb-5"> |
| 107 | + <p class="inter-400 text-18 dark-700 col-lg-8 mx-auto">{{ .transition_text | markdownify }}</p> |
| 108 | + </div> |
| 109 | + |
| 110 | + <div class="row g-4 justify-content-center"> |
| 111 | + {{ range .metrics }} |
| 112 | + <div class="col-12 col-md-6 col-lg-4"> |
| 113 | + <div class="bg-white p-4 rounded-4 text-center h-100 shadow-sm"> |
| 114 | + <img src="{{ .icon }}" alt="" width="48" class="mb-3"> |
| 115 | + <h3 class="inter-700 text-32 text-second mb-2">{{ .number }}</h3> |
| 116 | + <h4 class="inter-600 text-20 dark-900 mb-2">{{ .label }}</h4> |
| 117 | + <div class="text-center mb-3"> |
| 118 | + <img src="{{ .additional_image }}" alt="" class="img-fluid rounded-4"> |
| 119 | + </div> |
| 120 | + <p class="inter-400 text-16 dark-700 mb-0">{{ .description | markdownify }}</p> |
| 121 | + </div> |
| 122 | + </div> |
| 123 | + {{ end }} |
| 124 | + </div> |
| 125 | + |
| 126 | + |
| 127 | + {{/* Research Activities Subsection */}} |
| 128 | + {{ with .research_activities }} |
| 129 | + <div class="mb-5 mt-5 text-center"> |
| 130 | + <h3 class="inter-600 text-28 dark-900 mb-3">{{ .title | markdownify }}</h3> |
| 131 | + <p class="inter-400 text-18 dark-700 mb-4 col-lg-10 mx-auto">{{ .content | markdownify }}</p> |
| 132 | + <div class="row g-3"> |
| 133 | + {{ range .activities }} |
| 134 | + <div class="col-12 col-md-6 col-lg-4"> |
| 135 | + <div class="bg-white p-3 rounded-3 shadow-sm h-100 d-flex align-items-center"> |
| 136 | + {{ if .image }} |
| 137 | + <img src="{{ .image }}" alt="{{ .name }}" width="40" height="40" class="me-3 flex-shrink-0"> |
| 138 | + {{ else }} |
| 139 | + <div class="bg-main rounded-circle d-flex align-items-center justify-content-center me-3 flex-shrink-0" style="width: 40px; height: 40px;"> |
| 140 | + <i class="fas fa-brain text-white"></i> |
| 141 | + </div> |
| 142 | + {{ end }} |
| 143 | + <span class="inter-500 text-14 dark-900">{{ .name | markdownify }}</span> |
| 144 | + </div> |
| 145 | + </div> |
| 146 | + {{ end }} |
| 147 | + </div> |
| 148 | + </div> |
| 149 | + {{ end }} |
| 150 | + |
| 151 | + {{/* Data Reuse Section */}} |
| 152 | + {{ with .data_reuse_section }} |
| 153 | + <div class="mb-5 text-center"> |
| 154 | + <h3 class="inter-600 text-28 dark-900 mb-3">{{ .title | markdownify }}</h3> |
| 155 | + <div class="bg-white p-4 rounded-4 shadow-sm"> |
| 156 | + <div class="row align-items-center"> |
| 157 | + <div class="col-lg-6"> |
| 158 | + <p class="inter-400 text-18 dark-700">{{ .content | markdownify }}</p> |
| 159 | + </div> |
| 160 | + <div class="col-lg-6 text-center"> |
| 161 | + <video class="img-fluid rounded-4" autoplay muted loop playsinline> |
| 162 | + <source src="{{ .image }}" type="video/mp4"> |
| 163 | + Your browser does not support the video tag. |
| 164 | + </video> |
| 165 | + </div> |
| 166 | + </div> |
| 167 | + </div> |
| 168 | + </div> |
| 169 | + {{ end }} |
| 170 | + |
| 171 | + |
| 172 | + {{/* AI and Future Subsection */}} |
| 173 | + {{ with .ai_future }} |
| 174 | + <div class="mb-4 text-center"> |
| 175 | + <h3 class="inter-600 text-28 dark-900 mb-3">{{ .title | markdownify }}</h3> |
| 176 | + <p class="inter-400 text-18 dark-700 col-lg-10 mx-auto">{{ .content | markdownify }}</p> |
| 177 | + </div> |
| 178 | + {{ end }} |
| 179 | + </div> |
| 180 | +</section> |
| 181 | +{{ end }} |
| 182 | +{{ end }} |
| 183 | +{{/* End Impact Section */}} |
| 184 | +</div> |
| 185 | + |
| 186 | +{{ end }} |
0 commit comments