-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cookie banner and cookie policy page #1335
Conversation
|
701e686
to
9f906ef
Compare
9f906ef
to
a333787
Compare
app/src/views/RootLayout/index.tsx
Outdated
const handleAcceptClick = () => { | ||
setIsCookiesBannerVisible(false); | ||
}; | ||
|
||
const handleLinkClick = () => { | ||
setIsCookiesBannerVisible(false); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This 2 function are doing same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it one and use useCallback function
a333787
to
e491595
Compare
app/src/views/CookiePolicy/index.tsx
Outdated
{strings.useOfOurInformationDescriptionLink} | ||
</Link> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line.
publishedDay: 'November', | ||
publishedDate: 29, | ||
publishedYear: 2021, | ||
})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barshathakuri While leaving of comments and reviews, let's not use "Same as above" as the context might get lost because of multiple reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted!
app/src/views/CookiePolicy/index.tsx
Outdated
)} | ||
/> | ||
<Container | ||
heading={strings.AutomaticallyCollectedHeading} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heading={strings.AutomaticallyCollectedHeading} | |
heading={strings.automaticallyCollectedHeading} |
app/src/views/CookiePolicy/index.tsx
Outdated
footerContentClassName={styles.headerDescription} | ||
footerContent={( | ||
<> | ||
<div>{strings.AutomaticallyCollectedDescription}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div>{strings.AutomaticallyCollectedDescription}</div> | |
<div>{strings.automaticallyCollectedDescription}</div> |
app/src/views/CookiePolicy/index.tsx
Outdated
<ul> | ||
<li>{strings.AutomaticallyCollectedList1}</li> | ||
<li>{strings.AutomaticallyCollectedList2}</li> | ||
<li>{strings.AutomaticallyCollectedList3}</li> | ||
<li>{strings.AutomaticallyCollectedList4}</li> | ||
<li>{strings.AutomaticallyCollectedList5}</li> | ||
</ul> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
app/src/views/CookiePolicy/index.tsx
Outdated
{ | ||
termsLink: ( | ||
<Link | ||
href="webteam@ifrc.org" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
app/src/views/CookiePolicy/index.tsx
Outdated
</strong> | ||
</div> | ||
</> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
.cookie-page{ | ||
display: flex; | ||
|
||
.side-titles{ | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--go-ui-spacing-sm); | ||
gap: var(--go-ui-spacing-md); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.cookie-page{ | |
display: flex; | |
.side-titles{ | |
display: flex; | |
flex-direction: column; | |
padding: var(--go-ui-spacing-sm); | |
gap: var(--go-ui-spacing-md); | |
} | |
.cookie-page { | |
display: flex; | |
.side-titles { | |
display: flex; | |
flex-direction: column; | |
padding: var(--go-ui-spacing-sm); | |
gap: var(--go-ui-spacing-md); | |
} | |
app/src/views/RootLayout/index.tsx
Outdated
headingDescription={strings.cookiesBannerDescription} | ||
icons={<AlertInformationLineIcon className={styles.alertInfoIcon} />} | ||
footerActions={( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headingDescription={strings.cookiesBannerDescription} | |
icons={<AlertInformationLineIcon className={styles.alertInfoIcon} />} | |
footerActions={( | |
headingDescription={strings.cookiesBannerDescription} | |
icons={ | |
<AlertInformationLineIcon | |
className={styles.alertInfoIcon} | |
/> | |
} | |
footerActions={( |
.cookies-banner{ | ||
position: sticky; | ||
bottom: 0; | ||
background-color: var(--go-ui-color-primary-blue); | ||
padding: var(--go-ui-spacing-xl); | ||
color: var(--go-ui-color-white); | ||
font-weight: var(--go-ui-font-weight-medium); | ||
|
||
.alert-info-icon{ | ||
font-size: 3rem; | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.cookies-banner{ | |
position: sticky; | |
bottom: 0; | |
background-color: var(--go-ui-color-primary-blue); | |
padding: var(--go-ui-spacing-xl); | |
color: var(--go-ui-color-white); | |
font-weight: var(--go-ui-font-weight-medium); | |
.alert-info-icon{ | |
font-size: 3rem; | |
} | |
} | |
.cookies-banner { | |
position: sticky; | |
bottom: 0; | |
background-color: var(--go-ui-color-primary-blue); | |
padding: var(--go-ui-spacing-xl); | |
color: var(--go-ui-color-white); | |
font-weight: var(--go-ui-font-weight-medium); | |
.alert-info-icon{ | |
font-size: 3rem; | |
} | |
} |
e491595
to
5677805
Compare
5677805
to
cf731bb
Compare
74db75d
to
ed422b4
Compare
213f09a
to
2ba041f
Compare
2ba041f
to
7adfedc
Compare
7adfedc
to
9496f3a
Compare
9496f3a
to
bf55ccc
Compare
Because me
Addresses:
Changes
This PR doesn't introduce:
console.log
meant for debugging