-
Notifications
You must be signed in to change notification settings - Fork 1
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 #32 from EveripediaNetwork/update-design
Update Section Design
- Loading branch information
Showing
18 changed files
with
232 additions
and
23 deletions.
There are no files selected for viewing
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.
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
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
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,80 @@ | ||
"use client"; | ||
|
||
import InViewAnimateBottom from "@/components/transitions/InViewAnimateBottom"; | ||
import { useTheme } from "next-themes"; | ||
import Image from "next/image"; | ||
import React, { useEffect, useState } from "react"; | ||
import { TokenBrief } from "../Iqtoken"; | ||
|
||
export const FeatureList = ({ | ||
title, | ||
description, | ||
icon, | ||
delay, | ||
}: { | ||
title: string; | ||
description: string; | ||
icon: JSX.Element; | ||
delay?: number; | ||
}) => { | ||
return ( | ||
<InViewAnimateBottom className="flex flex-1 flex-col gap-4 items-start"> | ||
<div className="w-12 h-12 rounded-full flex justify-center text-xl dark:text-brand-800 text-brand-500 items-center border-8 dark:border-brand-200 border-brand-50 dark:bg-brand-400 bg-brand-100"> | ||
{icon} | ||
</div> | ||
<div className=""> | ||
<h4 className="dark:text-whiteAlpha-900 text-gray800 font-semibold text-lg md:text-xl mb-1"> | ||
{title} | ||
</h4> | ||
<p className="text-sm lg:text-base">{description}</p> | ||
</div> | ||
</InViewAnimateBottom> | ||
); | ||
}; | ||
|
||
const Iqcode = () => { | ||
const { theme } = useTheme(); | ||
const [appTheme, setAppTheme] = useState(""); | ||
|
||
useEffect(() => { | ||
setAppTheme(theme ?? ""); | ||
}, [theme]); | ||
|
||
let imageUrl: string | undefined; | ||
if (appTheme === "light") { | ||
imageUrl = "/images/iq-code-light.png"; | ||
} | ||
if (appTheme === "dark") { | ||
imageUrl = "/images/iq-code-dark.png"; | ||
} | ||
|
||
return ( | ||
<div | ||
id="iq-code" | ||
className="max-w-[1536px] px-4 sm:px-10 xl:px-[120px] mx-auto flex flex-col gap-10 xl:gap-16 pt-[48px] sm:pt-[80px] 2xl:pt-24 relative" | ||
> | ||
<TokenBrief | ||
title="IQ code" | ||
description={ | ||
"IQ code is an upcoming smart contract coding tool with AI features specifically tailored for smart contracts. The product will function as a Solidity advisor, aiming to improve coding efficiency and code quality, to assist developers. " | ||
} | ||
action="https://iqcode.ai/demo" | ||
buttonText="See Demo" | ||
/> | ||
|
||
<InViewAnimateBottom> | ||
{imageUrl && ( | ||
<Image | ||
src={imageUrl} | ||
alt="IQ Code Illustration" | ||
sizes="100vw" | ||
height={690} | ||
width={1300} | ||
/> | ||
)} | ||
</InViewAnimateBottom> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Iqcode; |
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,117 @@ | ||
"use client"; | ||
|
||
import InViewAnimateBottom from "@/components/transitions/InViewAnimateBottom"; | ||
import { useTheme } from "next-themes"; | ||
import Image from "next/image"; | ||
import React, { useEffect, useState } from "react"; | ||
import { TokenBrief } from "../Iqtoken"; | ||
|
||
export const getImageUrl = ( | ||
appTheme: string, | ||
imageName: string, | ||
num?: number | ||
) => { | ||
let imageUrl = `/images/${imageName}-${ | ||
appTheme === "dark" ? "dark" : "light" | ||
}`; | ||
if (num !== undefined) { | ||
imageUrl += `-${num}`; | ||
} | ||
imageUrl += ".png"; | ||
return imageUrl; | ||
}; | ||
|
||
export const FeatureList = ({ | ||
title, | ||
description, | ||
icon, | ||
delay, | ||
}: { | ||
title: string; | ||
description: string; | ||
icon: JSX.Element; | ||
delay?: number; | ||
}) => { | ||
return ( | ||
<InViewAnimateBottom className="flex flex-1 flex-col gap-4 items-start"> | ||
<div className="w-12 h-12 rounded-full flex justify-center text-xl dark:text-brand-800 text-brand-500 items-center border-8 dark:border-brand-200 border-brand-50 dark:bg-brand-400 bg-brand-100"> | ||
{icon} | ||
</div> | ||
<div className=""> | ||
<h4 className="dark:text-whiteAlpha-900 text-gray800 font-semibold text-lg md:text-xl mb-1"> | ||
{title} | ||
</h4> | ||
<p className="text-sm lg:text-base">{description}</p> | ||
</div> | ||
</InViewAnimateBottom> | ||
); | ||
}; | ||
|
||
const Iqsocial = () => { | ||
const { theme } = useTheme(); | ||
const [appTheme, setAppTheme] = useState(""); | ||
|
||
useEffect(() => { | ||
setAppTheme(theme ?? ""); | ||
}, [theme]); | ||
|
||
return ( | ||
<div | ||
id="iq-social" | ||
className="max-w-[1536px] px-4 sm:px-10 xl:px-[120px] mx-auto flex flex-col gap-10 xl:gap-16 pt-[48px] sm:pt-[80px] 2xl:pt-24 relative" | ||
> | ||
<TokenBrief | ||
title="IQ social" | ||
description={`IQ.social is an AI-powered social forum designed to enhance users' knowledge and awareness of the cryptocurrency and blockchain industry. The platform is governed by HiIQ stakers who curate and rank all of the articles submitted to IQ.social.`} | ||
action="https://iq.social" | ||
buttonText="Explore IQ Social" | ||
/> | ||
|
||
<InViewAnimateBottom> | ||
<div className="grid grid-cols-1 md:grid-cols-[1.5fr_1fr] gap-5"> | ||
<Image | ||
src={getImageUrl(appTheme, "iq-social")} | ||
alt="IQ.social Illustration" | ||
width={750} | ||
height={490} | ||
/> | ||
<div> | ||
<div className="border border-gray-200 dark:border-white/40 pb-6 bg-white rounded-3xl dark:bg-gray-700"> | ||
<Image | ||
src={getImageUrl(appTheme, "iq-social", 1)} | ||
alt="IQ.social Illustration" | ||
width={590} | ||
height={340} | ||
/> | ||
<p className="text-gray-600 dark:text-white/70 pl-10 font-semibold text-xs xl:text-lg pr-5 md:pr-0"> | ||
Share your curated crypto news with the community by submitting | ||
links under your preferred categories. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="border border-gray-200 dark:border-white/40 mt-2.5 bg-white rounded-3xl dark:bg-gray-700 px-10 grid grid-cols-1 md:grid-cols-[1.5fr_1fr] gap-5"> | ||
<Image | ||
src={getImageUrl(appTheme, "iq-social", 2)} | ||
alt="IQ.social Illustration" | ||
width={560} | ||
height={200} | ||
className="h-full w-full object-cover mt-5 md:mt-0" | ||
/> | ||
<div className="pt-0 pb-10 md:py-10"> | ||
<h1 className="text-gray-600 dark:text-white/70 font-medium text-xs xl:text-base"> | ||
Categories | ||
</h1> | ||
<p className="text-gray-600 dark:text-white/70 font-semibold text-xs xl:text-lg"> | ||
Discover a diverse array of categories on IQ social, including the | ||
latest in AI news, nfts, development, cryptocurrencies and | ||
regulations. | ||
</p> | ||
</div> | ||
</div> | ||
</InViewAnimateBottom> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Iqsocial; |
Large diffs are not rendered by default.
Oops, something went wrong.
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