mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
making things look nicer
This commit is contained in:
parent
f23105bb54
commit
cd608892c8
3 changed files with 25 additions and 26 deletions
|
|
@ -24,7 +24,7 @@ const Content = () => (
|
|||
mb: [2, 3]
|
||||
}}
|
||||
>
|
||||
The door is open...
|
||||
Hack Club Slack
|
||||
</Heading>
|
||||
</Box>
|
||||
<SlideUp sx={{ zIndex: 5, display: 'flex', alignItems: 'center' }}>
|
||||
|
|
|
|||
|
|
@ -2,14 +2,7 @@ import { Box, Image, Text } from 'theme-ui'
|
|||
import { VisibilityContext } from 'react-horizontal-scrolling-menu'
|
||||
import { useContext } from 'react'
|
||||
|
||||
export default function Project({
|
||||
title,
|
||||
description,
|
||||
sx,
|
||||
color,
|
||||
img,
|
||||
itemId
|
||||
}) {
|
||||
export default function Project({ title, description, color, img, itemId }) {
|
||||
const visible = useContext(VisibilityContext)
|
||||
const isVisible = visible.isItemVisible(itemId)
|
||||
|
||||
|
|
@ -31,7 +24,7 @@ export default function Project({
|
|||
transformOrigin: 'center',
|
||||
opacity: isVisible ? 1 : 0.25,
|
||||
mx: 16,
|
||||
sx
|
||||
ml: `${itemId === 0 ? '26vw' : '0'}`
|
||||
}}
|
||||
itemId={itemId}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import Meta from '@hackclub/meta'
|
||||
import Head from 'next/head'
|
||||
import { Box, Container, Flex, Heading, Text } from 'theme-ui'
|
||||
import { Box, Container, Heading, Text } from 'theme-ui'
|
||||
import { useRef } from 'react'
|
||||
import { ScrollMenu } from 'react-horizontal-scrolling-menu'
|
||||
import 'react-horizontal-scrolling-menu/dist/styles.css'
|
||||
|
|
@ -9,7 +9,6 @@ import { thousands } from '../lib/members'
|
|||
import projects from '../components/slack/projects'
|
||||
import Channels from '../components/slack/channels'
|
||||
import Join from '../components/slack/catchall'
|
||||
import SlackEvents from '../components/slack/slack-events'
|
||||
import Footer from '../components/footer'
|
||||
import ForceTheme from '../components/force-theme'
|
||||
import Nav from '../components/nav'
|
||||
|
|
@ -49,7 +48,7 @@ const SlackPage = () => {
|
|||
worlds that suit you.
|
||||
</Text>
|
||||
<Channels />
|
||||
<Flex
|
||||
{/*<Flex
|
||||
sx={{
|
||||
gridRow: [null, 'span 2'],
|
||||
gridColumn: ['span 2', 'span 3'],
|
||||
|
|
@ -69,7 +68,7 @@ const SlackPage = () => {
|
|||
Live from our Slack...
|
||||
</Heading>
|
||||
<SlackEvents />
|
||||
</Flex>
|
||||
</Flex>*/}
|
||||
<Text as="h1" variant="title" sx={{ mt: [4, 5], mb: 3 }}>
|
||||
Where the makers hang out...
|
||||
</Text>
|
||||
|
|
@ -78,18 +77,25 @@ const SlackPage = () => {
|
|||
Hack Club Slack.
|
||||
</Text>
|
||||
</Container>
|
||||
<ScrollMenu Footer={Arrows} onWheel={onWheel}>
|
||||
{projects.map(project => (
|
||||
<Project
|
||||
title={project.title}
|
||||
description={project.description}
|
||||
img={project.img}
|
||||
color={project.color}
|
||||
itemId={project.itemId}
|
||||
key={project.itemId}
|
||||
/>
|
||||
))}
|
||||
</ScrollMenu>
|
||||
<Box
|
||||
sx={{
|
||||
backgroundColor: '#F9FAFC',
|
||||
paddingY: '1rem'
|
||||
}}
|
||||
>
|
||||
<ScrollMenu Footer={Arrows} onWheel={onWheel}>
|
||||
{projects.map(project => (
|
||||
<Project
|
||||
title={project.title}
|
||||
description={project.description}
|
||||
img={project.img}
|
||||
color={project.color}
|
||||
itemId={project.itemId}
|
||||
key={project.itemId}
|
||||
/>
|
||||
))}
|
||||
</ScrollMenu>
|
||||
</Box>
|
||||
<Container sx={{ py: [4, 5] }}>
|
||||
<Box sx={{ gap: '2rem', display: ['grid', 'flex'] }}>
|
||||
<Quote
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue