Skip to content

Commit

Permalink
cls fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavaviram committed Feb 28, 2024
1 parent 5562b6e commit 6cb4074
Show file tree
Hide file tree
Showing 13 changed files with 71 additions and 38 deletions.
6 changes: 6 additions & 0 deletions compiled-lang/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,12 @@
"value": "crwdns2527:0crwdne2527:0"
}
],
"nav.blog": [
{
"type": 0,
"value": "crwdns5912:0crwdne5912:0"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,12 @@
"value": "Etwa"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,12 @@
"value": "Send GDPR, CCPA and LGPD Data Deletion and Access Requests"
}
],
"orgHero.imageAlt": [
{
"type": 0,
"value": "Organization logo"
}
],
"orgHero.newOrgTitle": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,12 @@
"value": "Nosotros"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,12 @@
"value": "Sur"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,12 @@
"value": "Di"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,12 @@
"value": "私たちについて"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
6 changes: 6 additions & 0 deletions compiled-lang/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,12 @@
"value": "Sobre nós"
}
],
"nav.blog": [
{
"type": 0,
"value": "Blog"
}
],
"nav.contact": [
{
"type": 0,
Expand Down
3 changes: 3 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@
"org.titleNewOrg": {
"message": "Send GDPR, CCPA and LGPD Data Deletion and Access Requests"
},
"orgHero.imageAlt": {
"message": "Organization logo"
},
"orgHero.newOrgTitle": {
"message": "Delete or Get a Copy of Your Personal Data."
},
Expand Down
6 changes: 2 additions & 4 deletions src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ const styles = (theme) => ({
},
VercelLogo: {
height: "1.8em",
marginTop: "5px",
[theme.breakpoints.up('md')]: {
marginLeft: "-27px",
},
width: "auto",
marginTop: "5px",
}
});

Expand Down
26 changes: 16 additions & 10 deletions src/components/Nav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import TWGrey from "../../../public/images/sh/tw-grey.svg";
import Logo from "../../../public/images/type.svg";
import CloseIcon from "../../../public/images/close-icon.svg";
import HamburgerIcon from "../../../public/images/hamburgerIcon.svg";
import Button from "@mui/material/Button";

const trackSearchButtonLinkClick = (device) => {
tracking.trackSearchButtonLinkClick(device);
Expand Down Expand Up @@ -111,17 +112,19 @@ const NavListDesktop = ({ classes, router, handleLangChange }) => {
</li>

<li>
<a
<Button
onClick={() => trackDonateButtonLinkClick("nav desktop")}
variant="contained"
color="secondary"
href="https://opencollective.com/consciousdigital"
target="_blank"
className={classes.DonateRedButtonDesktop}
tabIndex={0}
onClick={() => trackDonateButtonLinkClick("nav desktop")}
>
<Typography component="span" className={classes.linkButton}>
<FormattedMessage id="nav.donate" defaultMessage="Make a Donation"/>
</Typography>
</a>
</Button>
</li>

</ul>
Expand Down Expand Up @@ -191,20 +194,23 @@ const NavListMobile = ({ classes, mobileNavOpen, toggleMobileNav, router, handle
<FormattedMessage id="nav.helpTranslate" defaultMessage="Help translate" />
</MenuItem>
</Select>
<a
href="https://opencollective.com/consciousdigital"
target="_blank"
className={classes.DonateRedButton}
tabIndex={0}

<Button
onClick={() => {
toggleMobileNav();
trackDonateButtonLinkClick("nav mobile");
}}
variant="contained"
color="secondary"
href="https://opencollective.com/consciousdigital"
target="_blank"
className={classes.DonateRedButton}
tabIndex={0}
>
<Typography component="span" className={classes.linkButton}>
<FormattedMessage id="nav.donate" defaultMessage="Make a Donation"/>
</Typography>
</a>
</Button>

<NavItem
onClickHandler={toggleMobileNav}
Expand Down Expand Up @@ -327,7 +333,7 @@ class Nav extends Component {
<div>
<nav ref={this.toggleMenu} className={classes.nav}>
<a className={classes.logoLink} href="/">
<Image className={classes.logo} src={Logo} tabIndex={0} />
<Image className={classes.logo} alt="YourDigitalRights.org" src={Logo} tabIndex={0} />
</a>
<NavListDesktop
classes={classes}
Expand Down
25 changes: 1 addition & 24 deletions src/components/Nav/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Theme = (theme) => ({
logo: {
width: "90px",
outlineColor: "#e8f4f8",

height: "auto",
[theme.breakpoints.down('sm')]: {
width: "80px",
},
Expand Down Expand Up @@ -53,7 +53,6 @@ const Theme = (theme) => ({
fontSize: "14px",
textAlign: "center",
textDecoration: "none",
outlineColor: "#e8f4f8",
textTransform: "uppercase",
},
subsectionLink: {
Expand Down Expand Up @@ -173,42 +172,20 @@ const Theme = (theme) => ({
},
DonateRedButtonDesktop: {
display: "flex",
justifyContent: "center",
alignItems: "center",
width: "auto",
height: "40px",
backgroundColor: "#ef6a6e",
fontSize: "14px",
fontWeight: "800",
fontStyle: "normal",
fontStretch: "normal",
lineHeight: "1.15",
color: "#ffffff",
borderRadius: "25px",
outlineColor: "#e8f4f8",
cursor: "pointer",
marginRight: "24px",
paddingLeft: "20px",
paddingRight: "20px",
textDecoration: "none",
},
OptOutRedButtonDesktop: {
display: "flex",
justifyContent: "center",
alignItems: "center",
width: "auto",
height: "40px",
backgroundColor: "#ef6a6e",
fontSize: "14px",
fontWeight: "800",
fontStyle: "normal",
fontStretch: "normal",
lineHeight: "1.15",
color: "#ffffff",
borderRadius: "25px",
outlineColor: "#e8f4f8",
cursor: "pointer",
marginRight: "24px",
paddingLeft: "20px",
paddingRight: "20px",
textDecoration: "none",
Expand Down
1 change: 1 addition & 0 deletions src/components/OrgHero/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Hero = ({ classes, selectedCompany }) => {
width={44}
height={44}
fallbackSrc="/images/Keep-it-private.png"
alt="Organization logo"
/>
</div>
)}
Expand Down

0 comments on commit 6cb4074

Please sign in to comment.