Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vellum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paweł J. Wal
vellum
Merge requests
!48
feat
#86
: add cookie notice
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat
#86
: add cookie notice
86-cookie-notice
into
main
Overview
0
Commits
1
Pipelines
1
Changes
5
Merged
Paweł J. Wal
requested to merge
86-cookie-notice
into
main
6 days ago
Overview
0
Commits
1
Pipelines
1
Changes
5
Expand
Closes
#86 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
e6a560b5
1 commit,
6 days ago
5 files
+
63
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
frontend/components/cookies.go
0 → 100644
+
19
−
0
Options
// SPDX-FileCopyrightText: © 2025 Paweł J. Wal <p@steamshard.net>
//
// SPDX-License-Identifier: AGPL-3.0-only
package
components
import
(
g
"maragu.dev/gomponents"
h
"maragu.dev/gomponents/html"
)
func
Cookies
()
g
.
Node
{
return
h
.
Div
(
h
.
ID
(
"cookies-notice"
),
h
.
Class
(
"flex flex-col md:flex-row gap-2 fixed bottom-0 left-0 right-0 bg-white p-4 md:p-2 text-center md:text-left justify-center items-center hidden"
),
h
.
P
(
g
.
Text
(
"This website uses cookies to keep track of login sessions. By using this website, you agree to the use of cookies."
)),
h
.
Button
(
g
.
Text
(
"Accept"
),
g
.
Attr
(
"type"
,
"button"
),
g
.
Attr
(
"class"
,
"bg-blue-500 text-white px-4 py-2 rounded-md"
),
h
.
ID
(
"cookies-accept"
)),
)
}
Loading