Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: optimizing onboarding dialogs for mobile

Ilian Sapundshiev58615ecb7fac
diff --git a/src/renderer/components/dialogs/OnboardingDialog.tsx b/src/renderer/components/dialogs/OnboardingDialog.tsx
index c7c41f675..4dacefaea 100644
--- a/src/renderer/components/dialogs/OnboardingDialog.tsx
+++ b/src/renderer/components/dialogs/OnboardingDialog.tsx
@@ -144,7 +144,6 @@ function OnboardingDialog(props: Props) {
</DialogTitle>
<DialogContent
style={{
- margin: 'auto',
overflowY: 'auto',
overflowX: 'hidden',
}}
@@ -164,15 +163,20 @@ function OnboardingDialog(props: Props) {
}
`}
</style>
- <div style={{ width: 500, minHeight: 600, textAlign: 'center' }}>
- <Slider {...sliderSettings}>
- <div>
+ <Slider {...sliderSettings}>
+ <div>
+ <div
+ style={{
+ padding: 15,
+ textAlign: 'center',
+ }}
+ >
<Typography variant="h5">
{t('core:welcomeToTagSpaces')}
</Typography>
<img
style={{
- maxHeight: 300,
+ maxHeight: 250,
paddingTop: 15,
paddingBottom: 40,
margin: 'auto',
@@ -195,137 +199,145 @@ function OnboardingDialog(props: Props) {
<ToggleButton value="dark">Dark</ToggleButton>
</ToggleButtonGroup>
</div>
- <div style={{ overflow: 'hidden' }}>
- <Typography variant="h5">
- Choose your the default tagging method for files
- </Typography>
- <Typography variant="h5">&nbsp;</Typography>
- <Typography variant="body1">
- Core functionality of the application the tagging of files and
- folders. Here you can choose how tags will attached to files.
- </Typography>
- <FormControl
- style={{ marginTop: 20, marginBottom: 20 }}
- component="fieldset"
+ </div>
+ <div style={{ overflow: 'hidden' }}>
+ <Typography variant="h5">
+ Choose your the default tagging method for files
+ </Typography>
+ <Typography variant="h5">&nbsp;</Typography>
+ <Typography variant="body1">
+ Core functionality of the application the tagging of files and
+ folders. Here you can choose how tags will attached to files.
+ </Typography>
+ <FormControl
+ style={{ marginTop: 20, marginBottom: 20 }}
+ component="fieldset"
+ >
+ <RadioGroup
+ aria-label="fileTaggingType"
+ name="isPersistTagsInSidecar"
+ onChange={toggleTaggingType}
>
- <RadioGroup
- aria-label="fileTaggingType"
- name="isPersistTagsInSidecar"
- onChange={toggleTaggingType}
- >
- <FormControlLabel
- value="false"
- control={<Radio checked={!isPersistTagsInSidecar} />}
- label={
- <Typography
- variant="subtitle1"
- style={{ textAlign: 'left' }}
- >
- Use the name of file for saving the tags - Tagging the
- file <strong>image.jpg</strong> with a tag{' '}
- <strong>sunset</strong> will rename it to{' '}
- <strong>image[sunset].jpg</strong>
- </Typography>
- }
- />
+ <FormControlLabel
+ value="false"
+ control={<Radio checked={!isPersistTagsInSidecar} />}
+ label={
+ <Typography
+ variant="subtitle1"
+ style={{ textAlign: 'left' }}
+ >
+ Use the name of file for saving the tags - Tagging the
+ file <strong>image.jpg</strong> with a tag{' '}
+ <strong>sunset</strong> will rename it to{' '}
+ <strong>image[sunset].jpg</strong>
+ </Typography>
+ }
+ />
- <FormControlLabel
- style={{ marginTop: 20 }}
- value="true"
- control={<Radio checked={isPersistTagsInSidecar} />}
- label={
- <Typography
- variant="subtitle1"
- style={{ textAlign: 'left' }}
- >
- Use sidecar file for saving the tags - Tagging the file{' '}
- <strong>image.jpg</strong> with a tag{' '}
- <strong>sunset</strong> will save this tag in an
- additional sidecar file called{' '}
- <strong>image.jpg.json</strong> located in a sub folder
- with the name
- <strong>.ts</strong>
- </Typography>
- }
- />
- <img
- style={{ maxHeight: 200, marginTop: 15 }}
- src={ChooseTagging}
- alt=""
- />
- </RadioGroup>
- </FormControl>
- <Typography variant="body1">
- You can always revise you decision and change the tagging
- method. But files already tagged with the renaming method will
- stay renamed and the created sidecar file with the tags will
- stay.
- </Typography>
- </div>
- <div style={{ textAlign: 'center' }}>
- <Typography variant="h5">
- Collect web pages, create bookmarks or take screenshot from
- websites directly in your web browser.
- </Typography>
- <img
- style={{
- maxHeight: 300,
- paddingTop: 15,
- paddingBottom: 20,
- margin: 'auto',
- display: 'block',
- }}
- src={BrowserExtension}
- alt=""
- />
- <Typography variant="h6">
- Check out our web clipper browser extension for Chrome, Edge and
- Firefox.
- </Typography>
- <Typography variant="h6">
- It is available for free in the official browser stores.
- </Typography>
- <Button
- style={{ marginTop: 20 }}
- onClick={() => {
- openURLExternally(Links.links.webClipper, true);
- }}
- variant="contained"
- color="primary"
- >
- Get the web clipper
- </Button>
- </div>
- <div>
- <Typography variant="h5">
- We hope you will love TagSpaces as much as we do!
- </Typography>
- <img
- style={{
- maxHeight: 300,
- maxWidth: '90%',
- paddingTop: 70,
- margin: 'auto',
- display: 'block',
- }}
- src={WizardFinished}
- alt=""
- />
- <Typography variant="h6">
- If you want to learn more about the application, you can start
- the introduction from the welcome screen.
- </Typography>
- <Button
- style={{ marginTop: 20 }}
- onClick={onClose}
- variant="contained"
- color="primary"
- >
- Start using TagSpaces
- </Button>
- </div>
- </Slider>
- </div>
+ <FormControlLabel
+ style={{ marginTop: 20 }}
+ value="true"
+ control={<Radio checked={isPersistTagsInSidecar} />}
+ label={
+ <Typography
+ variant="subtitle1"
+ style={{ textAlign: 'left' }}
+ >
+ Use sidecar file for saving the tags - Tagging the file{' '}
+ <strong>image.jpg</strong> with a tag{' '}
+ <strong>sunset</strong> will save this tag in an
+ additional sidecar file called{' '}
+ <strong>image.jpg.json</strong> located in a sub folder
+ with the name
+ <strong>.ts</strong>
+ </Typography>
+ }
+ />
+ <img
+ style={{ maxHeight: 200, marginTop: 15 }}
+ src={ChooseTagging}
+ alt=""
+ />
+ </RadioGroup>
+ </FormControl>
+ <Typography variant="body1">
+ You can always revise you decision and change the tagging method.
+ But files already tagged with the renaming method will stay
+ renamed and the created sidecar file with the tags will stay.
+ </Typography>
+ </div>
+ <div style={{ textAlign: 'center' }}>
+ <Typography variant="h5">
+ Collect web pages, create bookmarks or take screenshot from
+ websites directly in your web browser.
+ </Typography>
+ <img
+ style={{
+ maxHeight: 300,
+ paddingTop: 15,
+ paddingBottom: 20,
+ margin: 'auto',
+ display: 'block',
+ }}
+ src={BrowserExtension}
+ alt=""
+ />
+ <Typography variant="body1">
+ Check out our web clipper browser extension for Chrome, Edge and
+ Firefox. It is available for free in the official browser stores.
+ </Typography>
+ <Button
+ style={{
+ marginTop: 20,
+ marginLeft: 'auto',
+ marginRight: 'auto',
+ marginBottom: 20,
+ display: 'block',
+ }}
+ onClick={() => {
+ openURLExternally(Links.links.webClipper, true);
+ }}
+ variant="contained"
+ color="primary"
+ >
+ Get the web clipper
+ </Button>
+ </div>
+ <div>
+ <Typography variant="h5">
+ We hope you will love TagSpaces as much as we do!
+ </Typography>
+ <img
+ style={{
+ maxHeight: 300,
+ maxWidth: '90%',
+ paddingTop: 70,
+ margin: 'auto',
+ display: 'block',
+ }}
+ src={WizardFinished}
+ alt=""
+ />
+ <Typography variant="body1">
+ If you want to learn more about the application, you can start the
+ introduction from the welcome screen.
+ </Typography>
+ <Button
+ style={{
+ marginTop: 20,
+ marginLeft: 'auto',
+ marginRight: 'auto',
+ marginBottom: 20,
+ display: 'block',
+ }}
+ onClick={onClose}
+ variant="contained"
+ color="primary"
+ >
+ Start using TagSpaces
+ </Button>
+ </div>
+ </Slider>
</DialogContent>
</Dialog>
);
diff --git a/src/renderer/components/dialogs/ProTeaserDialog.tsx b/src/renderer/components/dialogs/ProTeaserDialog.tsx
index 91f30623a..f699ecdce 100644
--- a/src/renderer/components/dialogs/ProTeaserDialog.tsx
+++ b/src/renderer/components/dialogs/ProTeaserDialog.tsx
@@ -69,7 +69,7 @@ function Slide(props: SlideProps) {
return (
<div
style={{
- padding: 50,
+ padding: 15,
textAlign: 'left',
}}
>