Skip to content

Commit

Permalink
Add report bugs link, remove links to social channels (#706)
Browse files Browse the repository at this point in the history
* Remove socials, update links

* Update translations

* Remove support link, move navigation to bottom on desktop, update btn colors

* Update navigation margin

* Update navigation link
  • Loading branch information
mikozet authored and louilinn committed Jul 13, 2023
1 parent d3bf444 commit 5e17a94
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 77 deletions.
4 changes: 2 additions & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
"buttonSendCircles": "Send Circles",
"buttonOrganization": "Create Shared Wallet",
"linkAbout": "About",
"linkBugReporting": "Report Bugs",
"linkFAQ": "FAQ",
"linkMarketplace": "Marketplace",
"linkPrivacyLegal": "Privacy / Legal",
Expand All @@ -207,8 +208,7 @@
"linkAddMembers": "Add Members",
"linkEditProfile": "Edit Profile",
"linkMyWallets": "My Wallets",
"linkMarketplace": "Marketplace",
"linkSupport": "Support"
"linkMarketplace": "Marketplace"
},
"NotFound": {
"bodyNotFound": "Ouch. We could not find the requested page. Are you sure it's the right address?",
Expand Down
58 changes: 13 additions & 45 deletions src/components/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,12 @@ import ExternalLink from '~/components/ExternalLink';
// import LocaleSelector from '~/components/LocaleSelector';
import UsernameDisplay from '~/components/UsernameDisplay';
import translate from '~/services/locale';
import {
IconFacebook,
IconMail,
IconTelegram,
IconTwitter,
} from '~/styles/icons';
import {
ABOUT_URL,
EMAIL_URL,
FACEBOOK_URL,
BUG_REPORTING_URL,
FAQ_URL,
MARKETPLACE_URL,
PRIVACY_LEGAL_URL,
TELEGRAM_URL,
TWITTER_URL,
} from '~/utils/constants';

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -81,6 +72,9 @@ const useStyles = makeStyles((theme) => ({
display: 'block',
color: theme.palette.primary.contrastText,
},
navFooterLinksContainer: {
flexDirection: 'column',
},
}));

