diff --git a/assets/css/main.css b/assets/css/main.css index e0cca73..150248e 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -338,3 +338,41 @@ img.icon { align-items: flex-start; } } + +.forum-banner { + margin: 3rem 0 2.5rem; + padding: 2rem 1.25rem 1.5rem; + /* ↑ más aire arriba */ + background: #2a2a2a; + border: 1px solid #3a3a3a; + border-radius: 10px; +} + + +.forum-banner__content { + max-width: 720px; + margin: 0 auto; + text-align: center; +} + + +.forum-banner h3 { + padding: 1rem 1rem 1rem; + margin-bottom: 0.25rem; +} + +.forum-banner p { + margin-top: 0; + color: #cfcfcf; +} + + +.forum-banner__button { + display: inline-block; + padding: 0.5rem 1rem; + border-radius: 8px; + text-decoration: none; + font-weight: 700; + background: #1faa00; + color: #000; +} diff --git a/i18n/en.toml b/i18n/en.toml index cf7cee0..d54c637 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -4,3 +4,6 @@ motto = "Free your source, free your mind" # Project finished = "Finished" unfinished = "Ongoing" +forumTitle = "New: Community forum" +forumDesc = "We have created a forum to make participation easier. Come say hello!" +forumBtn = "Go to the forum" diff --git a/i18n/es.toml b/i18n/es.toml index 929a4f1..0b12838 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -2,3 +2,6 @@ motto = "Libera tu código, libera tu mente" finished = "Finalizado" unfinished = "En progreso" +forumTitle = "Nuevo: Foro de la comunidad" +forumDesc = "Hemos creado un foro para que sea más fácil participar. ¡Pásate y saluda!" +forumBtn = "Entrar al foro" diff --git a/layouts/_default/index.html b/layouts/_default/index.html index e0e8308..f722356 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,3 +1,4 @@ {{ define "main" }} - {{ .Content }} +{{ partial "forum-banner.html" . }} +{{ .Content }} {{ end }} diff --git a/layouts/partials/forum-banner.html b/layouts/partials/forum-banner.html new file mode 100644 index 0000000..9c84e0c --- /dev/null +++ b/layouts/partials/forum-banner.html @@ -0,0 +1,7 @@ +
+
+

{{ i18n "forumTitle" }}

+

{{ i18n "forumDesc" }}

+ {{ i18n "forumBtn" }} +
+