mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Point /slack to auth.hackclub.com (#1745)
This commit is contained in:
parent
ea174cbfc9
commit
751102ef12
2 changed files with 68 additions and 10 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import { Box, Grid, Heading } from 'theme-ui'
|
||||
import { Box, Card, Grid, Heading, Text } from 'theme-ui'
|
||||
import SlideUp from '../slide-up'
|
||||
import JoinForm from './join-form'
|
||||
import usePrefersMotion from '../../lib/use-prefers-motion'
|
||||
import useHasMounted from '../../lib/use-has-mounted'
|
||||
|
||||
const useWaitlist = process.env.NEXT_PUBLIC_OPEN !== 'true'
|
||||
|
||||
const Content = () => (
|
||||
<Grid gap={3} pt={[5, '100px']} pb={[3, 4]}>
|
||||
<Box
|
||||
|
|
@ -28,14 +30,68 @@ const Content = () => (
|
|||
</Heading>
|
||||
</Box>
|
||||
<SlideUp sx={{ zIndex: 5, display: 'flex', alignItems: 'center' }}>
|
||||
<JoinForm
|
||||
sx={{
|
||||
variant: 'cards.translucent',
|
||||
position: 'relative',
|
||||
zIndex: 3,
|
||||
maxWidth: 'null'
|
||||
}}
|
||||
/>
|
||||
{useWaitlist ? (
|
||||
<JoinForm
|
||||
sx={{
|
||||
variant: 'cards.translucent',
|
||||
position: 'relative',
|
||||
zIndex: 3,
|
||||
maxWidth: 'null'
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<Card
|
||||
sx={{
|
||||
variant: 'cards.translucent',
|
||||
maxWidth: 'narrow',
|
||||
mx: 'auto',
|
||||
textAlign: 'center'
|
||||
}}
|
||||
>
|
||||
<Text as="p" sx={{ fontSize: [2, 3], mb: 3 }}>
|
||||
Join thousands of teen hackers chatting, coding, and building together!
|
||||
</Text>
|
||||
<Text
|
||||
as="a"
|
||||
href="https://auth.hackclub.com/slack"
|
||||
sx={{
|
||||
bg: 'red',
|
||||
backgroundImage: t => t.util.gx('orange', 'red'),
|
||||
color: 'white',
|
||||
fontSize: [2, 3],
|
||||
px: 4,
|
||||
py: 3,
|
||||
borderRadius: 'extra',
|
||||
fontWeight: 'bold',
|
||||
textDecoration: 'none',
|
||||
display: 'inline-block',
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
transition: 'transform 0.125s ease-in-out',
|
||||
':hover': {
|
||||
transform: 'scale(1.05)'
|
||||
},
|
||||
'::before': {
|
||||
content: '""',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
background: 'linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.2) 50%, transparent 90%)',
|
||||
transform: 'translateX(-100%)',
|
||||
animation: 'shimmer 2.5s ease-in-out infinite'
|
||||
},
|
||||
'@keyframes shimmer': {
|
||||
'0%': { transform: 'translateX(-100%)' },
|
||||
'100%': { transform: 'translateX(100%)' }
|
||||
}
|
||||
}}
|
||||
>
|
||||
Join the Slack →
|
||||
</Text>
|
||||
</Card>
|
||||
)}
|
||||
</SlideUp>
|
||||
</Grid>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { Box, Image, Link, Text } from 'theme-ui'
|
||||
import Icon from '@hackclub/icons'
|
||||
|
||||
const useWaitlist = process.env.NEXT_PUBLIC_OPEN !== 'true'
|
||||
|
||||
export default function Join() {
|
||||
return (
|
||||
<Box
|
||||
|
|
@ -32,7 +34,7 @@ export default function Join() {
|
|||
Discover the Hack Club Slack
|
||||
</Text>
|
||||
<Link
|
||||
href="#"
|
||||
href={useWaitlist ? '#' : 'https://auth.hackclub.com/slack'}
|
||||
sx={{
|
||||
mb: 3,
|
||||
cursor: 'pointer',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue