-
Notifications
You must be signed in to change notification settings - Fork 3
feat: new homepage design #1107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Deploying interface with
|
| Latest commit: |
4641967
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://834e5082.interface-a9d.pages.dev |
| Branch Preview URL: | https://new-homepage-design.interface-a9d.pages.dev |
| position: relative; | ||
| padding-bottom: 7.8125rem; | ||
| background: ${colors.lightGrey}; | ||
| background: #f5f5f5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use the color from colors or add it there as a new color if it's not there?
| useEffect(() => { | ||
| const loadImages = async () => { | ||
| const resolvedUrls = images.map((url) => | ||
| resolveUrlFromIPFS(url, "https://ipfs.io/ipfs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use CONFIG.ipfsImageGateway
src/pages/landing/Landing.tsx
Outdated
| const TitleAndDescriptionWrapper = withUnderBanner ? Layout : Div; | ||
| const LayoutWrapper = isSideNavBar ? Grid : DarkerBackground; | ||
|
|
||
| const numOffers = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move out of Landing() function declaration
src/pages/landing/Landing.tsx
Outdated
| alignItems="flex-end" | ||
| margin="1rem 0 2rem 0" | ||
| > | ||
| <Title tag="h3" style={{ margin: "0" }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <Title tag="h3" style={{ margin: "0" }}> | |
| <Title tag="h3" margin={0}> |
…l/interface into new-homepage-design
| price={ | ||
| /e/i.test(String(Number(price?.price || 0))) | ||
| ? Number(price?.price || 0).toFixed(10) | ||
| : (price?.price ?? 0).toString() | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be like this
| price={ | |
| /e/i.test(String(Number(price?.price || 0))) | |
| ? Number(price?.price || 0).toFixed(10) | |
| : (price?.price ?? 0).toString() | |
| } | |
| price={price?.price} |
|
|
||
| const LoadingContainer = styled(Grid)` | ||
| height: 100%; | ||
| font-size: 18px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use rem
src/pages/landing/FeaturedOffers.tsx
Outdated
| margin-left: 1.5rem; | ||
| font-size: 0.875rem; | ||
| font-weight: 600; | ||
| margin-bottom: 1px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change cursor to pointer so the user knows it's clickable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.






No description provided.