Skip to content

Commit

Permalink
Merge branch 'sett/landing-v2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sett committed Jan 12, 2024
2 parents 490e424 + eb4959b commit d70d997
Show file tree
Hide file tree
Showing 53 changed files with 2,187 additions and 647 deletions.
1,106 changes: 1,099 additions & 7 deletions package-lock.json

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions public/landing/biteth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/carbon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/landing/compress/ai-chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/landing/images/chain_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/ecosystem1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/ecosystem2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/ecosystem3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/ecosystem4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/layer_lego.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/images/medal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions public/landing/svg/lego_icon_flat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/landing/uni.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions src/modules/landing/Componets/BitEth/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import s from './styles.module.scss';
import Image from 'next/image';
import { Button } from '@chakra-ui/react';
import Fade from '@/interactive/Fade';
import { useRouter } from 'next/navigation';
import useWindowSize from '@/hooks/useWindowSize';
import Scale from '@/interactive/Scale';
import Lines from '@/interactive/Lines';
import HeadingSection from '../HeadingSection';
import Chars from '@/interactive/Chars';
import ContentSection from '@/modules/landing/Componets/ContentSection';

export default function BitEth() {

const router = useRouter();
const { mobileScreen } = useWindowSize();

return <div className={s.bitEth}>
<div className={`${s.bitEth_inner} container`}>
<div className={s.bitEth_content}>
<Scale>
<Image className={s.thumb} src={'landing/biteth.svg'} alt={'biteth.svg'} width={250} height={80}
loading={'eager'} />
</Scale>
<HeadingSection className={s.heading}>
<Chars delay={.2}>
Zero effort to migrate from Ethereum
</Chars>
</HeadingSection>
<ContentSection className={s.content}>
<Lines delay={.3}>
Whatever your vision — a dapp, a fully onchain game, a DEX, or an ecosystem — there are many benefits of
running your own blockchain.
</Lines>
</ContentSection>
<div className={s.actions}>
<Fade delay={0.5}>
<Button
bgColor={'#EF601B'}
color={'#fff'}
borderRadius={0}
display={'flex'}
justifyContent={'center'}
alignItems={'center'}
px={'24px'}
py={'10px'}
minW={['180px']}
width={mobileScreen ? '100%' : ''}
height={'48px'}
fontWeight={400}
fontSize={'16px'}
_hover={{
bgColor: '#000',
}}
onClick={() => {
router.push('/blockchains/customize');
}}
>
{`Build your Bitcoin L2`}
</Button>
</Fade>
</div>
</div>
<Scale>
<Image className={s.full} src={'/landing/carbon.jpg'} alt={'carbon'} width={1600} height={570} />
</Scale>
</div>
</div>;
}
32 changes: 32 additions & 0 deletions src/modules/landing/Componets/BitEth/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.bitEth {
padding-top: 120px;
background: #000;

&_content {
max-width: 820px;
margin-left: auto;
margin-right: auto;
margin-bottom: 60px;
text-align: center;
}

.thumb {
margin-left: auto;
margin-right: auto;
margin-bottom: 28px;
}

.heading {
color: #FFF;
}

.content {
text-align: center;
color: #FFF;
}

.actions {
display: flex;
justify-content: center;
}
}
2 changes: 2 additions & 0 deletions src/modules/landing/Componets/Chain/Cursor/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.wrapCursor {
position: relative;
overflow: hidden;
width: 100%;
}

