-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from EpicsDAO/improve-doc
add Epics Links
- Loading branch information
Showing
13 changed files
with
495 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
website/solv-epics-dev/src/components/rows/daos/DAOsEpicsRow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { Link } from '@/navigation' | ||
|
||
import { useLocale, useTranslations } from 'next-intl' | ||
import { Button } from '@/components/ui/button' | ||
import { cn } from '@/lib/utils' | ||
import { mainShardGradation } from '@/lib/decoration' | ||
import { faDiscord } from '@fortawesome/free-brands-svg-icons' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import Image from 'next/image' | ||
import { EpicsDAOImg } from '@/assets/img' | ||
import { | ||
EPICS_DAO_DISCORD_INVITE_LINK, | ||
EPICS_DAO_WEB_LINK, | ||
} from '@/constants/links' | ||
|
||
export default function DAOsEpicsRow() { | ||
const t = useTranslations() | ||
const locale = useLocale() | ||
return ( | ||
<> | ||
<div className="mx-auto grid max-w-7xl items-center justify-center gap-4 px-6 py-48 sm:gap-8 sm:py-80 md:grid-cols-2 md:gap-16 lg:gap-24"> | ||
<div className="w-full md:order-last"> | ||
<Link | ||
href={`${EPICS_DAO_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="hover:opacity-80" | ||
> | ||
<Image | ||
src={EpicsDAOImg} | ||
alt="Epics DAO" | ||
className="w-full rounded-lg shadow-lg" | ||
unoptimized | ||
width={256} | ||
height={256} | ||
/> | ||
</Link> | ||
</div> | ||
<div className="grid w-full gap-4 md:order-first"> | ||
<h2 | ||
className={cn( | ||
'py-2 text-3xl font-extrabold tracking-tighter sm:text-4xl', | ||
mainShardGradation, | ||
)} | ||
> | ||
{t('common.DAOsEpicsRow.title')} | ||
</h2> | ||
<p className="max-w-xl text-lg font-medium tracking-tight text-zinc-500 dark:text-zinc-300 sm:text-xl"> | ||
{t('common.DAOsEpicsRow.body')} | ||
</p> | ||
<div className="flex flex-wrap gap-3 pt-6"> | ||
<Link | ||
href={`${EPICS_DAO_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button>{t('common.DAOsEpicsRow.button1')}</Button> | ||
</Link> | ||
<Link | ||
href={`${EPICS_DAO_DISCORD_INVITE_LINK}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button variant="outline"> | ||
<FontAwesomeIcon icon={faDiscord} className="mr-2 h-5 w-5" /> | ||
{t('common.DAOsEpicsRow.button2')} | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
73 changes: 73 additions & 0 deletions
73
website/solv-epics-dev/src/components/rows/daos/DAOsValidatorsRow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { Link } from '@/navigation' | ||
import { useLocale, useTranslations } from 'next-intl' | ||
import { Button } from '@/components/ui/button' | ||
import { cn } from '@/lib/utils' | ||
import { mainShardGradation } from '@/lib/decoration' | ||
import Image from 'next/image' | ||
import { ValidatorsDAOImg } from '@/assets/img' | ||
import { | ||
VALIDATORS_DAO_WEB_LINK, | ||
VALIDATORS_DAO_DISCORD_INVITE_LINK, | ||
} from '@/constants/links' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import { faDiscord } from '@fortawesome/free-brands-svg-icons' | ||
|
||
export default function DAOsValidatorsRow() { | ||
const t = useTranslations() | ||
const locale = useLocale() | ||
return ( | ||
<> | ||
<div className="mx-auto grid max-w-7xl items-center justify-center gap-4 px-6 py-48 sm:gap-8 sm:py-80 md:grid-cols-2 md:gap-16 lg:gap-24"> | ||
<div className="w-full"> | ||
<Link | ||
href={`${VALIDATORS_DAO_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="hover:opacity-80" | ||
> | ||
<Image | ||
src={ValidatorsDAOImg} | ||
alt="Validators DAO" | ||
className="w-full rounded-lg shadow-lg" | ||
unoptimized | ||
width={256} | ||
height={256} | ||
/> | ||
</Link> | ||
</div> | ||
<div className="grid w-full gap-4"> | ||
<h2 | ||
className={cn( | ||
'py-2 text-3xl font-extrabold tracking-tighter sm:text-4xl', | ||
mainShardGradation, | ||
)} | ||
> | ||
{t('common.DAOsValidatorsRow.title')} | ||
</h2> | ||
<p className="max-w-xl text-lg font-medium tracking-tight text-zinc-500 dark:text-zinc-300 sm:text-xl"> | ||
{t('common.DAOsValidatorsRow.body')} | ||
</p> | ||
<div className="flex flex-wrap gap-3 pt-6"> | ||
<Link | ||
href={`${VALIDATORS_DAO_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button>{t('common.DAOsValidatorsRow.button1')}</Button> | ||
</Link> | ||
<Link | ||
href={`${VALIDATORS_DAO_DISCORD_INVITE_LINK}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button variant="outline"> | ||
<FontAwesomeIcon icon={faDiscord} className="mr-2 h-5 w-5" /> | ||
{t('common.DAOsValidatorsRow.button2')} | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
75 changes: 75 additions & 0 deletions
75
website/solv-epics-dev/src/components/rows/products/ProductsBuidlersCollectiveRow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { Link } from '@/navigation' | ||
import { useLocale, useTranslations } from 'next-intl' | ||
import { Button } from '@/components/ui/button' | ||
import { cn } from '@/lib/utils' | ||
import { mainShardGradation } from '@/lib/decoration' | ||
import Image from 'next/image' | ||
import { BuidlersCollectiveImg } from '@/assets/img' | ||
import { | ||
BUIDLERS_COLLECTIVE_WEB_LINK, | ||
EPICS_DAO_DISCORD_INVITE_LINK, | ||
} from '@/constants/links' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import { faDiscord } from '@fortawesome/free-brands-svg-icons' | ||
|
||
export default function ProductsBuidlersCollectiveRow() { | ||
const t = useTranslations() | ||
const locale = useLocale() | ||
return ( | ||
<> | ||
<div className="mx-auto grid max-w-7xl items-center justify-center gap-4 px-6 py-48 sm:gap-8 sm:py-80 md:grid-cols-2 md:gap-16 lg:gap-24"> | ||
<div className="w-full"> | ||
<Link | ||
href={`${BUIDLERS_COLLECTIVE_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="hover:opacity-80" | ||
> | ||
<Image | ||
src={BuidlersCollectiveImg} | ||
alt="Buidlers Collective" | ||
className="w-full rounded-lg shadow-lg" | ||
unoptimized | ||
width={256} | ||
height={256} | ||
/> | ||
</Link> | ||
</div> | ||
<div className="grid w-full gap-4"> | ||
<h2 | ||
className={cn( | ||
'py-2 text-3xl font-extrabold tracking-tighter sm:text-4xl', | ||
mainShardGradation, | ||
)} | ||
> | ||
{t('common.ProductsBuidlersCollectiveRow.title')} | ||
</h2> | ||
<p className="max-w-xl text-lg font-medium tracking-tight text-zinc-500 dark:text-zinc-300 sm:text-xl"> | ||
{t('common.ProductsBuidlersCollectiveRow.body')} | ||
</p> | ||
<div className="flex flex-wrap gap-3 pt-6"> | ||
<Link | ||
href={`${BUIDLERS_COLLECTIVE_WEB_LINK}${locale}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button> | ||
{t('common.ProductsBuidlersCollectiveRow.button1')} | ||
</Button> | ||
</Link> | ||
<Link | ||
href={`${EPICS_DAO_DISCORD_INVITE_LINK}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button variant="outline"> | ||
<FontAwesomeIcon icon={faDiscord} className="mr-2 h-5 w-5" /> | ||
{t('common.ProductsBuidlersCollectiveRow.button2')} | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
Oops, something went wrong.