Skip to content

Commit

Permalink
lint errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yami-Yam committed May 7, 2024
1 parent eae1ba7 commit 0223499
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
19 changes: 8 additions & 11 deletions pages/discord.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { GetStaticProps, NextPage } from 'next'
import Link from 'next/link'

import { useRouter } from 'next/router'

Expand All @@ -8,20 +7,19 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import { useTranslation } from 'next-i18next'
import Button from 'components/Button'

const discord: NextPage = () => {
const Discord: NextPage = () => {
const { t } = useTranslation(`discord`)
const { locale } = useRouter()


return (
<>
<SEO title={`WE HAVE DISCORD!!`}/>
<SEO title={`WE HAVE DISCORD!!`} />
<Nav />
<div
className="z-20 mt-[74px] overflow-x-clip pt-8 lg:relative"
id="content"
>
<div className="mx-auto mt-8 max-w-7xl grid-cols-1 px-6 lg:grid-cols-2 lg:gap-24 lg:pt-20 lg:pb-[14rem] xl:grid">
<div className="mx-auto mt-8 max-w-7xl grid-cols-1 px-6 lg:grid-cols-2 lg:gap-24 lg:pt-20 lg:pb-[14rem] xl:grid">
<div className="pb-8 lg:max-w-4xl">
<h1
className={
Expand All @@ -32,21 +30,20 @@ const discord: NextPage = () => {
}
>
{t(`title1`)}
<br />
<br />
</h1>

<p className="my-4 text-lg text-black dark:text-neutral-200 xs:text-xl lg:mb-8 lg:max-w-[36ch] ">
{t(`hero-p`)}
</p>
<p className="my-4 text-lg text-black dark:text-neutral-200 xs:text-xl lg:mb-8 lg:max-w-[36ch] ">
<p className="my-4 text-lg text-black dark:text-neutral-200 xs:text-xl lg:mb-8 lg:max-w-[36ch] ">
{t(`discord-invite`)}
</p>

<Button
//small-button
//small-button
href="https://discord.gg/rsPNAxwweg"
className=" inline-block sm:hidden"

>
{t(`join-discord-short`)}&rarr;
</Button>
Expand All @@ -59,7 +56,7 @@ const discord: NextPage = () => {
</Button>
</div>
</div>
</div>
</div>
<Footer />
</>
)
Expand All @@ -77,4 +74,4 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => {
revalidate: 10,
}
}
export default discord
export default Discord
27 changes: 15 additions & 12 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,32 @@ const Home: NextPage<cache> = ({ contributors }) => {
{t(`hero-p`)}
</p>


<p className="my-4 text-lg text-black dark:text-neutral-200 xs:text-xl lg:mb-8 lg:max-w-[36ch] ">
{t(`survey-invite`)}
</p>

<Button
//small-button
onClick={() => {
window.open("https://docs.google.com/forms/d/e/1FAIpQLSfqaFTQsKdWxQINWxMgMp_eSy3b37GyiPJhUfKfH-B1Q90dug/viewform", "_blank");
window.location.href="/discord"
}}
//small-button
onClick={() => {
window.open(
`https://docs.google.com/forms/d/e/1FAIpQLSfqaFTQsKdWxQINWxMgMp_eSy3b37GyiPJhUfKfH-B1Q90dug/viewform`,
`_blank`,
)
window.location.href = `/discord`
}}
className=" inline-block sm:hidden"

>
{t(`join-survey-short`)}&rarr;
</Button>
<Button
size="large"
onClick={() => {
window.open("https://docs.google.com/forms/d/e/1FAIpQLSfqaFTQsKdWxQINWxMgMp_eSy3b37GyiPJhUfKfH-B1Q90dug/viewform", "_blank");
window.location.href="/discord"
}}

onClick={() => {
window.open(
`https://docs.google.com/forms/d/e/1FAIpQLSfqaFTQsKdWxQINWxMgMp_eSy3b37GyiPJhUfKfH-B1Q90dug/viewform`,
`_blank`,
)
window.location.href = `/discord`
}}
className=" hidden sm:inline-block"
>
{t(`join-survey-long`)} &rarr;
Expand Down

0 comments on commit 0223499

Please sign in to comment.