This repository was archived by the owner on May 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 183
Sean / Landing page for DP2P #1173
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
eea98f9
feat: [WIP]P2P landing page
5a1d6e0
fix: mobile responsiveness for P2P page
c57b44b
fix: navbar logo spacing for mobile
27516be
fix: background image positioning
7c137cc
fix: redirect links
b67b471
fix: reduced image file sizes
2313434
fix: reducing media queries
d77455f
Replaced mobile prop with show component
ff6ee81
fix: button wording
67f294f
fix: copyright svg color to white
8d6efb2
revert last commit
537a728
fix: white copyright svg
50123ba
fix: created v1 & v2 of DP2P page
5692305
fix: fixed console errors and paddings & margins
dbb15da
fix: button resizing
3dfccaa
fix: redirect links and adding new span link text component
413ef83
fix: blurry images and section margins
15e0ae1
fix: hero font sizes and margins
26576f9
fix: padding changes to reflect design
1010334
fix: issues regarding mobile paddings and margins
4f07896
fix: issues with mobile design not matching
c462b72
fix: added show component to handle mobile hero background
222ee64
fix: redirect notice prompt
dba97af
fix: mobile header center align
d2768b4
fix: redirecting before confirmation
3adbc50
fix: redirecting before confirmation for EU
169e648
fix: redirecting before confirmation for EU
0595db2
fix: redirecting before confirmation for EU
41b7d5d
fix: redirecting before confirmation for EU
3bf3738
fix: redirecting before confirmation for EU
fb9f120
fix: redirecting before confirmation for EU
42dde8e
revert back to 3adbc50
973534c
resolved conflicts and fixed svg usages
a36018c
replaced p2p_v1 prop to general nav_type prop
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,96 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import styled from 'styled-components' | ||
import { graphql, useStaticQuery } from 'gatsby' | ||
import { StyledNav, NavWrapper, LogoLink, Wrapper, NavLeft } from './nav' | ||
import { localize } from 'components/localization' | ||
import { QueryImage } from 'components/elements' | ||
import { Show } from 'components/containers' | ||
import device from 'themes/device' | ||
import LogoCombinedShape from 'images/svg/logo-combined-shape.svg' | ||
|
||
const query = graphql` | ||
query { | ||
deriv: file(relativePath: { eq: "logo.png" }) { | ||
...fadeIn | ||
} | ||
} | ||
` | ||
|
||
const StyledWrapper = styled(Wrapper)` | ||
@media ${device.tabletL} { | ||
justify-content: center; | ||
} | ||
` | ||
|
||
const StyledLogoLink = styled(LogoLink)` | ||
@media ${device.tabletS} { | ||
& svg, | ||
.gatsby-image-wrapper { | ||
width: 100%; | ||
} | ||
} | ||
` | ||
|
||
const P2PNavLeft = styled(NavLeft)` | ||
@media ${device.tabletL} { | ||
display: flex; | ||
width: 180px; | ||
} | ||
` | ||
|
||
const Line = styled.div` | ||
width: 1px; | ||
height: 28px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
background-color: var(--color-white); | ||
|
||
@media ${device.tabletL} { | ||
height: 16px; | ||
margin-left: 5px; | ||
margin-right: 4px; | ||
} | ||
` | ||
|
||
export const NavP2P = ({ nav_type }) => { | ||
const data = useStaticQuery(query) | ||
|
||
return ( | ||
<> | ||
<NavWrapper> | ||
<StyledNav> | ||
<StyledWrapper> | ||
<P2PNavLeft> | ||
<StyledLogoLink | ||
to={nav_type === 'p2p-v1' ? '/p2p/v1' : '/p2p/v2'} | ||
aria-label={localize('Home')} | ||
> | ||
<QueryImage | ||
data={data['deriv']} | ||
alt={localize('Deriv')} | ||
max_width="16.4rem" | ||
width="100%" | ||
height="auto" | ||
/> | ||
</StyledLogoLink> | ||
<Line /> | ||
<Show.Desktop min_width="992"> | ||
<img src={LogoCombinedShape} alt="get trading" /> | ||
</Show.Desktop> | ||
<Show.Mobile> | ||
<img src={LogoCombinedShape} alt="get trading" width="71px" /> | ||
</Show.Mobile> | ||
</P2PNavLeft> | ||
</StyledWrapper> | ||
</StyledNav> | ||
</NavWrapper> | ||
</> | ||
) | ||
} | ||
|
||
NavP2P.propTypes = { | ||
nav_type: PropTypes.string, | ||
} | ||
|
||
export default { NavP2P } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.