-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
7a90cec
commit 7c9a69a
Showing
15 changed files
with
284 additions
and
164 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
import { Flex, Heading, Text } from "@radix-ui/themes"; | ||
|
||
const heading = "About ASSORT"; | ||
|
||
const description = | ||
"The Aid Standards for Sorting (ASSORT) are a set of interoperability standards for humanitarian aid that are designed to save grassroots organisations time, effort, and money."; | ||
|
||
export const AboutAssort = ({ color }: { color: string }) => { | ||
return ( | ||
<Flex | ||
justify="center" | ||
align="center" | ||
className={`text-${color}`} | ||
direction="column" | ||
gap="5" | ||
my="5" | ||
mx={{ md: "9", initial: "2" }} | ||
> | ||
<Heading size="8" align="center"> | ||
{heading} | ||
</Heading> | ||
<Text align="center" size="5"> | ||
{description} | ||
</Text> | ||
</Flex> | ||
); | ||
}; |
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,41 @@ | ||
import { Box, Flex, Separator, Table, Text } from "@radix-ui/themes"; | ||
|
||
const data = [ | ||
"How to quality check donated items meant for distribution;", | ||
"How to sort donations into standard categories;", | ||
"How to size clothing donations with a printable ASSORT sizing chart;", | ||
"How to box and label the sorted donations and ready them for shipment.", | ||
]; | ||
|
||
export const Guide = () => { | ||
return ( | ||
<Flex | ||
direction="column" | ||
className="bg-gray-50" | ||
width="100%" | ||
mx={{ initial: "2", xs: "0" }} | ||
p="1" | ||
> | ||
<Text size="5" className="p-3"> | ||
The ASSORT Guide includes multiple areas of standardisation: | ||
</Text> | ||
<Separator | ||
orientation="horizontal" | ||
className="w-full self-stretch mt-1" | ||
/> | ||
{data.map((item, index) => ( | ||
<Box key={index}> | ||
<li className="p-3"> | ||
<Text size="4">{item}</Text> | ||
</li> | ||
{index !== data.length - 1 && ( | ||
<Separator | ||
orientation="horizontal" | ||
className="w-full self-stretch mt-1" | ||
/> | ||
)} | ||
</Box> | ||
))} | ||
</Flex> | ||
); | ||
}; |
7 changes: 3 additions & 4 deletions
7
src/components/pageTitle.tsx → ...components/resources/assort/PageTitle.tsx
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,16 +1,15 @@ | ||
interface PageTitleProps { | ||
title: string; | ||
bgColor: string; | ||
textColor: string; | ||
} | ||
|
||
const PageTitle = ({ title, bgColor }: PageTitleProps) => { | ||
export const PageTitle = ({ textColor, title, bgColor }: PageTitleProps) => { | ||
return ( | ||
<div className={`bg-${bgColor} py-8 text-center`}> | ||
<h1 className="text-dark-blue uppercase font-extrabold text-5xl"> | ||
<h1 className={`text-${textColor} uppercase font-extrabold text-5xl`}> | ||
{title} | ||
</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PageTitle; |
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,18 @@ | ||
import { Link } from "@radix-ui/themes"; | ||
import React from "react"; | ||
|
||
interface ResourceRedirectProps { | ||
link: string; | ||
text: string; | ||
} | ||
|
||
export const ResourceRedirect: React.FC<ResourceRedirectProps> = ({ | ||
link, | ||
text, | ||
}) => { | ||
return ( | ||
<Link href={`https://${link}`} className="text-inherit " underline="always"> | ||
{text} | ||
</Link> | ||
); | ||
}; |
Oops, something went wrong.