Adding tertiary color and new button design.

This commit is contained in:
Adsooi 2022-10-15 15:33:13 +02:00
parent 1f7bd1dfb4
commit 7634557b28
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9
6 changed files with 47 additions and 22 deletions

View file

@ -17,7 +17,7 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{{ range . }}
<div role="button" class="{{ if .Secondary }}secondary{{ else if .Tag }}tag{{ else }}primary{{ end }}">
<div role="button" class="{{ if .Tertiary }}tertiary{{ else if .Secondary }}secondary{{ else if .Tag }}tag{{ else }}primary{{ end }}">
<a href="{{ .URL | safeURL }}" role="button" title="{{ .Title }}" {{ if .NewTab }}target="_blank"{{ end }}>
{{ if .Icon }}<i class="icon-{{ lower .Icon }} icon-as-text" alt="{{ .Icon }}"></i>{{ end }}{{ if .Image }}<img class="icon-as-text" alt="{{ .Icon }}" src="{{ .Image }}" loading="lazy"></img>{{ end }}{{ .Title }}
</a>

View file

@ -28,7 +28,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<br>
<div class="grid flex-center">&nbsp;
{{ if (.Get 5) }}
{{ partial "links.html" (slice (dict "Icon" (.Get 5) "Title" (.Get 6) "URL" (.Get 7) "Secondary" (.Get 8) "NewTab" (.Get 9) )) }}
{{ partial "links.html" (slice (dict "Icon" (.Get 5) "Title" (.Get 6) "URL" (.Get 7) "Secondary" (.Get 8) "Tertiary" (.Get 9) "NewTab" (.Get 10) )) }}
{{ end }}
</div>
</div>