Added cookies

This commit is contained in:
vjrj 2017-11-29 12:02:50 +01:00
parent 56775d645d
commit e83be9c69f
5 changed files with 74 additions and 2 deletions

View file

@ -32,6 +32,9 @@ import ReSendEmail from '../../components/ReSendEmail/ReSendEmail';
// i18n
import { I18nextProvider } from 'react-i18next';
import i18n from '/imports/startup/client/i18n';
// https://github.com/gadicc/meteor-blaze-react-component/
import Blaze from 'meteor/gadicc:blaze-react-component';
//https://react.i18next.com/components/i18nextprovider.html
@ -64,6 +67,8 @@ const App = props => (
</Switch>
</Grid>
<Footer />
<Blaze template="cookieConsent" />
{/* <Blaze template="cookieConsentImply" /> */}
</div> : ''}
</Router>
</I18nextProvider>

View file

@ -9,3 +9,45 @@ a, a:hover {
h4.page-header {
line-height: 2em;
}
#js-cookie-policy-default {
background-color: lighten($todos-palette3, 10%);
}
.cookie-policy {
position: fixed;
text-align: rigth;
vertical-align: baseline;
padding-top: 10px;
border-radius: 0px;
z-index: 2500;
width: 100%;
max-width: 100%;
bottom: 0;
left: 0;
right: 0;
top: auto;
margin:0 !important;
}
.cookie-policy__header {
/* float: left; */
}
.cookie-policy__action {
float: right;
position: absolute;
top: 5px;
right: 40px;
}
.cookie-policy > p {
margin-bottom: -5px;
color: #fff
}
.cookie-policy__header{
font-size: 16px;
margin-bottom: 5px
}