.cursor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Fade from '@/interactive/Fade';
type TSectionBottom = {
title: string;
link?: string;
data: {
data?: {
left: string;
right: string;
icon: string;
Expand All @@ -18,45 +18,59 @@ type TSectionBottom = {
export default function SectionBottom({
data,
delay,
isLaunch = false,
}: {
data: TSectionBottom;
delay: number;
isLaunch?: boolean;
subText?: string;
}) {
return (
<div
className={`${s.sectionBottom} ${s[`sectionBottom__${data.bgBottom}`]}`}
>
<div className={s.sectionBottom_title}>
<h6 className={s.sectionBottom_title_main}>
<h6
className={`${s.sectionBottom_title_main} ${
isLaunch && s[`sectionBottom_title_main_isLaunch`]
}`}
>
<Chars delay={delay}>{data.title}</Chars>
</h6>

<Chars delay={delay}>
<p className={s.sectionBottom_title_sub}>
{!data?.link && 'Coming soon'}
{!data?.link && !isLaunch && 'Coming soon'}
</p>
</Chars>
</div>

<ul className={s.sectionBottom_listInfo}>
{data.data.map((item, index) => {
return (
<Fade key={index} delay={delay + 0.1 + index / 10}>
<li className={s.sectionBottom_listInfo_item}>
<span className={s.sectionBottom_listInfo_item__left}>
<Image src={item.icon} alt="icon" width={24} height={24} />
<p className={s.sectionBottom_listInfo_item__left_text}>
{item.left}
</p>
</span>
<p className={s.sectionBottom_listInfo_item__right}>
{item.right}
</p>
</li>
</Fade>
);
})}
</ul>
{!isLaunch && (
<ul className={s.sectionBottom_listInfo}>
{data.data &&
data.data.map((item, index) => {
return (
<Fade key={index} delay={delay + 0.1 + index / 10}>
<li className={s.sectionBottom_listInfo_item}>
<span className={s.sectionBottom_listInfo_item__left}>
<Image
src={item.icon}
alt="icon"
width={24}
height={24}
/>
<p className={s.sectionBottom_listInfo_item__left_text}>
{item.left}
</p>
</span>
<p className={s.sectionBottom_listInfo_item__right}>
{item.right}
</p>
</li>
</Fade>
);
})}
</ul>
)}
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
display: flex;
flex-direction: column;
gap: 24px;

min-height: 142px;
justify-content: center;
&_title {
display: flex;
flex-direction: row;
Expand All @@ -15,6 +16,12 @@
font-weight: 500;
line-height: 26.4px;

&_isLaunch {
padding: 0 40px;
padding-bottom: 24px;
text-align: center;
}

@include is-mobile {
font-size: 18px;
line-height: 19.8px;
Expand Down Expand Up @@ -67,7 +74,7 @@
line-height: 19.6px;
}

@include is-tablet{
@include is-tablet {
font-size: 16px;
}
}
Expand All @@ -83,4 +90,14 @@
&__0074BB {
background: #0074bb;
}

&__EBEFF7 {
background: #ebeff7;
}
&__303030 {
background: #303030;
}
&__7D8AA7 {
background: #7d8aa7;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
background: #35cca6;
}

.bg__98DCF5 {
background: #98dcf5;
.bg__4DBDE0 {
background: #4dbde0;
}

.bg__000 {
background: #000;
}

.bg__EBEFF7 {
background: #ebeff7;
}
.bg__B4EDFF {
background: #b4edff;
}
40 changes: 32 additions & 8 deletions src/modules/landing/Componets/Chain/ItemChain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type TItemChain = {
title: string;
stud: number;
link?: string;
data: {
data?: {
left: string;
right: string;
icon: string;
Expand All @@ -20,16 +20,40 @@ type TItemChain = {
bgBottom: string;
};

export default function ItemChain({ data, delay }: { data: TItemChain; delay: number }) {
export default function ItemChain({
data,
delay,
isLaunch,
}: {
data: TItemChain;
delay: number;
isLaunch?: boolean;
}) {
const { img, bgTop, stud, ...dataSectionBottom } = data;
const {show, hide} = useCursorStore();
const { show, hide } = useCursorStore();
return (
<div onMouseEnter={show} onMouseLeave={hide} className={s.itemChain} onClick={() => {
data.link && window.open(data.link, '_blank');
}}>
<div
onMouseEnter={show}
onMouseLeave={hide}
className={`${s.itemChain} ${isLaunch && s.itemLaunch}`}
onClick={() => {
data.link && window.open(data.link, '_blank');
}}
>
<Fade from={{ x: 50 }} to={{ x: 0 }} delay={delay}>
<SectionTop delay={delay + 0.1} img={img} color={bgTop} stud={stud} />
<SectionBottom delay={delay + 0.2} data={dataSectionBottom} />
<div className={s.itemChain_inner}>
<SectionTop delay={delay + 0.1} img={img} color={bgTop} stud={stud} />

{isLaunch ? (
<SectionBottom
delay={delay + 0.2}
isLaunch={isLaunch}
data={dataSectionBottom}
/>
) : (
<SectionBottom delay={delay + 0.2} data={dataSectionBottom} />
)}
</div>
</Fade>
</div>
);
Expand Down
Loading

0 comments on commit d70d997

Please sign in to comment.