generated from ngyngcphu/react-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upload&preview): complete reponsive for desktop
- Loading branch information
Showing
14 changed files
with
258 additions
and
179 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ReactNode } from 'react'; | ||
import coin from '@assets/coin.png'; | ||
import { useUserInfoStore } from '@states/home'; | ||
|
||
export const FormFooter: Component<{ children: ReactNode; totalCost: number }> = ({ | ||
children, | ||
totalCost | ||
}) => { | ||
const { userInfoData } = useUserInfoStore(); | ||
|
||
return ( | ||
<div className='flex w-full h-16'> | ||
<div className='flex justify-between items-center text-gray/4 w-[70%] px-4 py-2 bg-white'> | ||
<div className='flex flex-col items-start'> | ||
<p className='text-base font-medium'>Balance:</p> | ||
<div className='grayscale flex items-center'> | ||
<div className='w-6 h-6'> | ||
<img src={coin} alt='Ballance Coin' /> | ||
</div> | ||
<span>{userInfoData.coins}</span> | ||
</div> | ||
</div> | ||
<div> | ||
<p className='text-right text-base font-medium'>Total Cost</p> | ||
<div className='flex items-center'> | ||
<div className='w-7 h-7'> | ||
<img src={coin} alt='Total Cost' /> | ||
</div> | ||
<span className='text-2xl font-bold text-yellow/1'>{totalCost}</span> | ||
</div> | ||
</div> | ||
</div> | ||
{children} | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
* @file Automatically generated by barrelsby. | ||
*/ | ||
|
||
export * from './FormFooter'; | ||
export * from './LayoutSide'; |
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
Oops, something went wrong.