@@ -10,6 +10,15 @@ import {
1010
1111
1212import Button from "../../reusecore/Button" ;
13+ import styled from "styled-components" ;
14+
15+ const StyledContainer = styled . div `
16+ .paper-container {
17+ background-color: ${ props => props . theme . elevationColor } ;
18+ color: ${ props => props . theme . text } ;
19+ }
20+ `
21+
1322
1423const CookieConsent = ( ) => {
1524 const [ open , setOpen ] = useState ( false ) ;
@@ -31,47 +40,47 @@ const CookieConsent = () => {
3140 open = { open }
3241 anchorOrigin = { { vertical : "bottom" , horizontal : "center" } }
3342 >
34- < Paper
35- elevation = { 6 }
36- sx = { {
37- p : 2 ,
38- maxWidth : 420 ,
39- borderRadius : 2 ,
40- } }
41- >
42- < Stack spacing = { 2 } >
43- < Typography variant = "body1" fontWeight = "500" >
44- 🍪 We value your privacy
45- </ Typography >
46- < Typography variant = "body2" color = "text.secondary" >
47- We use cookies to enhance your browsing experience. By clicking
48- "Accept", you consent to our use of cookies. Read more in our{ " " }
49- < a href = "/company/legal/privacy" target = "_blank" rel = "noopener noreferrer" >
50- Privacy Policy
51- </ a >
52- .
53- </ Typography >
43+ < StyledContainer >
44+ < Paper
45+ elevation = { 6 }
46+ sx = { {
47+ p : 2 ,
48+ maxWidth : 620 ,
49+ borderRadius : 2 ,
50+ } }
51+ className = "paper-container"
52+ >
53+ < Stack spacing = { 2 } >
54+ < Typography variant = "body2" >
55+ We use cookies to enhance your browsing experience. By clicking
56+ "Accept", you consent to our use of cookies. Read more in our{ " " }
57+ < a href = "/company/legal/privacy" target = "_blank" rel = "noopener noreferrer" >
58+ Privacy Policy
59+ </ a >
60+ .
61+ </ Typography >
5462
55- < Box display = "flex" justifyContent = "flex-end" gap = { 1 } >
56- < Button
57- variant = "outlined"
58- size = "small"
59- $outlined
60- onClick = { ( ) => handleResponse ( "declined" ) }
61- >
62- Decline
63- </ Button >
64- < Button
65- variant = "contained"
66- size = "small"
67- $secondary
68- onClick = { ( ) => handleResponse ( "accepted" ) }
69- >
70- Accept
71- </ Button >
72- </ Box >
73- </ Stack >
74- </ Paper >
63+ < Box display = "flex" justifyContent = "flex-end" gap = { 1 } >
64+ < Button
65+ variant = "outlined"
66+ size = "small"
67+ $outlined
68+ onClick = { ( ) => handleResponse ( "declined" ) }
69+ >
70+ Decline
71+ </ Button >
72+ < Button
73+ variant = "contained"
74+ size = "small"
75+ $secondary
76+ onClick = { ( ) => handleResponse ( "accepted" ) }
77+ >
78+ Accept
79+ </ Button >
80+ </ Box >
81+ </ Stack >
82+ </ Paper >
83+ </ StyledContainer >
7584 </ Snackbar >
7685 ) ;
7786} ;
0 commit comments