Skip to content

update homepage styles#432

Merged
mannynotfound merged 4 commits intomainfrom
manny/cas-482
Sep 12, 2022
Merged

update homepage styles#432
mannynotfound merged 4 commits intomainfrom
manny/cas-482

Conversation

@mannynotfound
Copy link
Copy Markdown
Contributor

  • header styles / copy updated
  • bg added to homepage splash
  • update button styles
  • add more top padding to footer

image

@linear
Copy link
Copy Markdown

linear Bot commented Sep 8, 2022

CAS-482

@mannynotfound mannynotfound force-pushed the manny/cas-482 branch 2 times, most recently from 2ca6ac0 to c1ae2b4 Compare September 8, 2022 16:58
Comment thread frontend/packages/client/src/App.sass Outdated
$yellow: #FBD84D
$orange: #F4AF4A
$light-gray: #DCDCDC
$light-gray: #F9F9F9
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was only being used for a non-existent selector so I deleted rules and updated this variable for the light gray in latest designs

line-height: 3rem !important
.beta-label
font-size: 10px
font-weight: 700
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted this in favor of has-weight-bold-text + a smallest-text class since this was only used once or twice

<>
<header
className={`header ${props.location.pathname} has-background-white is-block navbar is-fixed-top`}
id="navbar"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added this id as the .header class felt too generic for the specific style rule of the 4px yellow border

export default function Label({ labelText = '', classNames } = {}) {
const className = classnames(
'has-background-black has-text-white rounded-sm px-3 py-2 mr-2',
'has-background-black has-text-white rounded-lg px-3 py-2',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed mr-2 from here as it wasn't needed in every instance and should be defined in the layout that includes Label

Copy link
Copy Markdown
Contributor

@germanurrus germanurrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! I left some comments

<span />
</span>
</div>
<div className="navbar-end">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is not part of the change, but since this PR adds the class navbar-end it makes the wallet connect dropdown to show like this on desktop:
Screen Shot 2022-09-09 at 11 05 12
Could you update this line:

style={!notMobile ? { left: '-160px' } : {}}

to have this code?:

          style={!notMobile ? { left: '-160px' } : { left: '-130px' }}
          


return (
<section className={classNames}>
<>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is making the tooltip to be next to the navbar:
Screen Shot 2022-09-09 at 11 31 24

Maybe adding some margin within the TooltipMessage component would work? This component is only to be shown on safari

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ended up removing message-container from TooltipMessage since it was only controlling margin bottom. Now it takes a className so we just give it my-6 for even top/bottom margin

Copy link
Copy Markdown
Contributor

@germanurrus germanurrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mannynotfound mannynotfound merged commit ee4be38 into main Sep 12, 2022
@mannynotfound mannynotfound deleted the manny/cas-482 branch September 12, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants