Skip to content

Commit

Permalink
Merge pull request #103 from turbo-eth/feat/add-discord-pill-integrat…
Browse files Browse the repository at this point in the history
…ions

Feat: Add Discord pill integrations
  • Loading branch information
marthendalnunes authored Jun 26, 2023
2 parents 608c191 + f41a422 commit 1fd4805
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
14 changes: 11 additions & 3 deletions app/(general)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { motion } from 'framer-motion'
import Image from 'next/image'
import { FaGithub } from 'react-icons/fa'
import { FaDiscord, FaGithub } from 'react-icons/fa'
import Balancer from 'react-wrap-balancer'

import { WalletAddress } from '@/components/blockchain/wallet-address'
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function Home() {
<motion.p className="mt-6 text-center text-gray-500 dark:text-gray-200 md:text-xl" variants={FADE_DOWN_ANIMATION_VARIANTS}>
<Balancer className="text-xl font-semibold">{siteConfig.description}</Balancer>
</motion.p>
<motion.div className="mx-auto mt-6 flex items-center justify-center space-x-5" variants={FADE_DOWN_ANIMATION_VARIANTS}>
<motion.div className="mx-auto mt-6 flex flex-wrap items-center justify-center gap-y-3 space-x-4" variants={FADE_DOWN_ANIMATION_VARIANTS}>
<a
className="group flex max-w-fit items-center justify-center space-x-2 rounded-full border border-black bg-black px-5 py-2 text-sm text-white transition-colors hover:bg-white hover:text-black"
href={DEPLOY_URL}
Expand All @@ -64,12 +64,20 @@ export default function Home() {
</a>
<a
className="flex max-w-fit items-center justify-center space-x-2 rounded-full border border-gray-300 bg-white px-5 py-2 text-sm text-gray-600 shadow-md transition-colors hover:border-gray-800"
href="https://github.com/turbo-eth/template-web3-app"
href={siteConfig.links.github}
rel="noopener noreferrer"
target="_blank">
<FaGithub />
<p>Star on GitHub</p>
</a>
<a
className="flex max-w-fit items-center justify-center space-x-2 rounded-full border border-indigo-400 bg-indigo-500 px-5 py-2 text-sm text-white shadow-md transition-colors hover:border-indigo-600"
href={siteConfig.links.discord}
rel="noopener noreferrer"
target="_blank">
<FaDiscord />
<p>Join us on Discord</p>
</a>
</motion.div>
<span className="tag mt-6">⚡️TurboETH is in active development.</span>
</motion.div>
Expand Down
8 changes: 5 additions & 3 deletions components/layout/dashboard-footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTMLAttributes } from 'react'

import { FaGithub, FaTwitter } from 'react-icons/fa'
import { FaDiscord, FaGithub, FaTwitter } from 'react-icons/fa'

import { siteConfig } from '@/config/site'
import { cn } from '@/lib/utils'
Expand All @@ -16,14 +16,16 @@ export function DashboardFooter({ className, ...props }: HTMLAttributes<HTMLElem
<a className="link my-2 text-xs" href="https://districtlabs.com/" rel="noreferrer" target={'_blank'}>
Built by District Labs
</a>
<div className="mt-2 flex items-center">
<div className="mt-2 flex items-center space-x-2">
<LinkComponent href={`${siteConfig.links.github}`}>
<FaGithub />
</LinkComponent>
<div className="mx-2" />
<LinkComponent href={`${siteConfig.links.twitter}`}>
<FaTwitter />
</LinkComponent>
<LinkComponent href={`${siteConfig.links.discord}`}>
<FaDiscord />
</LinkComponent>
</div>
</footer>
)
Expand Down
8 changes: 5 additions & 3 deletions components/layout/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTMLAttributes } from 'react'

import { FaGithub, FaTwitter } from 'react-icons/fa'
import { FaDiscord, FaGithub, FaTwitter } from 'react-icons/fa'

import { siteConfig } from '@/config/site'
import { cn } from '@/lib/utils'
Expand All @@ -16,14 +16,16 @@ export function Footer({ className, ...props }: HTMLAttributes<HTMLElement>) {
<a className="link my-2 text-xs" href="https://districtlabs.com/" rel="noreferrer" target={'_blank'}>
Built by District Labs
</a>
<div className="mt-2 flex items-center">
<div className="mt-2 flex items-center space-x-2">
<LinkComponent href={`${siteConfig.links.github}`}>
<FaGithub />
</LinkComponent>
<div className="mx-2" />
<LinkComponent href={`${siteConfig.links.twitter}`}>
<FaTwitter />
</LinkComponent>
<LinkComponent href={`${siteConfig.links.discord}`}>
<FaDiscord />
</LinkComponent>
</div>
</footer>
)
Expand Down
2 changes: 2 additions & 0 deletions config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface SiteConfig {
previewImg: string
localeDefault: string
links: {
discord: string
twitter: string
github: string
}
Expand All @@ -24,6 +25,7 @@ export const siteConfig: SiteConfig = {
previewImg: `${SITE_CANONICAL}/preview.png`,
localeDefault: 'en',
links: {
discord: 'https://discord.gg/U4jy7Xfh76',
twitter: 'https://twitter.com/district_labs',
github: 'https://github.com/turbo-eth',
},
Expand Down

1 comment on commit 1fd4805

@vercel
Copy link

@vercel vercel bot commented on 1fd4805 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.