now only the boxes for mobile remain

This commit is contained in:
Robin Müller 2023-12-11 12:22:12 +01:00
parent c87cdded7b
commit 9e66caa5f7
6 changed files with 36 additions and 80 deletions

View File

@ -56,4 +56,5 @@ body {
.satrs-img {
max-width: 20%;
height: auto;
margin-bottom: 1.0rem;
}

View File

@ -3,10 +3,12 @@ title = 'FSFW'
date = 2023-01-01T08:00:00-07:00
draft = false
tags = ["fsfw", "framework", "on-board-software", "cpp"]
homeSummary = """The Flight Software Framework, a C/C++ framework to develop On-Board Software for
summary = """The Flight Software Framework, a C/C++ framework to develop On-Board Software for
remote systems like satellites and rovers."""
homeLogo = "FSFW_Logo_V3_bw.png"
homeLogoCss = "fsfw-img"
[[resources]]
name = "logo"
src = 'FSFW_Logo_V3_bw.png'
+++
<div class="container text-center">

View File

@ -3,10 +3,12 @@ title = 'sat-rs'
date = 2023-01-01T08:00:00-07:00
draft = false
tags = ["framework", "on-board-software", "rust", "sat-rs"]
homeSummary = """A Rust framework to develop On-Board Software for remote systems
summary = """A Rust framework to develop On-Board Software for remote systems
like satellites and rovers."""
homeLogo = "sat-rs_logo.png"
homeLogoCss = "satrs-img"
[[resources]]
name = "logo"
src = "sat-rs_logo.png"
+++
<div class="container text-center">

View File

@ -2,8 +2,8 @@
title = 'spacepackets'
date = 2023-01-01T08:00:00-07:00
tags = ["spacepackets", "ccsds", "ecss", "python"]
homeSummary = "A collection of CCSDS and ECSS packet standard implementations."
homeSummaryHeader = "<h2>spacepackets</h2>"
summary = "A collection of CCSDS and ECSS packet standard implementations."
homeSummaryHeader = "spacepackets"
draft = false
+++

View File

@ -4,85 +4,34 @@
<h1 class="display-6">{{ .Content }}</h1>
</div>
<!-- TODO: Find a way that the content of these boxes can be specified in front matter. -->
<div class="container py-3 text-center overflow-hidden">
<div class="row row-cols-2">
<a
href="projects/fsfw"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 px-2 py-3 h-100 border"
{{ range site.RegularPages }}
<a
href="{{ .RelPermalink }}"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<span>
{{ with site.GetPage "projects/fsfw" }}
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 px-2 py-3 h-100 border"
>
<span>
{{ $logo := .Resources.GetMatch "logo"}}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
{{ if (and $logo .homeLogoCss) }}
<img
src="/projects/fsfw/{{ .homeLogo }}"
src="{{ $logo.RelPermalink }}"
class={{ .homeLogoCss }}
/>
<br />
{{ else if .homeSummaryHeader }}
<h2>{{ .homeSummaryHeader }}</h2>
{{ end }}
{{ end }}
{{ .Params.homeSummary }}
{{ end }}
</span>
</div>
</a>
<a
href="projects/sat-rs"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 py-3 px-2 h-100 border"
>
<span>
{{ with site.GetPage "projects/sat-rs" }}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
<img
src="/projects/sat-rs/{{ .homeLogo }}"
class={{ .homeLogoCss }}
/>
<br />
{{ end }}
{{ end }}
{{ end }}
<br />
{{ with site.GetPage "projects/sat-rs" }}
{{ .Params.homeSummary }}
{{ end }}
</span>
</div>
</a>
<a
href="projects/spacepackets"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 py-3 px-2 h-100 border"
>
{{ with site.GetPage "projects/spacepackets" }}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
<img
src="/projects/sat-rs/{{ .homeLogo }}"
class={{ .homeLogoCss }}
/>
<br />
{{ else if .homeSummaryHeader }}
{{ .homeSummaryHeader | safeHTML }}
{{ end }}
{{ end }}
{{ end }}
{{ with site.GetPage "projects/spacepackets" }}
{{ .Params.homeSummary }}
{{ end }}
</div>
</a>
{{ .Summary }}
</span>
</div>
</a>
{{ end }}
</div>
</div>
{{ end }}

View File

@ -1,8 +1,10 @@
{{ define "main" }}
<div class="container text-center pb-2">
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
</div>
{{ end }}