forked from gear-foundation/dapps
-
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.
Fy varaman optimization (gear-foundation#439)
- Loading branch information
Showing
23 changed files
with
480 additions
and
378 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
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
78 changes: 28 additions & 50 deletions
78
frontend/apps/vara-man/src/components/layout/header/Header.module.scss
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,65 +1,43 @@ | ||
.header { | ||
height: 100px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
background: transparent; | ||
} | ||
|
||
.container { | ||
height: 100%; | ||
padding: 20px 0; | ||
max-width: 1200px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin: auto; | ||
} | ||
|
||
.walletBalance { | ||
color: #000000; | ||
} | ||
position: relative; | ||
z-index: 10; | ||
padding: 20px; | ||
|
||
&__container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0; | ||
} | ||
|
||
.menuIcon { | ||
& svg path { | ||
fill: #000000; | ||
stroke: #000000; | ||
&__logo { | ||
flex-shrink: 0; | ||
} | ||
} | ||
|
||
.vara-logo { | ||
margin-right: 22px; | ||
&__wallet { | ||
@media screen and (max-width: 767px) { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
.headerContent { | ||
display: flex; | ||
align-items: center; | ||
gap: 48px; | ||
.wallet > button { | ||
font-size: 16px; | ||
padding-right: 22px; | ||
padding-left: 22px; | ||
} | ||
|
||
.cancelGameButton { | ||
background: #f24a4a12; | ||
color: #f24a4a; | ||
border-radius: 0; | ||
.mobile_balance { | ||
display: none; | ||
|
||
svg path { | ||
fill: #f24a4a; | ||
stroke: #f24a4a; | ||
} | ||
} | ||
|
||
.dropdown { | ||
@media screen and (max-width: 767px) { | ||
display: block; | ||
display: flex; | ||
margin-right: 14px; | ||
} | ||
} | ||
|
||
.dropdown { | ||
@media screen and (max-width: 767px) { | ||
z-index: 4; | ||
display: block; | ||
|
||
button { | ||
display: flex !important; | ||
} | ||
} | ||
.menu_wrapper { | ||
display: flex; | ||
flex-direction: row-reverse; | ||
} |
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
1 change: 1 addition & 0 deletions
1
frontend/apps/vara-man/src/components/layout/header/logo/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Logo } from './logo'; |
43 changes: 43 additions & 0 deletions
43
frontend/apps/vara-man/src/components/layout/header/logo/logo.module.scss
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,43 @@ | ||
.link { | ||
display: inline-flex; | ||
transition: opacity 300ms ease; | ||
|
||
@media screen and (max-width: 767px) { | ||
position: relative; | ||
} | ||
|
||
&:not(.active):hover { | ||
opacity: 0.7; | ||
} | ||
|
||
.title { | ||
--gradient-to: #0ed3a3; | ||
|
||
align-self: flex-start; | ||
margin-top: -4px; | ||
font-size: 20px; | ||
line-height: 24px; | ||
white-space: nowrap; | ||
user-select: none; | ||
|
||
@media screen and (max-width: 767px) { | ||
display: none; | ||
position: absolute; | ||
left: 100%; | ||
font-size: 10px; | ||
line-height: 18px; | ||
} | ||
} | ||
} | ||
|
||
.logo { | ||
width: 100%; | ||
height: 100%; | ||
max-height: 60px; | ||
max-width: 92px; | ||
|
||
@media screen and (max-width: 767px) { | ||
max-height: 40px; | ||
max-width: 62px; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
frontend/apps/vara-man/src/components/layout/header/logo/logo.tsx
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,20 @@ | ||
import { NavLink } from 'react-router-dom'; | ||
import clsx from 'clsx'; | ||
import styles from './logo.module.scss'; | ||
import { SpriteIcon } from '@/components/ui/sprite-icon'; | ||
// import { ROUTES } from '@/app/consts'; | ||
// import { TextGradient } from '@/components/ui/text-gradient'; | ||
// import { Sprite } from '@/components/ui/sprite'; | ||
// import type { BaseComponentProps } from '@/app/types'; | ||
|
||
type LogoProps = BaseComponentProps & { | ||
label?: string; | ||
}; | ||
|
||
export function Logo({ className, label }: LogoProps) { | ||
return ( | ||
<NavLink to={'/'} className={({ isActive }) => clsx(styles.link, isActive && styles.active, className)}> | ||
<SpriteIcon name="vara-logo" width={92} height={60} className={styles.logo} /> | ||
</NavLink> | ||
); | ||
} |
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
Oops, something went wrong.