Skip to content

Commit

Permalink
Merge pull request #30 from qoherent/cookies
Browse files Browse the repository at this point in the history
Added cookies pop up
  • Loading branch information
UmairK5669 authored Jul 22, 2024
2 parents 54bf5d3 + d966b9f commit c68e512
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 3 additions & 4 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ facebook = "" # Your verification code
mastodon = "" # Your verification code

# cookies
# cookies module: https://github.com/gethugothemes/hugo-modules/tree/master/components/cookie-consent
[cookies]
enable = false
enable = true
expire_days = 60
content = "This site uses cookies. By continuing to use this website, you agree to their use."
button = "I Accept"
content = "This site uses cookies. Please see privacy policy."
button = "Got it"

######################## sidebar widgets #########################
[widgets]
Expand Down
1 change: 0 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ link = "js/modal.js"
lazy = true
[[params.plugins.js]]
link = "plugins/cookie.js"
lazy = true
[[params.plugins.js]]
link = "plugins/youtube-lite.js"
lazy = true
10 changes: 9 additions & 1 deletion themes/hugoplate/assets/scss/module-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@

// cookie consent
.cookie-box {
@apply rounded-lg #{!important};
@apply left-[unset] w-[15rem] h-[7.785rem] text-[13.5px] right-[2rem] p-[1rem] rounded-lg #{!important};
}

.cookie-box-button {
@apply mt-[0.25rem] text-[0.7rem] pt-[0.27rem] pb-[0.27rem] pr-[0.7rem] pl-[0.7rem] bg-white
}

:is(.dark .btn-outline-primary).cookie-box-button {
@apply text-black
}

// slider
Expand Down

0 comments on commit c68e512

Please sign in to comment.