-
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.
chore: overview tab -> tailwind (#233)
- Loading branch information
Showing
4 changed files
with
55 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import { type FC, memo } from 'react' | ||
|
||
import Portal from '../Portal' | ||
import BasicNumbers from './BasicNumbers' | ||
|
||
import { Wrapper, Section } from '../styles/overview' | ||
import useSalon from '../styles/overview' | ||
|
||
export default () => { | ||
const s = useSalon() | ||
|
||
const Overview: FC = () => { | ||
return ( | ||
<Wrapper> | ||
<div className={s.wrapper}> | ||
<Portal title="设置概览" desc="基础设置向导,帮助文档等等" /> | ||
<Section> | ||
<section className={s.section}> | ||
<BasicNumbers /> | ||
{/* <SectionLabel title="基本信息" /> */} | ||
</Section> | ||
</Wrapper> | ||
</section> | ||
</div> | ||
) | ||
} | ||
|
||
export default memo(Overview) |
40 changes: 12 additions & 28 deletions
40
src/containers/thread/DashboardThread/styles/overview/basic_numbers.ts
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,30 +1,14 @@ | ||
import styled, { css, theme } from '~/css' | ||
import useTwBelt from '~/hooks/useTwBelt' | ||
|
||
export const Wrapper = styled.div` | ||
${css.row()}; | ||
` | ||
export default () => { | ||
const { cn, fg } = useTwBelt() | ||
|
||
export const Left = styled.div` | ||
width: 100px; | ||
margin-right: 100px; | ||
` | ||
export const Right = styled.div` | ||
${css.rowWrap()}; | ||
width: 300px; | ||
gap: 0 20px; | ||
` | ||
export const Section = styled.div` | ||
width: 120px; | ||
height: 80px; | ||
` | ||
export const Hint = styled.div` | ||
${css.row('align-center')}; | ||
color: ${theme('lightText')}; | ||
font-size: 13px; | ||
` | ||
|
||
export const Num = styled.div` | ||
color: ${theme('article.title')}; | ||
font-weight: 550; | ||
font-size: 24px; | ||
` | ||
return { | ||
wrapper: 'row', | ||
left: 'w-24 mr-24', | ||
right: 'row wrap w-80 gap-y-5', | ||
section: 'w-32 h-20', | ||
hint: cn('row-center text-xs', fg('text.hint')), | ||
num: cn('text-2xl bold-sm mt-1', fg('text.title')), | ||
} | ||
} |
50 changes: 6 additions & 44 deletions
50
src/containers/thread/DashboardThread/styles/overview/index.ts
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,44 +1,6 @@ | ||
import styled, { css, theme } from '~/css' | ||
import Input from '~/widgets/Input' | ||
|
||
import { ALIGN_HEADER_OFFSET } from '../../constant' | ||
|
||
export const Wrapper = styled.div` | ||
${css.column()}; | ||
padding: ${() => `0 ${ALIGN_HEADER_OFFSET}`}; | ||
` | ||
export const Section = styled.div` | ||
padding-bottom: 30px; | ||
margin-bottom: 20px; | ||
` | ||
export const LogoWrapper = styled.div` | ||
${css.size(70)}; | ||
` | ||
export const Logo = styled.div` | ||
${css.size(70)}; | ||
background: ${theme('hoverBg')}; | ||
border-radius: 4px; | ||
` | ||
export const Title = styled.div` | ||
color: ${theme('article.title')}; | ||
font-size: 15px; | ||
margin-bottom: 12px; | ||
` | ||
export const Desc = styled.div` | ||
color: ${theme('hint')}; | ||
font-size: 12px; | ||
margin-top: 10px; | ||
margin-bottom: 20px; | ||
` | ||
export const Row = styled.div` | ||
${css.row('align-center')}; | ||
` | ||
export const Label = styled.div` | ||
color: ${theme('article.title')}; | ||
font-size: 14px; | ||
` | ||
export const Inputer = styled(Input)` | ||
margin-top: 10px; | ||
margin-bottom: 20px; | ||
width: 300px; | ||
` | ||
export default () => { | ||
return { | ||
wrapper: 'column ml-28', | ||
section: 'pb-8 mb-5', | ||
} | ||
} |