From f4c9f89b8db5d15ea7aa52e8adc1e9433b9fc4a1 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Sun, 19 May 2024 22:54:44 -0400 Subject: [PATCH 1/2] deprecate: ethos page --- components/EthosComponents.tsx | 176 ---------------------------- components/WipList.tsx | 2 +- components/index.ts | 1 - constants/index.ts | 10 -- pages/ethos.tsx | 202 --------------------------------- 5 files changed, 1 insertion(+), 390 deletions(-) delete mode 100644 components/EthosComponents.tsx delete mode 100644 pages/ethos.tsx diff --git a/components/EthosComponents.tsx b/components/EthosComponents.tsx deleted file mode 100644 index 6decc91..0000000 --- a/components/EthosComponents.tsx +++ /dev/null @@ -1,176 +0,0 @@ -import { FC } from "react" -import { - BoxProps, - Flex, - FlexProps, - Grid, - Link, - LinkProps, - Text, -} from "@chakra-ui/react" -import NextImage from "next/image" -import { SHADOW_SMALL, SHADOW_LARGE } from "../constants" - -const shadowCardProps = ( - color: string, - toLeft: boolean = false -): FlexProps => ({ - w: [`calc(100% - ${SHADOW_SMALL})`, null, `calc(100% - ${SHADOW_LARGE})`], - _before: { - content: '""', - position: "absolute", - inset: 0, - translate: { - base: `${toLeft ? "-" : ""}${SHADOW_SMALL} ${SHADOW_SMALL}`, - md: `${toLeft ? "-" : ""}${SHADOW_LARGE} ${SHADOW_LARGE}`, - }, - bg: color, - zIndex: -1, - border: "3px solid", - borderColor: "fg", - } -}) - -interface CardProps extends BoxProps { - toLeft?: boolean -} -const Card: FC = ({ - color, - children, - toLeft = false, - ...restProps -}) => ( - - {children} - -) - -interface InfoCardProps extends BoxProps { - title: string - imagePath?: string - toLeft?: boolean -} -export const InfoCard: FC = ({ - color, - children, - title, - imagePath, - toLeft = false, - ...restProps -}) => ( - - - - {title} - - {imagePath && } - - - {children} - - -) - -interface ButtonLinkProps - extends Pick {} -export const ButtonLink: FC = ({ color, href, children }) => { - const hoverStyles = { - boxShadow: "inset 0 0 0 2px var(--chakra-colors-mix-red-400)", - bg: "fg", - p: { color: "mix.red.400" }, - _after: { - position: "absolute", - content: '""', - bgImage: "url('/images/ethos/chili-decorator.png')", - bgSize: "contain", - bgRepeat: "no-repeat", - insetInlineEnd: [`calc(-0.5 * ${SHADOW_SMALL})`, null, `calc(-0.5 * ${SHADOW_LARGE})`], - bottom: [`calc(-0.5 * ${SHADOW_SMALL})`, null, `calc(-0.5 * ${SHADOW_LARGE})`], - w: ["2rem", null, "3rem", null], - h: ["2rem", null, "3rem", null], - zIndex: 1, - } - } - - return ( - - - - {children} - - - - ) -} - -interface CtaCardProps extends Pick { - prompt: string -} -export const CtaCard: FC = ({ prompt, color, children }) => ( - - - {prompt} - - {children} - -) diff --git a/components/WipList.tsx b/components/WipList.tsx index 28e1374..371743a 100644 --- a/components/WipList.tsx +++ b/components/WipList.tsx @@ -12,7 +12,7 @@ const data = [ status: "Launched!", title: "ETHos Website", desc: "Incubator for IRL Ethereum events", - url: "/ethos", + url: "/#deprecated", }, { status: "MEME", diff --git a/components/index.ts b/components/index.ts index 40dc26e..a2e8088 100644 --- a/components/index.ts +++ b/components/index.ts @@ -28,4 +28,3 @@ export * from "./SiteLayout" export * from "./TwitterSection" export * from "./WipItem" export * from "./WipList" -export * from "./EthosComponents" diff --git a/constants/index.ts b/constants/index.ts index 47a8282..5156ecf 100644 --- a/constants/index.ts +++ b/constants/index.ts @@ -14,14 +14,12 @@ export const ECOSYSTEM_NAME = "Ecosystem" export const GRANTS_NAME = "Grants" export const LORE_NAME = "Lore" export const MANIFESTO_NAME = "Manifesto" -export const ETHOS_NAME = "ETHos" // Internal paths export const ECOSYSTEM_PATH = "/ecosystem" export const GRANTS_PATH = "/grants" export const LORE_PATH = "/lore" export const MANIFESTO_PATH = "/manifesto" -export const ETHOS_PATH = "/ethos" export const PHOTO_CAROUSEL_IMAGES_PATH = "/images/FamilyPhotos" @@ -34,10 +32,6 @@ export const PAGE_PATHS = [ name: GRANTS_NAME, path: GRANTS_PATH, }, - { - name: ETHOS_NAME, - path: ETHOS_PATH, - }, { name: LORE_NAME, path: LORE_PATH, @@ -111,7 +105,3 @@ export const USER_FIELDS = { NAME: "name", } export const USER_FIELD_CSV = reduceToCsv(USER_FIELDS) - -// ETHos constants -export const SHADOW_SMALL = "1rem" -export const SHADOW_LARGE = "2rem" diff --git a/pages/ethos.tsx b/pages/ethos.tsx deleted file mode 100644 index 9d5db34..0000000 --- a/pages/ethos.tsx +++ /dev/null @@ -1,202 +0,0 @@ -import { FC } from "react" -import { Box, Flex, Grid, Link, Text } from "@chakra-ui/react" -import { PageMetadata, InfoCard, ButtonLink, CtaCard, Icon, IconName } from "../components" -import { SHADOW_SMALL, SHADOW_LARGE } from "../constants" - -const Ethos: FC = () => ( - - - - {/* Hero */} - - ETH - - O - - S - - - {/* Sub-hero */} - - - An incubator for IRL Ethereum events - - - - {/* Calls to action */} - - - - Apply - - - - - - Sponsor - - - - - {/* Cards */} - - - Our mission is to identify global events that unite groups of diverse - humans, exploring the intersections of Web3 technologies and human - reality. ETHos is enabled by a small and focused team of stewards, - distributed across four continents, working together to surface and - support IRL events, with Ethereum ethos. - - - - An experienced group of global event organizers and community builders - funding experiments in physical gathering spaces. - - - - {/* Substack email subscription callout */} - - - - - Subscribe to our newsletter - - - - - -) - -export default Ethos From d049174bafac5b9ee7cda8f0e6c0f316f51deb2e Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Mon, 20 May 2024 07:35:09 -0400 Subject: [PATCH 2/2] fix: conditionally show url button --- components/WipItem.tsx | 6 +++--- components/WipList.tsx | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/WipItem.tsx b/components/WipItem.tsx index d41b039..6e8ed21 100644 --- a/components/WipItem.tsx +++ b/components/WipItem.tsx @@ -4,7 +4,7 @@ interface WipItemProps extends BoxProps { status: string title: string desc: string - url: string + url?: string color: string } @@ -39,14 +39,14 @@ export const WipItem = ({ {desc} - + {url && - + } ) } diff --git a/components/WipList.tsx b/components/WipList.tsx index 371743a..7b67a07 100644 --- a/components/WipList.tsx +++ b/components/WipList.tsx @@ -12,7 +12,6 @@ const data = [ status: "Launched!", title: "ETHos Website", desc: "Incubator for IRL Ethereum events", - url: "/#deprecated", }, { status: "MEME",