-
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.
Merge branch 'main' into feature/cae-93
- Loading branch information
Showing
13 changed files
with
405 additions
and
20 deletions.
There are no files selected for viewing
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.
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,169 @@ | ||
import appleLogo from '../../assets/apple_logo.svg'; | ||
import iphoneFront from '../../assets/iphone_front.png'; | ||
import iphoneSide from '../../assets/iphone_side.png'; | ||
import jeepIcon from '../../assets/jeep-icon.svg'; | ||
import leafIcon from '../../assets/leaf_white.svg'; | ||
import peopleIcon from '../../assets/people_blue.svg'; | ||
import playStoreLogo from '../../assets/play_store_logo.svg'; | ||
import shieldIcon from '../../assets/shield_white.svg'; | ||
import windIcon from '../../assets/wind-icon.svg'; | ||
import { colors, styles } from './styles'; | ||
|
||
const URLCaronaeAppleAppStore = 'https://www.apple.com/app-store/'; | ||
const URLCaronaeGooglePlayStore = 'https://play.google.com/'; | ||
|
||
export default function VaDeCaronae () { | ||
return ( | ||
<div style={ styles.vaDeCaronae }> | ||
<Headings /> | ||
<BackgroundCircles /> | ||
<Roads /> | ||
<Icon src={ peopleIcon } | ||
backgroundColor={ colors.peopleIconBackground } | ||
imgSize="40px" | ||
width="140px" | ||
top="80px" | ||
left="750px" /> | ||
<Icon src={ shieldIcon } | ||
backgroundColor={ colors.shieldIconBackground } | ||
imgSize="27px" | ||
top="400px" | ||
left="760px" /> | ||
<Icon src={ leafIcon } | ||
backgroundColor={ colors.leafIconBackground } | ||
top="110px" | ||
left="1180px" /> | ||
<IphoneFront /> | ||
<IphoneSide /> | ||
<DoubleIcon src={ [windIcon, jeepIcon] } | ||
backgroundColor={ colors.jeepIconBackground } | ||
width="180px" | ||
top="460px" | ||
left="1080px" /> | ||
</div> | ||
); | ||
} | ||
|
||
const Headings = () => { | ||
return ( | ||
<div style={ styles.heading }> | ||
<h2 style={ styles.h2 }>Juntos vamos mais longe,</h2> | ||
<h1 style={ styles.h1 }>Vá de Caronaê!</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
const BackgroundCircles = () => { | ||
return ( | ||
<> | ||
<div style={ styles.circleOuter }> | ||
<div style={ styles.circleInner } /> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
const StoreButton = (props) => { | ||
return ( | ||
<a style={ styles.storeButton } href={ props.href }> | ||
<img src={ props.storeLogo } /> | ||
<div> | ||
<p style={ styles.buttonSmallText }>Disponível na</p> | ||
<p style={ styles.buttonLargeText }>{ props.storeName }</p> | ||
</div> | ||
</a> | ||
); | ||
}; | ||
|
||
const Roads = () => { | ||
return ( | ||
<div style={ styles.roads }> | ||
<VerticalRoad /> | ||
<div style={{ display: 'flex', gap: '40px', position: 'relative', left: '-60px' }} > | ||
<StoreButton storeName="App Store" storeLogo={ appleLogo } | ||
href={ URLCaronaeAppleAppStore } /> | ||
<StoreButton storeName="Google Play" storeLogo={ playStoreLogo } | ||
href={ URLCaronaeGooglePlayStore } /> | ||
</div> | ||
<div style={{ position: 'relative', left: '-65px' }} > | ||
<HorizontalRoad /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const VerticalRoad = () => { | ||
return ( | ||
<div style={ styles.verticalRoad } > | ||
<div style={ styles.verticalDash } /> | ||
<div style={ styles.verticalDash } /> | ||
<div style={ styles.verticalRoadBackground } /> | ||
</div> | ||
); | ||
}; | ||
|
||
const HorizontalRoad = () => { | ||
return ( | ||
<div style={ styles.horizontalRoad } > | ||
<div style={ styles.horizontalDash } /> | ||
<div style={ styles.horizontalDash } /> | ||
<div style={ styles.horizontalDash } /> | ||
<div style={ styles.horizontalDash } /> | ||
</div> | ||
); | ||
}; | ||
|
||
const Icon = (props) => { | ||
return ( | ||
<div style={{ position: 'absolute', | ||
top: props.top, | ||
left: props.left, | ||
display: 'flex', | ||
backgroundColor: props.backgroundColor, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '90px', | ||
width: props.width, | ||
minWidth: '90px', | ||
borderRadius: '90px' }} > | ||
<img style={{ width: props.imgSize }} src={ props.src } /> | ||
</div> | ||
); | ||
}; | ||
|
||
const DoubleIcon = (props) => { | ||
return ( | ||
<div style={{ position: 'absolute', | ||
display: 'flex', | ||
top: props.top, | ||
left: props.left, | ||
backgroundColor: props.backgroundColor, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '90px', | ||
width: 'fit-content', | ||
minWidth: props.width, | ||
padding: '0 40px', | ||
borderRadius: '90px' }} > | ||
<img style={{ width: props.imgSize }} src={ props.src[0] } /> | ||
<img style={{ width: props.imgSize }} src={ props.src[1] } /> | ||
</div> | ||
); | ||
}; | ||
|
||
const IphoneFront = () => { | ||
return ( | ||
<div style={ styles.iphoneFront } > | ||
<img src={ iphoneFront } /> | ||
</div> | ||
); | ||
}; | ||
|
||
const IphoneSide = () => { | ||
return ( | ||
<div style={ styles.iphoneSide } > | ||
<img src={ iphoneSide } /> | ||
</div> | ||
); | ||
}; | ||
|
Oops, something went wrong.