-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
460 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<section class="my-16"> | ||
<div id="mediaCarousel"> | ||
<div class="flex justify-between items-center mb-4"> | ||
<h3 class="text-white font-bold text-3xl">What they say about us</h2> | ||
<div class="flex gap-3"> | ||
<button class="prev bg-white rounded-full p-4"><svg width="14" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.833 6.167H3.525L7.592 2.1a.84.84 0 0 0 0-1.183.83.83 0 0 0-1.175 0L.925 6.408a.83.83 0 0 0 0 1.175l5.483 5.5a.83.83 0 1 0 1.175-1.175L3.525 7.833h9.308A.836.836 0 0 0 13.667 7a.836.836 0 0 0-.834-.833Z" fill="#0588CB"/></svg></button> | ||
<button class="next bg-white rounded-full p-4"><svg width="14" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.167 7.833h9.308L6.408 11.9a.84.84 0 0 0 0 1.183.83.83 0 0 0 1.175 0l5.492-5.491a.83.83 0 0 0 0-1.175L7.592.917a.83.83 0 1 0-1.175 1.175l4.058 4.075H1.167A.836.836 0 0 0 .333 7c0 .458.375.833.834.833Z" fill="#0588CB"/></svg></button> | ||
</div> | ||
</div> | ||
|
||
<div id="mediaGallery"> | ||
<ul class="flex gap-4 transition-[margin-left] duration-200 w-[99999px]"> | ||
{{ with .Params.mediafeatures }} | ||
{{ range . }} | ||
<li class="bg-white rounded-2xl flex flex-col justify-between p-6"> | ||
<div class="mb-4"> | ||
<img class="h-[28px] mb-6" src="{{ .image }}" /> | ||
<div class="text-[1.6rem] font-bold">{{ .title }}</div> | ||
<div class="leading-6 text-gray7">{{ .text }}</div> | ||
</div> | ||
<!-- <a href="{{ .link }}" target="_blank" class="underline text-sm text-blue6 flex flex-row items-center"> | ||
<span class="mr-2">Find out more</span> | ||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M10.0833 10.0833H1.91667V1.91667H6V0.75H1.91667C1.26917 0.75 0.75 1.275 0.75 1.91667V10.0833C0.75 10.725 1.26917 11.25 1.91667 11.25H10.0833C10.725 11.25 11.25 10.725 11.25 10.0833V6H10.0833V10.0833ZM7.16667 0.75V1.91667H9.26083L3.52667 7.65083L4.34917 8.47333L10.0833 2.73917V4.83333H11.25V0.75H7.16667Z" fill="currentColor"/> | ||
</svg> | ||
</a> --> | ||
</li> | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<script> | ||
let mediaGalleryWidth; | ||
let mediaList = mediaCarousel.querySelector('ul'); | ||
let mediaListElements = mediaCarousel.querySelectorAll('li'); | ||
let mediaPosition = 0; | ||
let mediaLiWidth; | ||
let mediaTotalWidth; | ||
|
||
function resize() { | ||
mediaGalleryWidth = mediaCarousel.querySelector('#mediaGallery').offsetWidth | ||
mediaList.style.marginLeft = '0px'; | ||
if (mediaGalleryWidth < 670) { | ||
mediaLiWidth = mediaGalleryWidth | ||
mediaTotalWidth = (3 * (mediaLiWidth + 16)) | ||
} else { | ||
mediaLiWidth = mediaGalleryWidth / 2 - 8 | ||
mediaTotalWidth = (2 * (mediaLiWidth + 16)) | ||
} | ||
|
||
mediaListElements.forEach((li) => { | ||
li.style.width = `${mediaLiWidth}px` | ||
}); | ||
} | ||
|
||
resize(); | ||
|
||
window.addEventListener("resize", (event) => { | ||
resize(); | ||
}); | ||
|
||
mediaCarousel.querySelector('.prev').onclick = function() { | ||
mediaPosition += mediaLiWidth + 16; | ||
mediaPosition = Math.min(mediaPosition, 0) | ||
mediaList.style.marginLeft = mediaPosition + 'px'; | ||
}; | ||
|
||
mediaCarousel.querySelector('.next').onclick = function() { | ||
mediaPosition -= mediaLiWidth + 16; | ||
mediaPosition = Math.max(mediaPosition, -mediaTotalWidth); | ||
mediaList.style.marginLeft = mediaPosition + 'px'; | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<section class="my-16"> | ||
<div id="shopCarousel"> | ||
<div class="flex justify-between items-center mb-4"> | ||
<h2 class="text-white font-bold text-3xl">Shop</h2> | ||
<div class="flex gap-3"> | ||
<button class="prev bg-white rounded-full p-4"><svg width="14" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.833 6.167H3.525L7.592 2.1a.84.84 0 0 0 0-1.183.83.83 0 0 0-1.175 0L.925 6.408a.83.83 0 0 0 0 1.175l5.483 5.5a.83.83 0 1 0 1.175-1.175L3.525 7.833h9.308A.836.836 0 0 0 13.667 7a.836.836 0 0 0-.834-.833Z" fill="#0588CB"/></svg></button> | ||
<button class="next bg-white rounded-full p-4"><svg width="14" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.167 7.833h9.308L6.408 11.9a.84.84 0 0 0 0 1.183.83.83 0 0 0 1.175 0l5.492-5.491a.83.83 0 0 0 0-1.175L7.592.917a.83.83 0 1 0-1.175 1.175l4.058 4.075H1.167A.836.836 0 0 0 .333 7c0 .458.375.833.834.833Z" fill="#0588CB"/></svg></button> | ||
</div> | ||
</div> | ||
|
||
<div class="gallery"> | ||
<ul class="flex gap-4 transition-[margin-left] duration-200 w-[99999px]"> | ||
{{ with .Params.shopitems }} | ||
<li> | ||
<div class="bg-blue9 w-[296px] h-[254px] p-6 rounded-2xl text-white flex flex-col justify-between"> | ||
<div> | ||
<div class="font-bold text-3xl mb-4">OONIque Boutique</div> | ||
<p class="text-base">Get some OONIque items to support OONI</p> | ||
</div> | ||
<div> | ||
<a class="text-sm flex flex-row items-center" href="https://shop.ooni.org/" target="_blank"> | ||
<span class="mr-2 underline">Visit our shop</span> | ||
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M10.0833 10.0833H1.91667V1.91667H6V0.75H1.91667C1.26917 0.75 0.75 1.275 0.75 1.91667V10.0833C0.75 10.725 1.26917 11.25 1.91667 11.25H10.0833C10.725 11.25 11.25 10.725 11.25 10.0833V6H10.0833V10.0833ZM7.16667 0.75V1.91667H9.26083L3.52667 7.65083L4.34917 8.47333L10.0833 2.73917V4.83333H11.25V0.75H7.16667Z" fill="currentColor"/> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
</li> | ||
{{ range . }} | ||
<li class="w-[216px]"> | ||
<a href="{{ .link }}" target="_blank"> | ||
<div class="flex flex-col"> | ||
<div class=" bg-cover h-[172px] rounded-t-2xl" style="background-image:url('{{ .image }}');"></div> | ||
<div class="bg-white text-gray7 p-4 h-[82px] rounded-b-2xl">{{ .name }}</div> | ||
</div> | ||
</a> | ||
</li> | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<script> | ||
let width = 232; // image width | ||
let shopGalleryWidth = shopCarousel.querySelector('.gallery').offsetWidth | ||
let list = shopCarousel.querySelector('ul'); | ||
let position = 0; | ||
|
||
shopCarousel.querySelector('.prev').onclick = function() { | ||
position += width; | ||
position = Math.min(position, 0) | ||
list.style.marginLeft = position + 'px'; | ||
}; | ||
|
||
shopCarousel.querySelector('.next').onclick = function() { | ||
position -= width; | ||
position = Math.max(position, -(1692 - shopCarousel.querySelector('.gallery').offsetWidth)); | ||
list.style.marginLeft = position + 'px'; | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
<p class="mt-6 text-lg leading-8 text-gray8"> | ||
By donating to OONI, you support: | ||
<p class="mb-6 font-bold"> | ||
By donating to OONI, you support: | ||
</p> | ||
<ul role="list" class="mt-10 grid grid-cols-1 gap-x-8 gap-y-3 text-base leading-7 text-black sm:grid-cols-2"> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z" /> | ||
</svg> | ||
<a href="https://ooni.org/install/" class="hover:text-ooniblue">Free and open source software for | ||
detecting internet | ||
censorship</a> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M200-120q-51 0-72.5-45.5T138-250l222-270v-240h-40q-17 0-28.5-11.5T280-800q0-17 11.5-28.5T320-840h320q17 0 28.5 11.5T680-800q0 17-11.5 28.5T640-760h-40v240l222 270q32 39 10.5 84.5T760-120H200Zm0-80h560L520-492v-268h-80v268L200-200Zm280-280Z" /> | ||
</svg> | ||
<a href="https://github.com/ooni/backend/" class="hover:text-ooniblue">Real-time analysis of | ||
internet | ||
censorship around | ||
the world</a> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M480-120q-151 0-255.5-46.5T120-280v-400q0-66 105.5-113T480-840q149 0 254.5 47T840-680v400q0 67-104.5 113.5T480-120Zm0-479q89 0 179-25.5T760-679q-11-29-100.5-55T480-760q-91 0-178.5 25.5T200-679q14 30 101.5 55T480-599Zm0 199q42 0 81-4t74.5-11.5q35.5-7.5 67-18.5t57.5-25v-120q-26 14-57.5 25t-67 18.5Q600-528 561-524t-81 4q-42 0-82-4t-75.5-11.5Q287-543 256-554t-56-25v120q25 14 56 25t66.5 18.5Q358-408 398-404t82 4Zm0 200q46 0 93.5-7t87.5-18.5q40-11.5 67-26t32-29.5v-98q-26 14-57.5 25t-67 18.5Q600-328 561-324t-81 4q-42 0-82-4t-75.5-11.5Q287-343 256-354t-56-25v99q5 15 31.5 29t66.5 25.5q40 11.5 88 18.5t94 7Z" /> | ||
</svg> | ||
<a href="https://ooni.org/data/" class="hover:text-ooniblue">Open data on internet censorship -- | ||
supporting global | ||
research and advocacy | ||
efforts</a> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z" /> | ||
</svg> | ||
<a href="https://ooni.org/reports/" class="hover:text-ooniblue">Research on censorship events | ||
worldwide</a> | ||
</li> | ||
<ul role="list" class="text-base leading-7 text-gray7"> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none text-blue5" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H160v400Zm140-40-56-56 103-104-104-104 57-56 160 160-160 160Zm180 0v-80h240v80H480Z" /> | ||
</svg> | ||
<!-- <a href="https://ooni.org/install/" class="hover:text-ooniblue"> --> | ||
Free and open source software for detecting internet censorship | ||
<!-- </a> --> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none text-blue5" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M200-120q-51 0-72.5-45.5T138-250l222-270v-240h-40q-17 0-28.5-11.5T280-800q0-17 11.5-28.5T320-840h320q17 0 28.5 11.5T680-800q0 17-11.5 28.5T640-760h-40v240l222 270q32 39 10.5 84.5T760-120H200Zm0-80h560L520-492v-268h-80v268L200-200Zm280-280Z" /> | ||
</svg> | ||
<!-- <a href="https://github.com/ooni/backend/" class="hover:text-ooniblue"> --> | ||
Real-time analysis of internet censorship around the world | ||
<!-- </a> --> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none text-blue5" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M480-120q-151 0-255.5-46.5T120-280v-400q0-66 105.5-113T480-840q149 0 254.5 47T840-680v400q0 67-104.5 113.5T480-120Zm0-479q89 0 179-25.5T760-679q-11-29-100.5-55T480-760q-91 0-178.5 25.5T200-679q14 30 101.5 55T480-599Zm0 199q42 0 81-4t74.5-11.5q35.5-7.5 67-18.5t57.5-25v-120q-26 14-57.5 25t-67 18.5Q600-528 561-524t-81 4q-42 0-82-4t-75.5-11.5Q287-543 256-554t-56-25v120q25 14 56 25t66.5 18.5Q358-408 398-404t82 4Zm0 200q46 0 93.5-7t87.5-18.5q40-11.5 67-26t32-29.5v-98q-26 14-57.5 25t-67 18.5Q600-328 561-324t-81 4q-42 0-82-4t-75.5-11.5Q287-343 256-354t-56-25v99q5 15 31.5 29t66.5 25.5q40 11.5 88 18.5t94 7Z" /> | ||
</svg> | ||
<!-- <a href="https://ooni.org/data/" class="hover:text-ooniblue"> --> | ||
Open data on internet censorship -- supporting global research and advocacy efforts | ||
<!-- </a> --> | ||
</li> | ||
<li class="flex gap-x-3"> | ||
<svg class="h-7 w-5 flex-none text-blue5" fill="currentColor" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960"> | ||
<path | ||
d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z" /> | ||
</svg> | ||
<!-- <a href="https://ooni.org/reports/" class="hover:text-ooniblue"> --> | ||
Research on censorship events worldwide | ||
<!-- </a> --> | ||
</li> | ||
</ul> |
Oops, something went wrong.