From 057ac0db4af4d41fe69db9f241ff010de257888c Mon Sep 17 00:00:00 2001
From: henry <63601449+HenryBass@users.noreply.github.com>
Date: Thu, 29 Jun 2023 09:29:19 -0400
Subject: [PATCH] Added Haxidraw card & slide (#821)
* Added Haxidraw card
* Removed github link
---
components/index/cards/button.js | 3 +-
components/index/cards/haxidraw.js | 72 ++++++++++++++++++++++++++++++
lib/carousel.json | 9 ++++
pages/index.js | 2 +
4 files changed, 85 insertions(+), 1 deletion(-)
create mode 100644 components/index/cards/haxidraw.js
diff --git a/components/index/cards/button.js b/components/index/cards/button.js
index 7b3b2eb4..cb6e9008 100644
--- a/components/index/cards/button.js
+++ b/components/index/cards/button.js
@@ -10,6 +10,7 @@ export default function Buttons({
content,
link,
primary,
+ overrideColor,
...props
}) {
let fontWeight = primary ? '700' : '400'
@@ -26,7 +27,7 @@ export default function Buttons({
data-effect="solid"
data-tip
sx={{
- background: primary || 'rgb(255, 255, 255, 0.3)',
+ background: primary || (overrideColor || 'rgb(255, 255, 255, 0.3)'),
borderRadius: '100px',
border: 'none',
display: 'flex',
diff --git a/components/index/cards/haxidraw.js b/components/index/cards/haxidraw.js
new file mode 100644
index 00000000..98b81622
--- /dev/null
+++ b/components/index/cards/haxidraw.js
@@ -0,0 +1,72 @@
+import CardModel from './card-model'
+import { Box, Flex, Grid, Image, Link, Text } from 'theme-ui'
+import Buttons from './button'
+import styled from '@emotion/styled'
+import RelativeTime from 'react-relative-time'
+
+/** @jsxImportSource theme-ui */
+
+export default function Haxidraw() {
+ return (
+
+
+ Haxidraw
+
+
+
+
+ Haxidraw is a W.I.P. open source drawing machine and online editor,
+ designed to be a fun and beginner friendly
+ introduction to digital fabrication and generative art.
+
+
+
+
+
+ Learn more
+
+
+ Create something in the editor
+
+
+ Share your creations and chat on Slack
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/lib/carousel.json b/lib/carousel.json
index af0a3956..8f7e7165 100644
--- a/lib/carousel.json
+++ b/lib/carousel.json
@@ -79,5 +79,14 @@
"description": "Join 1k teens designing PCBs, learning hardware, and building electronics",
"img": "https://cloud-jrox24mrn.vercel.app/orpheus_leap_micro_final.png",
"link": "/onboard"
+ },
+ {
+ "background": "dark",
+ "titleColor": "blue",
+ "textColor": "white",
+ "title": "Haxidraw",
+ "description": "An open source drawing machine and online editor for generative art",
+ "img": "https://emoji.slack-edge.com/T0266FRGM/tw_pencil2/c6afadc2280e571d.png",
+ "link": "https://haxidraw.hackclub.com"
}
]
diff --git a/pages/index.js b/pages/index.js
index e6686b8b..0e73059e 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -37,6 +37,7 @@ import Icon from '../components/icon'
import GitHub from '../components/index/github'
import Photo from '../components/photo'
import Comma from '../components/comma'
+import Haxidraw from '../components/index/cards/haxidraw'
/** @jsxImportSource theme-ui */
@@ -752,6 +753,7 @@ function Page({
gameImage={gameImage}
gameImage1={gameImage1}
/>
+