const Navigation = ({ isExpanded, ...props }) => {
Expand Down Expand Up @@ -163,7 +157,12 @@ const NavigationFooter = () => {

return (
<Box className={classes.navigationFooter} component="footer">
<Grid container spacing={2}>
<Grid className={classes.navFooterLinksContainer} container spacing={2}>
<Grid item xs={6}>
<NavigationExternalLink href={BUG_REPORTING_URL}>
{translate('Navigation.linkBugReporting')}
</NavigationExternalLink>
</Grid>
<Grid item xs={6}>
<NavigationExternalLink href={MARKETPLACE_URL}>
{translate('Navigation.linkMarketplace')}
Expand All @@ -174,47 +173,16 @@ const NavigationFooter = () => {
{translate('Navigation.linkAbout')}
</NavigationExternalLink>
</Grid>
<Grid item xs={6}>
<NavigationExternalLink href={PRIVACY_LEGAL_URL}>
{translate('Navigation.linkPrivacyLegal')}
</NavigationExternalLink>
</Grid>
<Grid item xs={6}>
<NavigationExternalLink href={FAQ_URL}>
{translate('Navigation.linkFAQ')}
</NavigationExternalLink>
</Grid>
</Grid>
<Box mt={2} />
<Grid alignItems="center" container spacing={2}>
<Grid item xs={6}>
<Grid container spacing={0}>
<Grid item xs={3}>
<NavigationExternalLink href={TELEGRAM_URL}>
<IconTelegram fontSize="small" />
</NavigationExternalLink>
</Grid>
<Grid item xs={3}>
<NavigationExternalLink href={FACEBOOK_URL}>
<IconFacebook fontSize="small" />
</NavigationExternalLink>
</Grid>
<Grid item xs={3}>
<NavigationExternalLink href={TWITTER_URL}>
<IconTwitter fontSize="small" />
</NavigationExternalLink>
</Grid>
<Grid item xs={3}>
<NavigationExternalLink href={EMAIL_URL}>
<IconMail fontSize="small" />
</NavigationExternalLink>
</Grid>
</Grid>
<NavigationExternalLink href={PRIVACY_LEGAL_URL}>
{translate('Navigation.linkPrivacyLegal')}
</NavigationExternalLink>
</Grid>
{/* We temporary disable language switcher since languages are not there but should come soon */}
{/* <Grid item xs={6}>
<LocaleSelector />
</Grid> */}
</Grid>
</Box>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/NavigationFloating.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ExternalLink from '~/components/ExternalLink';
import translate from '~/services/locale';
import { IconWobblyCircleSecond } from '~/styles/icons';
import { IconClose, IconMore } from '~/styles/icons';
import { FAQ_URL, MARKETPLACE_URL } from '~/utils/constants';
import { BUG_REPORTING_URL, MARKETPLACE_URL } from '~/utils/constants';

const useStyles = makeStyles((theme) => {
const backgroundTheme = (props) => {
Expand Down Expand Up @@ -217,10 +217,10 @@ export default function NavigationFloating(props) {
</Button>
</MenuItem>
</ExternalLink>
<ExternalLink href={FAQ_URL}>
<ExternalLink href={BUG_REPORTING_URL}>
<MenuItem onClick={handleClose}>
<Button isOutline>
{translate('NavigationFloating.linkSupport')}
{translate('Navigation.linkBugReporting')}
</Button>
</MenuItem>
</ExternalLink>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const PATHFINDER_HOPS_DEFAULT = 3;
export const NEEDED_TRUST_CONNECTIONS = 3;

export const ABOUT_URL = 'https://joincircles.net';
export const BUG_REPORTING_URL =
'https://docs.google.com/forms/d/e/1FAIpQLSdczjck3RFE5VN5oSuge6aQWVAY7WA5RyIRYyFusj1kCSz0SQ/viewform';
export const EMAIL_URL = 'mailto:[email protected]';
export const FACEBOOK_URL = 'https://facebook.com/CirclesUBI';
export const FAQ_URL = 'https://joincircles.net/faq';
Expand Down
54 changes: 27 additions & 27 deletions src/views/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Logo from '~/components/Logo';
import View from '~/components/View';
import translate from '~/services/locale';
import {
ABOUT_URL,
BUG_REPORTING_URL,
EMAIL_URL,
FAQ_URL,
PRIVACY_LEGAL_URL,
Expand All @@ -31,17 +31,27 @@ const useStyles = makeStyles((theme) => ({
paddingLeft: theme.spacing(2),
},
welcomeExternalLink: {
color: theme.palette.primary.main,
fontWeight: '400',
zIndex: theme.zIndex.layer2,
position: 'relative',
margin: '0 9px',

[theme.breakpoints.up('sm')]: {
margin: '0 10px',
},
},
divider: {
marginLeft: '16px',
marginRight: '16px',
height: '40px',
backgroundColor: theme.custom.colors.black,
},
linkContainer: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
marginBottom: '30px',
marginTop: 'auto',
},
}));

const Welcome = () => {
Expand Down Expand Up @@ -80,31 +90,21 @@ const Welcome = () => {
{translate('Welcome.buttonLogin')}
</Button>
</Grid>
<Box mt={8} textAlign="center">
<Grid container spacing={1}>
<Grid item xs={12}>
<WelcomeExternalLink href={ABOUT_URL}>
{translate('Welcome.linkAboutCircles')}
</WelcomeExternalLink>
</Grid>
<Grid item xs={12}>
<WelcomeExternalLink href={FAQ_URL}>
{translate('Welcome.linkFAQ')}
</WelcomeExternalLink>
</Grid>
<Grid item xs={12}>
<WelcomeExternalLink href={EMAIL_URL}>
{translate('Welcome.linkContactUs')}
</WelcomeExternalLink>
</Grid>
<Grid item xs={12}>
<WelcomeExternalLink href={PRIVACY_LEGAL_URL}>
{translate('Welcome.linkPrivacyLegal')}
</WelcomeExternalLink>
</Grid>
</Grid>
</Box>
</View>
<Box className={classes.linkContainer} container spacing={1}>
<WelcomeExternalLink href={FAQ_URL}>
{translate('Welcome.linkFAQ')}
</WelcomeExternalLink>
<WelcomeExternalLink href={BUG_REPORTING_URL}>
{translate('Navigation.linkBugReporting')}
</WelcomeExternalLink>
<WelcomeExternalLink href={EMAIL_URL}>
{translate('Welcome.linkContactUs')}
</WelcomeExternalLink>
<WelcomeExternalLink href={PRIVACY_LEGAL_URL}>
{translate('Welcome.linkPrivacyLegal')}
</WelcomeExternalLink>
</Box>
</>
);
};
Expand Down

0 comments on commit 5e17a94

Please sign in to comment.