Tentative design for showing sponsors; add UoCambridge
authorPhil Pennock <pdp@exim.org>
Sat, 15 Sep 2018 05:41:45 +0000 (01:41 -0400)
committerPhil Pennock <pdp@exim.org>
Sat, 15 Sep 2018 05:41:45 +0000 (01:41 -0400)
Add logo for Cambridge
Include both UoC and MacStadium on the main web-page, as thanks.

My XSL-fu is weak.  This is a tentative design straw-man, which I'm
putting live.  Feel free to improve.

templates/static/css/index.css
templates/web/i/cambridge-150x39.png [new file with mode: 0644]
templates/web/index.xsl

index 1cbc4186bfea3f49deaed3b8383369280ee6b0ed..d6e3c0e738dc1976fc4588e04986bb121d0b162d 100644 (file)
@@ -1,4 +1,4 @@
-#inner img {
+#inner img:not(.sponsor_logo) {
        float:                          left;
        margin:                         0 1em 0.5em 0;
 }
        float:                          left;
        margin:                         0 1em 0.5em 0;
 }
@@ -6,3 +6,14 @@
 #book_info {
        min-height:                     100px;
 }
 #book_info {
        min-height:                     100px;
 }
+
+ul#sponsor_list {
+       list-style: none;
+       overflow: hidden;
+       padding-left: 0;
+}
+
+img.sponsor_logo {
+       vertical-align:                 top;
+       margin:                         0 1em 0 0;
+}
diff --git a/templates/web/i/cambridge-150x39.png b/templates/web/i/cambridge-150x39.png
new file mode 100644 (file)
index 0000000..9249934
Binary files /dev/null and b/templates/web/i/cambridge-150x39.png differ
index df302f4418d593e553b99603c62ce3bad1a9fea7..3e4380b5136069f4ca2687ba1ad349b42bd3b48b 100644 (file)
                                <xsl:text>.</xsl:text>
                        </p>
 
                                <xsl:text>.</xsl:text>
                        </p>
 
+         <!-- sponsor information -->
+         <div id="sponsors">
+            <xsl:text>The following organizations provide services which help the Exim project:</xsl:text>
+            <ul id="sponsor_list">
+               <li class="sponsor">
+                  <a href="https://www.cam.ac.uk/">
+                     <img src="i/cambridge-150x39.png" width="150" height="39" alt="University of Cambridge" class="sponsor_logo"/>
+                     <xsl:text>The University of Cambridge</xsl:text>
+                  </a>
+                  <xsl:text> hosts the central Exim website and domain.</xsl:text>
+               </li>
+               <li class="sponsor">
+                  <a href="https://www.macstadium.com/">
+                     <img src="i/macstadium-150x61.png" width="150" height="61" alt="MacStadium" class="sponsor_logo"/>
+                     <xsl:text>MacStadium</xsl:text>
+                  </a>
+                  <xsl:text> provide us a Mac Mini for our buildfarm, keeping macOS supported.</xsl:text>
+               </li>
+            </ul>
+         </div>
+
                </xsl:template>
 
 </xsl:stylesheet>
                </xsl:template>
 
 </xsl:stylesheet>