mirror of
https://github.com/System-End/site.git
synced 2026-04-19 18:35:12 +00:00
Next-ify some links (#442)
This commit is contained in:
parent
5994bef7fc
commit
9271d79e03
4 changed files with 32 additions and 28 deletions
|
|
@ -3,6 +3,7 @@ import styled from '@emotion/styled'
|
|||
import usePrefersMotion from '../lib/use-prefers-motion'
|
||||
import useHasMounted from '../lib/use-has-mounted'
|
||||
import { formatted } from '../lib/members'
|
||||
import Link from 'next/link'
|
||||
|
||||
let Highlight = styled(Text)`
|
||||
color: inherit;
|
||||
|
|
@ -45,16 +46,17 @@ const Content = () => (
|
|||
For leaders, you'll be able to connect with other leaders and support one
|
||||
another.
|
||||
</Text>
|
||||
<Button
|
||||
as="a"
|
||||
href="https://hackclub.com/slack/"
|
||||
variant="ctaLg"
|
||||
sx={{
|
||||
background: 'linear-gradient(-132deg, #338eda 14%, #33d6a6 82%)'
|
||||
}}
|
||||
>
|
||||
Join our Slack →
|
||||
</Button>
|
||||
<Link href="/slack" passHref>
|
||||
<Button
|
||||
as="a"
|
||||
variant="ctaLg"
|
||||
sx={{
|
||||
background: 'linear-gradient(-132deg, #338eda 14%, #33d6a6 82%)'
|
||||
}}
|
||||
>
|
||||
Join our Slack →
|
||||
</Button>
|
||||
</Link>
|
||||
</Container>
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -430,16 +430,17 @@ const Page = () => (
|
|||
<Highlight>every Hack Club is student-led</Highlight> &
|
||||
members make self-directed projects.
|
||||
</Text>
|
||||
<Button
|
||||
as="a"
|
||||
href="https://hackclub.com/philosophy/"
|
||||
variant="ctaLg"
|
||||
sx={{
|
||||
background: 'linear-gradient(-32deg, #6f31b7 14%, #fb558e 82%)'
|
||||
}}
|
||||
>
|
||||
Our philosophy →
|
||||
</Button>
|
||||
<NextLink href="/philosophy" passHref>
|
||||
<Button
|
||||
as="a"
|
||||
variant="ctaLg"
|
||||
sx={{
|
||||
background: 'linear-gradient(-32deg, #6f31b7 14%, #fb558e 82%)'
|
||||
}}
|
||||
>
|
||||
Our philosophy →
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Container>
|
||||
</Box>
|
||||
<Box as="section" sx={{ py: [4, 5, 6], color: 'black' }}>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { Box, Heading, Container, Text, Button, Link } from 'theme-ui'
|
|||
import Nav from '../components/nav'
|
||||
import styled from '@emotion/styled'
|
||||
import Footer from '../components/footer'
|
||||
import NextLink from "next/link"
|
||||
|
||||
const Header = styled(Box)`
|
||||
color: white;
|
||||
|
|
@ -268,13 +269,14 @@ export default function Philosophy() {
|
|||
>
|
||||
Start a club
|
||||
</Button>
|
||||
<Button
|
||||
sx={{ bg: 'white', color: 'red' }}
|
||||
as="a"
|
||||
href="https://hackclub.com/slack"
|
||||
>
|
||||
Join our Slack
|
||||
</Button>
|
||||
<NextLink href="/slack" passHref>
|
||||
<Button
|
||||
sx={{ bg: 'white', color: 'red' }}
|
||||
as="a"
|
||||
>
|
||||
Join our Slack
|
||||
</Button>
|
||||
</NextLink>
|
||||
</Box>
|
||||
</Box>
|
||||
<Footer light />
|
||||
|
|
|
|||
|
|
@ -183,7 +183,6 @@ const SlackPage = () => {
|
|||
</Card>
|
||||
<Card
|
||||
bg="red"
|
||||
as="a"
|
||||
sx={{
|
||||
gridColumn: ['span 2 !important', 'span 2 !important'],
|
||||
gridRow: ['span 1 !important', 'span 3 !important'],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue