Skip to content

Start of in-kind donations list, MLabs and Obsidian's listed first. #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions donations/inkind/mlabs.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: MLabs
summary: 40 hrs/month for N months.
---

# Koz Ross

* Worked on the utf-8 text conversion, supporting Bodigrim.
* Created https://github.com/haskellfoundation/shields.
4 changes: 4 additions & 0 deletions donations/inkind/obsidian.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Obsidian Systems
summary: Initial structure and content for the HF website.
---
29 changes: 27 additions & 2 deletions site.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# Language ScopedTypeVariables #-}
{-# Language OverloadedStrings #-}
{-# Language ViewPatterns #-}
{-# Language BangPatterns #-}

import Hakyll
import Data.List (sortOn)
Expand Down Expand Up @@ -34,6 +33,33 @@ main = hakyll $ do
-- sponsors --------------------------------------------------------------------------------------------
match "donations/sponsors/*.markdown" $ compile pandocCompiler

-- in-kind donations -----------------------------------------------------------------------------------
create ["donations/index.html"] $ do
route idRoute
compile $ do
sponsors <- buildBoilerplateCtx (Just "Sponsorship")
iks <- loadAll "donations/inkind/*.markdown"

let ctx =
listField "inkinds" defaultContext (return iks) <>
defaultContext

makeItem ""
>>= loadAndApplyTemplate "templates/donations/list.html" ctx
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
>>= relativizeUrls

match "donations/inkind/*.markdown" $ do
route $ setExtension "html"
compile $ do
sponsors <- buildBoilerplateCtx Nothing

pandocCompiler
>>= applyAsTemplate sponsors
>>= loadAndApplyTemplate "templates/donations/page.html" defaultContext
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
>>= relativizeUrls

-- affiliates ------------------------------------------------------------------------------------------
match "affiliates/*.markdown" $ compile pandocCompiler
create ["affiliates/index.html"] $ do
Expand Down Expand Up @@ -222,7 +248,6 @@ main = hakyll $ do
match "templates/*" $ compile templateBodyCompiler
match "templates/**" $ compile templateBodyCompiler


--------------------------------------------------------------------------------------------------------
-- CONTEXT ---------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
Expand Down
23 changes: 20 additions & 3 deletions donations/index.html → templates/donations/list.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Donations and Sponsorship
---
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
<div class="sm:px-6 lg:px-16">
<div class="relative">
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
<div class="sm:px-6 lg:px-16">
<div class="relative">
<div class="absolute top-0 left-0 border-t border-l border-purple-50 h-10 md:h-20 w-10 md:w-20">
<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">
<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">
Expand Down Expand Up @@ -177,6 +177,23 @@ <h2 class="text-gray-50 font-normal text-3xl-4xl text-center">In-Kind Support</h
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.

</p>

<div class="mt-10 space-y-6 lg:space-y-0 lg:flex justify-around bg-white">
<div class="mt-16 md:mt-24 px-4 sm:px-12 md:px-12 lg:px-16">
<div class="flex items-center space-x-4">
<div>
<img class="h-10 md:h-16 lg:h-20" src="/assets/images/affiliated.svg" alt="">
</div>
<h2 class="text-2xl font-normal">In-Kind Donations</h2>
</div>
<div
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">
$for(inkinds)$
$partial("templates/donations/tile.html")$
$endfor$
</div>
</div>
</div>
</div>
</div>

Expand Down
40 changes: 40 additions & 0 deletions templates/donations/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
<div class="sm:px-6 lg:px-16">
<div class="relative">
<div class="absolute top-0 left-0 border-t border-l border-purple-50 h-10 md:h-20 w-10 md:w-20">
<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">
<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">
<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">
<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">
<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>
</div>
</div>
</div>
</div>
</div>
<div class="absolute top-0 right-0 border-t border-r border-purple-50 h-10 md:h-20 w-10 md:w-20">
<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">
<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">
<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">
<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">
<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>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="text-center pt-12 md:pt-20 px-12 sm:px-16 md:px-24 lg:px-36 ">
<h1 class="text-2xl-5xl">$title$</h1>
</div>
</div>
</div>

<div class="max-w-screen-xl mx-auto">
<div class="mx-auto prose md:prose-lg">
<div class="space-y-8 max-w-2xl my-7 mx-auto">
$body$
</div>
</div>
</div>

4 changes: 4 additions & 0 deletions templates/donations/tile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<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$">
<div class="text-3xl font-normal">$title$</div>
<p class="">$summary$</p>
</a>