-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(landing): intro tabs & feature wall cards enhance (#200)
* refactor(landing): feat cards theme & text size adjust * refactor(landing): design card * refactor(landing): wip * refactor(landing): Mr.tony * refactor(landing): add dot for design * refactor(landing): cursor color for design * refactor(landing): ananlysis card makes good * refactor(landing): wip * refactor(landing): star on dark mode * refactor(landing): header to security * refactor(landing): adjust design token card * refactor(landing): adjust wip * chore(deps): upgrade styled-components to latest * feat(landing): integrate card wip * feat(landing): integrate card done * fix(landing): intro tabs blink
- Loading branch information
Showing
69 changed files
with
1,424 additions
and
863 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { FC } from 'react' | ||
|
||
import type { TActive } from '@/spec' | ||
|
||
import IntroDigest from './IntroDigest' | ||
import HelpDemo from './HelpDemo' | ||
|
||
import { Wrapper } from '../../styles/articles_intro_tabs/help_tab' | ||
|
||
const KanbanFeat: FC = () => { | ||
const HelpFeat: FC<TActive> = ({ $active }) => { | ||
return ( | ||
<Wrapper> | ||
<Wrapper $active={$active}> | ||
<IntroDigest /> | ||
<HelpDemo /> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default KanbanFeat | ||
export default HelpFeat |
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,79 @@ | ||
import { FC } from 'react' | ||
|
||
import useWallpaper from '@/hooks/useWallpaper' | ||
|
||
import { | ||
Wrapper, | ||
GridMask, | ||
CavansBlock, | ||
CursorIcon, | ||
CursorText, | ||
MainTextGradient, | ||
MainText, | ||
Line, | ||
IndexBar, | ||
LeftIndexText, | ||
IndexRowBar, | ||
IndexText, | ||
BottomIndexBar, | ||
Column, | ||
LocateDot, | ||
} from '../../styles/feature_wall/design/panel' | ||
|
||
type TProps = { | ||
hovering: boolean | ||
} | ||
|
||
const Panel: FC<TProps> = ({ hovering }) => { | ||
const { wallpaper } = useWallpaper() | ||
|
||
const stickOpacity = hovering ? 1 : 0.4 | ||
const textOpacity = hovering ? 1 : 0.8 | ||
const rotate = hovering ? -1 : -4 | ||
|
||
return ( | ||
<Wrapper> | ||
<Line top={10} left={0} $hovering={hovering} $rotate={rotate} /> | ||
<Line top={160} left={0} $hovering={hovering} $rotate={rotate} /> | ||
<Column top={0} left={10} $hovering={hovering} $rotate={rotate} /> | ||
<LocateDot top={hovering ? 160 : 18} left={hovering ? 18 : 11} $rotate={rotate} /> | ||
<LocateDot top={hovering ? 10 : 168} left={hovering ? 15 : 21} $rotate={rotate} /> | ||
|
||
<CavansBlock right={-10} top={20} $rotate={rotate}> | ||
<CursorIcon top={hovering ? 30 : 15} right={hovering ? 40 : 50} wallpaper={wallpaper} /> | ||
<CursorText top={hovering ? 48 : 34} right={hovering ? 20 : 30} wallpaper={wallpaper}> | ||
Mr. Tony | ||
</CursorText> | ||
|
||
<LeftIndexText top={72} left={5} $opacity={textOpacity}> | ||
wechat: | ||
</LeftIndexText> | ||
|
||
<IndexRowBar top={80} left={38} width={18} $opacity={stickOpacity} /> | ||
|
||
<IndexBar top={34} left={70} height={26} $opacity={stickOpacity} /> | ||
<IndexText top={15} left={58} $opacity={textOpacity}> | ||
Xie | ||
</IndexText> | ||
|
||
<IndexBar top={48} left={126} height={14} $opacity={stickOpacity} /> | ||
<IndexText top={28} left={107} $opacity={textOpacity}> | ||
Yimian | ||
</IndexText> | ||
|
||
{hovering && <MainTextGradient wallpaper={wallpaper}>design</MainTextGradient>} | ||
{!hovering && <MainText>design</MainText>} | ||
|
||
<BottomIndexBar bottom={36} $opacity={hovering ? 0.8 : 0.4} /> | ||
|
||
<IndexText bottom={31} left={110} $opacity={textOpacity}> | ||
1988 px | ||
</IndexText> | ||
|
||
<GridMask /> | ||
</CavansBlock> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default Panel |
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,23 @@ | ||
import { FC } from 'react' | ||
|
||
import { COLOR_NAME } from '@/constant/colors' | ||
import useHover from '@/hooks/useHover' | ||
|
||
import Panel from './Panel' | ||
import { Wrapper, Footer, Title, Desc } from '../../styles/feature_wall/design' | ||
|
||
const Design: FC = () => { | ||
const [cardRef, isCardHovered] = useHover<HTMLDivElement>() | ||
|
||
return ( | ||
<Wrapper ref={cardRef} $color={COLOR_NAME.BLACK}> | ||
<Panel hovering={isCardHovered} /> | ||
<Footer> | ||
<Title>默认好看</Title> | ||
<Desc>走心设计团队,丰富自定义细节,为您的产品生态添砖加瓦。</Desc> | ||
</Footer> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default Design |
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,37 @@ | ||
import { FC } from 'react' | ||
|
||
import { COLOR_NAME } from '@/constant/colors' | ||
import { Brick } from '@/widgets/Common' | ||
|
||
import { | ||
Codes, | ||
TerminalIcon, | ||
BlickCursor, | ||
Highlight, | ||
} from '../../styles/feature_wall/integration/embed_script' | ||
|
||
const EmbedScript: FC = () => { | ||
return ( | ||
<> | ||
<Brick | ||
$width={215} | ||
$height={20} | ||
$radius={4} | ||
$opacity={0.1} | ||
bottom={10} | ||
left={18} | ||
$color={COLOR_NAME.ORANGE} | ||
/> | ||
|
||
<TerminalIcon /> | ||
<BlickCursor bottom={14} right={29} /> | ||
|
||
<Codes bottom={12} left={40}> | ||
script: groupher/<Highlight $color={COLOR_NAME.BLACK}>embed</Highlight>?id= | ||
<Highlight $color={COLOR_NAME.RED}>your-site</Highlight> | ||
</Codes> | ||
</> | ||
) | ||
} | ||
|
||
export default EmbedScript |
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,21 @@ | ||
import { FC } from 'react' | ||
|
||
import { Brick } from '@/widgets/Common' | ||
import { Wrapper, Dot } from '../../styles/feature_wall/integration/header' | ||
|
||
const Header: FC = () => { | ||
const top = 6 | ||
|
||
return ( | ||
<Wrapper top={5} left={0}> | ||
<Dot left={10} top={top} /> | ||
<Dot left={20} top={top} /> | ||
<Dot left={30} top={top} /> | ||
|
||
<Brick $opacity={0.08} left={80} $width={90} $height={6} top={top - 1} /> | ||
<Brick $opacity={0.06} right={15} $width={18} $height={4} top={top} /> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
export default Header |
Oops, something went wrong.