-
Notifications
You must be signed in to change notification settings - Fork 584
/
Copy pathCityGuideCTA.tsx
43 lines (42 loc) · 1.51 KB
/
CityGuideCTA.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { SectionTitle } from "app/Components/SectionTitle"
import { navigate } from "app/navigation/navigate"
import { BMWSponsorship } from "app/Scenes/City/CityBMWSponsorship"
import { ClassTheme, Flex, Spacer, Text } from "palette"
import React from "react"
import { Image, TouchableOpacity } from "react-native"
export class CityGuideCTA extends React.Component {
render() {
const cityGuideMapImage = require("images/city-guide-bg.webp")
return (
<ClassTheme>
{({ color }) => (
<Flex>
<SectionTitle title="Explore art on view" />
<TouchableOpacity onPress={() => navigate("/local-discovery")}>
<Flex
style={{
borderWidth: 1,
borderColor: color("black10"),
borderRadius: 4,
overflow: "hidden",
}}
>
<Image source={cityGuideMapImage} style={{ width: "100%" }} />
<Flex m={15}>
<Text variant="sm" weight="medium">
City Guide
</Text>
<Text variant="sm" style={{ color: color("black60") }}>
Browse fairs and shows in different cities
</Text>
<Spacer mb={1} />
<BMWSponsorship logoText="Presented in partnership with BMW" pressable={false} />
</Flex>
</Flex>
</TouchableOpacity>
</Flex>
)}
</ClassTheme>
)
}
}