|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + {{ partial "head" . }} |
| 5 | + </head> |
| 6 | + |
| 7 | + <body> |
| 8 | + <header> |
| 9 | + {{ partial "header" . }} |
| 10 | + </header> |
| 11 | + <div id="wrapper"> |
| 12 | + <div id="content"> |
| 13 | + <div id="page-content"> |
| 14 | + <h1>{{ .Title }}</h1> |
| 15 | + <article class="post"> |
| 16 | + {{ if .Params.sections }} |
| 17 | + {{ $sections := index .Params.sections 0 }} |
| 18 | + <div class="post-content" id="media-kit-content"> |
| 19 | + {{ if or .Params.primarylogos .Params.packageicons }} |
| 20 | + <h2 id="primary-logos">Primary Logos</h2> |
| 21 | + <br />{{ $sections.primary_logos | markdownify }} |
| 22 | + {{ if .Params.primarylogos }} |
| 23 | + <div id="logos-list"> |
| 24 | + {{ $primarylogos := .Params.primarylogos }} |
| 25 | + {{ range $i, $e := $primarylogos }} |
| 26 | + <div |
| 27 | + class="logo-section" |
| 28 | + style="--hover-color: var(--{{ .name | lower }}-color);" |
| 29 | + id="{{ .name | lower }}-tile" |
| 30 | + > |
| 31 | + <div class="logo-img"> |
| 32 | + <img src="{{ .img }}" /> |
| 33 | + </div> |
| 34 | + <div class="logo-info"> |
| 35 | + <div class="logo-tile"> |
| 36 | + <div class="logo-text"> |
| 37 | + <span class="logo-name">{{ .name }}</span> |
| 38 | + <span class="logo-details">{{ .details | markdownify }}</span> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + <div class="logo-links"> |
| 42 | + {{ range $k, $v := $e.links }} |
| 43 | + <a href="{{ $v.url }}" target="_blank">{{ $v.text }}</a> |
| 44 | + {{ end }} |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + {{ end }} |
| 49 | + </div> |
| 50 | + {{ end }} |
| 51 | + <h2 id="logo-guidelines">Logo Usage Guidelines</h2> |
| 52 | + <br />{{ $sections.logo_guidelines | markdownify }} |
| 53 | + <div class="guidelines-container"> |
| 54 | + <div class="do-section"> |
| 55 | + <h3>Do's</h3> |
| 56 | + {{ $sections.do_guidelines | markdownify }} |
| 57 | + </div> |
| 58 | + <div class="dont-section"> |
| 59 | + <h3>Don'ts</h3> |
| 60 | + {{ $sections.dont_guidelines | markdownify }} |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <h2 id="logo-examples">Logo in Action</h2> |
| 64 | + <div class="logo-examples-gallery"> |
| 65 | + <div class="example-item"> |
| 66 | + <div class="example-image"> |
| 67 | + <img |
| 68 | + src="../img/logo/scverse-bridge-sketch.png" |
| 69 | + alt="scverse logo - Golden Gate Bridge example" |
| 70 | + /> |
| 71 | + </div> |
| 72 | + <div class="example-caption"> |
| 73 | + <strong>Conference Branding</strong> - scverse conference in the Bay Area in 2025 |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + <div class="example-item"> |
| 77 | + <div class="example-image"> |
| 78 | + <img src="../img/logo/scverse-lettering.png" alt="scverse lettering (no logo)" /> |
| 79 | + </div> |
| 80 | + <div class="example-caption"> |
| 81 | + <strong>Conference Branding</strong> - scverse lettering for the 2025 conference (no icon) |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + <div class="example-item"> |
| 85 | + <div class="example-image"> |
| 86 | + <img src="../img/logo/scverse-munich.png" alt="scverse logo - Munich example" /> |
| 87 | + </div> |
| 88 | + <div class="example-caption"> |
| 89 | + <strong>Conference Branding</strong> - scverse conference in Munich in 2024 |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + <div class="example-item"> |
| 93 | + <div class="example-image"> |
| 94 | + <img src="../img/logo/scverse-slide.png" alt="scverse logo - Example slide" /> |
| 95 | + </div> |
| 96 | + <div class="example-caption"><strong>Slide Branding</strong> - example scverse-branded slide</div> |
| 97 | + </div> |
| 98 | + <div class="example-item"> |
| 99 | + <div class="example-image"> |
| 100 | + <img src="../img/logo/scverse-palms.png" alt="scverse logo - Palm tree example" /> |
| 101 | + </div> |
| 102 | + <div class="example-caption"> |
| 103 | + <strong>Light Backgrounds</strong> - scverse icon with the concentric circles reminding of the |
| 104 | + multi-layered scverse ecosystem |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + </div> |
| 108 | + <h2 id="package-icons">Package Logos</h2> |
| 109 | + <br />{{ $sections.package_icons | markdownify }} |
| 110 | + <div id="icons-list" class="icons-only-mode"> |
| 111 | + {{ $packageicons := .Params.packageicons }} |
| 112 | + {{ range $i, $e := $packageicons }} |
| 113 | + <div |
| 114 | + class="icon-section" |
| 115 | + style="--hover-color: var(--{{ .name | lower }}-color);" |
| 116 | + id="{{ .name | lower }}-tile" |
| 117 | + > |
| 118 | + <div class="icon-img"> |
| 119 | + <!-- Store both image versions in data attributes --> |
| 120 | + <img |
| 121 | + src="{{ .img }}" |
| 122 | + data-icon="{{ .img }}" |
| 123 | + data-icon-with-text="{{ if .imgWithText }} |
| 124 | + {{ .imgWithText }} |
| 125 | + {{ else }} |
| 126 | + {{ .img }} |
| 127 | + {{ end }}" |
| 128 | + /> |
| 129 | + </div> |
| 130 | + <div class="icon-info"> |
| 131 | + <div class="icon-tile"> |
| 132 | + <div class="icon-text"> |
| 133 | + <span class="icon-name">{{ .name }}</span> |
| 134 | + <span class="icon-details">{{ .details | markdownify }}</span> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + <div class="icon-links"> |
| 138 | + {{ range $k, $v := $e.links }} |
| 139 | + <!-- Add data attributes to store both versions of the URL --> |
| 140 | + <a |
| 141 | + href="{{ $v.url }}" |
| 142 | + target="_blank" |
| 143 | + class="icon-link" |
| 144 | + data-icon-url="{{ $v.url }}" |
| 145 | + data-with-text-url="{{ if $v.urlWithText }} |
| 146 | + {{ $v.urlWithText }} |
| 147 | + {{ else }} |
| 148 | + {{ $v.url }} |
| 149 | + {{ end }}" |
| 150 | + > |
| 151 | + {{ $v.text }} |
| 152 | + </a> |
| 153 | + {{ end }} |
| 154 | + </div> |
| 155 | + </div> |
| 156 | + </div> |
| 157 | + {{ end }} |
| 158 | + </div> |
| 159 | + {{ end }} |
| 160 | + |
| 161 | + |
| 162 | + <div id="contact"> |
| 163 | + <h2>Contact</h2> |
| 164 | + <br />{{ $sections.contact | markdownify }} |
| 165 | + </div> |
| 166 | + </div> |
| 167 | + {{ end }} |
| 168 | + </article> |
| 169 | + </div> |
| 170 | + </div> |
| 171 | + </div> |
| 172 | + {{ partial "footer" . }} |
| 173 | + </body> |
| 174 | + |
| 175 | + <script> |
| 176 | + document.addEventListener("DOMContentLoaded", function () { |
| 177 | + const toggleSwitch = document.getElementById("icon-display-mode") |
| 178 | + const iconsList = document.getElementById("icons-list") |
| 179 | + |
| 180 | + toggleSwitch.addEventListener("change", function () { |
| 181 | + if (this.checked) { |
| 182 | + // Switch to logos with text mode |
| 183 | + iconsList.classList.remove("icons-only-mode") |
| 184 | + iconsList.classList.add("icons-with-text-mode") |
| 185 | + |
| 186 | + // Update all displayed images to the text version |
| 187 | + document.querySelectorAll("#icons-list .icon-img img").forEach((img) => { |
| 188 | + img.src = img.dataset.iconWithText |
| 189 | + }) |
| 190 | + |
| 191 | + // Update download links to point to the text versions |
| 192 | + document.querySelectorAll("#icons-list .icon-link").forEach((link) => { |
| 193 | + link.href = link.dataset.withTextUrl |
| 194 | + }) |
| 195 | + } else { |
| 196 | + // Switch to icons only mode |
| 197 | + iconsList.classList.remove("icons-with-text-mode") |
| 198 | + iconsList.classList.add("icons-only-mode") |
| 199 | + |
| 200 | + // Update all displayed images to the icon-only version |
| 201 | + document.querySelectorAll("#icons-list .icon-img img").forEach((img) => { |
| 202 | + img.src = img.dataset.icon |
| 203 | + }) |
| 204 | + |
| 205 | + // Update download links to point to the icon-only versions |
| 206 | + document.querySelectorAll("#icons-list .icon-link").forEach((link) => { |
| 207 | + link.href = link.dataset.iconUrl |
| 208 | + }) |
| 209 | + } |
| 210 | + }) |
| 211 | + }) |
| 212 | + </script> |
| 213 | +</html> |
0 commit comments