mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add android to the install page
This commit is contained in:
parent
334d3add17
commit
a015ed8284
2 changed files with 23 additions and 88 deletions
|
|
@ -14,23 +14,6 @@ type MobileInstallHelpProps = {
|
|||
export default function IOSInstallHelp({
|
||||
onboarding = false,
|
||||
}: MobileInstallHelpProps): JSX.Element {
|
||||
const [selectedTooltip, setSelectedTooltip] =
|
||||
React.useState<string>('Available for Mac')
|
||||
const platformSizes = [
|
||||
{
|
||||
label: 'Available for Mac',
|
||||
icon: <Desktop color="#F9D354" />,
|
||||
},
|
||||
{
|
||||
label: 'Available for iPad',
|
||||
icon: <DeviceTabletSpeaker color="#F9D354" />,
|
||||
},
|
||||
{
|
||||
label: 'Available for iPhone',
|
||||
icon: <DeviceMobileCamera color="#F9D354" />,
|
||||
},
|
||||
]
|
||||
|
||||
const iosContainerStyles = {
|
||||
marginTop: '12px',
|
||||
width: '100%',
|
||||
|
|
@ -138,24 +121,9 @@ export default function IOSInstallHelp({
|
|||
},
|
||||
}}
|
||||
>
|
||||
With the Omnivore for iOS and macOS app installed you can save any link
|
||||
using our Share extension.
|
||||
<br />
|
||||
{!onboarding && (
|
||||
<StyledAnchor
|
||||
href="https://docs.omnivore.app/using/saving.html"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
css={{
|
||||
color: '$grayTextContrast',
|
||||
fontSize: '14px',
|
||||
fontWeight: 600,
|
||||
textDecoration: 'underline',
|
||||
}}
|
||||
>
|
||||
Learn more about the iOS and macOS app ->
|
||||
</StyledAnchor>
|
||||
)}
|
||||
With the native Omnivore for iOS and macOS app installed you can save
|
||||
any link, read offline, and listen to your saved items using
|
||||
text-to-speech.
|
||||
</StyledText>
|
||||
<HStack
|
||||
alignment="center"
|
||||
|
|
@ -226,49 +194,7 @@ export default function IOSInstallHelp({
|
|||
},
|
||||
}
|
||||
}
|
||||
>
|
||||
{platformSizes.map((item, idx) => (
|
||||
<Box
|
||||
key={`platformSize-${idx}`}
|
||||
title={item.label}
|
||||
css={{
|
||||
ml: '$1',
|
||||
}}
|
||||
>
|
||||
<StyledAnchor
|
||||
onClick={() => setSelectedTooltip(item.label)}
|
||||
css={{
|
||||
mx: 'auto',
|
||||
borderRadius: '50%',
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
height: 35,
|
||||
width: 35,
|
||||
cursor: 'pointer',
|
||||
backgroundColor: '$labelButtonsBg',
|
||||
...(selectedTooltip !== item.label && {
|
||||
filter: 'grayscale(1)',
|
||||
}),
|
||||
'&:focus': {
|
||||
filter: 'grayscale(0)',
|
||||
},
|
||||
'&:active': {
|
||||
filter: 'grayscale(0)',
|
||||
},
|
||||
'@lg': {
|
||||
transition: 'filter .3s linear',
|
||||
'&:hover': {
|
||||
filter: 'grayscale(0)',
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
{item.icon}
|
||||
</StyledAnchor>
|
||||
</Box>
|
||||
))}
|
||||
</HStack>
|
||||
></HStack>
|
||||
</HStack>
|
||||
</Box>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,22 @@ import { SettingsLayout } from '../../../components/templates/SettingsLayout'
|
|||
import IOSInstallHelp from '../../../components/elements/IOSInstallHelp'
|
||||
import ExtensionInstallHelp from '../../../components/elements/ExtensionsInstallHelp'
|
||||
import { Box } from '../../../components/elements/LayoutPrimitives'
|
||||
import AndroidInstallHelp from '../../../components/elements/AndroidInstallHelp'
|
||||
|
||||
const Divider = (): JSX.Element => {
|
||||
return (
|
||||
<Box
|
||||
css={{
|
||||
my: '$2',
|
||||
'@lg': {
|
||||
my: '12px',
|
||||
height: '1px',
|
||||
backgroundColor: '$grayBorder',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default function Installation(): JSX.Element {
|
||||
return (
|
||||
|
|
@ -23,16 +39,9 @@ export default function Installation(): JSX.Element {
|
|||
}}
|
||||
>
|
||||
<IOSInstallHelp />
|
||||
<Box
|
||||
css={{
|
||||
my: '$2',
|
||||
'@lg': {
|
||||
my: '12px',
|
||||
height: '1px',
|
||||
backgroundColor: '$grayBorder',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<Divider />
|
||||
<AndroidInstallHelp />
|
||||
<Divider />
|
||||
<ExtensionInstallHelp />
|
||||
</Box>
|
||||
</SettingsLayout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue