feature: forum banner
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "forum-banner.html" . }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
7
layouts/partials/forum-banner.html
Normal file
7
layouts/partials/forum-banner.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<section class="forum-banner">
|
||||
<div class="forum-banner__content">
|
||||
<h3>{{ i18n "forumTitle" }}</h3>
|
||||
<p>{{ i18n "forumDesc" }}</p>
|
||||
<a class="forum-banner__button" href="/flarum">{{ i18n "forumBtn" }}</a>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user