Skip to content

Commit

Permalink
feat: adds join discord card
Browse files Browse the repository at this point in the history
  • Loading branch information
jongomez committed Oct 26, 2023
1 parent 758e7d7 commit c777a40
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/components/JoinDiscordCard/JoinDiscordCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Button, Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import Link from 'next/link'
import { DiscordIcon } from '../Icons/DiscordIcon'

type JoinDiscordCardProps = React.HTMLAttributes<HTMLDivElement>

export const JoinDiscordCard = (props: JoinDiscordCardProps) => {
return (
<JoinDiscordCardContainer {...props}>
<Typography variant="body1">Join the discussion</Typography>
<Link
href="https://discord.gg/logos-state"
style={{
textDecoration: 'none',
}}
>
<Button icon={<DiscordIcon color="primary" />}>
<Typography variant="body2">Go to Discord</Typography>
</Button>
</Link>
</JoinDiscordCardContainer>
)
}

const JoinDiscordCardContainer = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgb(var(--lsd-border-primary));
padding: 24px 0px;
margin-bottom: 24px;
`
1 change: 1 addition & 0 deletions src/components/JoinDiscordCard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './JoinDiscordCard'

0 comments on commit c777a40

Please sign in to comment.