Skip to content

Commit fb38940

Browse files
authored
Merge pull request #175 from haskellfoundation/inkind
Start of in-kind donations list, MLabs and Obsidian's listed first.
2 parents 788c07e + 51a7ff5 commit fb38940

File tree

6 files changed

+104
-3
lines changed

6 files changed

+104
-3
lines changed

donations/inkind/mlabs.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: MLabs
3+
summary: 40 hrs/month for N months.
4+
---
5+
6+
# Koz Ross
7+
8+
* Worked on the utf-8 text conversion, supporting Bodigrim.
9+
* Created https://github.com/haskellfoundation/shields.

donations/inkind/obsidian.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Obsidian Systems
3+
summary: Initial structure and content for the HF website.
4+
---

site.hs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,33 @@ main = hakyll $ do
3333
-- sponsors --------------------------------------------------------------------------------------------
3434
match "donations/sponsors/*.markdown" $ compile pandocCompiler
3535

36+
-- in-kind donations -----------------------------------------------------------------------------------
37+
create ["donations/index.html"] $ do
38+
route idRoute
39+
compile $ do
40+
sponsors <- buildBoilerplateCtx (Just "Sponsorship")
41+
iks <- loadAll "donations/inkind/*.markdown"
42+
43+
let ctx =
44+
listField "inkinds" defaultContext (return iks) <>
45+
defaultContext
46+
47+
makeItem ""
48+
>>= loadAndApplyTemplate "templates/donations/list.html" ctx
49+
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
50+
>>= relativizeUrls
51+
52+
match "donations/inkind/*.markdown" $ do
53+
route $ setExtension "html"
54+
compile $ do
55+
sponsors <- buildBoilerplateCtx Nothing
56+
57+
pandocCompiler
58+
>>= applyAsTemplate sponsors
59+
>>= loadAndApplyTemplate "templates/donations/page.html" defaultContext
60+
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
61+
>>= relativizeUrls
62+
3663
-- affiliates ------------------------------------------------------------------------------------------
3764
match "affiliates/*.markdown" $ compile pandocCompiler
3865
create ["affiliates/index.html"] $ do

donations/index.html renamed to templates/donations/list.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Donations and Sponsorship
33
---
4-
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
5-
<div class="sm:px-6 lg:px-16">
6-
<div class="relative">
4+
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
5+
<div class="sm:px-6 lg:px-16">
6+
<div class="relative">
77
<div class="absolute top-0 left-0 border-t border-l border-purple-50 h-10 md:h-20 w-10 md:w-20">
88
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-100 h-10 md:h-20 w-10 md:w-20">
99
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-200 h-10 md:h-20 w-10 md:w-20">
@@ -177,6 +177,23 @@ <h2 class="text-gray-50 font-normal text-3xl-4xl text-center">In-Kind Support</h
177177
Non-financial contributions to HF are also welcome. As a volunteer-based organization, the Haskell Foundation needs volunteers who can work on software, documentation, promotion, and other tasks to support the HF affiliated projects and the Haskell community. Individuals who contribute their own time or on behalf of their company are the backbone of our organization. Please reach out to us at <a href="mailto:contact@haskell.foundation">contact@haskell.foundation</a> to learn more about how you can volunteer or offer in-kind support.
178178

179179
</p>
180+
181+
<div class="mt-10 space-y-6 lg:space-y-0 lg:flex justify-around bg-white">
182+
<div class="mt-16 md:mt-24 px-4 sm:px-12 md:px-12 lg:px-16">
183+
<div class="flex items-center space-x-4">
184+
<div>
185+
<img class="h-10 md:h-16 lg:h-20" src="/assets/images/affiliated.svg" alt="">
186+
</div>
187+
<h2 class="text-2xl font-normal">In-Kind Donations</h2>
188+
</div>
189+
<div
190+
class="border-l-3 border-gray-300 ml-5 md:ml-8 lg:ml-10 pl-4 md:pl-8 lg:pl-14 pr-4 my-6 md:my-8 lg:my-10 grid lg:grid-cols-2 py-4 md:py-8 gap-4 md:gap-8">
191+
$for(inkinds)$
192+
$partial("templates/donations/tile.html")$
193+
$endfor$
194+
</div>
195+
</div>
196+
</div>
180197
</div>
181198
</div>
182199

templates/donations/page.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
2+
<div class="sm:px-6 lg:px-16">
3+
<div class="relative">
4+
<div class="absolute top-0 left-0 border-t border-l border-purple-50 h-10 md:h-20 w-10 md:w-20">
5+
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-100 h-10 md:h-20 w-10 md:w-20">
6+
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-200 h-10 md:h-20 w-10 md:w-20">
7+
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-300 h-10 md:h-20 w-10 md:w-20">
8+
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-400 h-10 md:h-20 w-10 md:w-20">
9+
<div class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-500 h-10 md:h-20 w-10 md:w-20"></div>
10+
</div>
11+
</div>
12+
</div>
13+
</div>
14+
</div>
15+
<div class="absolute top-0 right-0 border-t border-r border-purple-50 h-10 md:h-20 w-10 md:w-20">
16+
<div class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-100 h-10 md:h-20 w-10 md:w-20">
17+
<div class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-200 h-10 md:h-20 w-10 md:w-20">
18+
<div class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-300 h-10 md:h-20 w-10 md:w-20">
19+
<div class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-400 h-10 md:h-20 w-10 md:w-20">
20+
<div class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-500 h-10 md:h-20 w-10 md:w-20"></div>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
<div class="text-center pt-12 md:pt-20 px-12 sm:px-16 md:px-24 lg:px-36 ">
28+
<h1 class="text-2xl-5xl">$title$</h1>
29+
</div>
30+
</div>
31+
</div>
32+
33+
<div class="max-w-screen-xl mx-auto">
34+
<div class="mx-auto prose md:prose-lg">
35+
<div class="space-y-8 max-w-2xl my-7 mx-auto">
36+
$body$
37+
</div>
38+
</div>
39+
</div>
40+

templates/donations/tile.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<a class="border-3 border-purple-700 bg-white space-y-6 p-10 max-w-md mx-auto flex-1 lg:max-w-xs" href="$url$">
2+
<div class="text-3xl font-normal">$title$</div>
3+
<p class="">$summary$</p>
4+
</a>

0 commit comments

Comments
 (0)