From c9add794da2af81d617cb7ef070efcacaee1daa2 Mon Sep 17 00:00:00 2001 From: Laurens Date: Wed, 1 May 2024 13:06:43 +0200 Subject: [PATCH] grid works now --- assets/scss/custom.scss | 13 +++- hugo_stats.json | 4 +- layouts/index.html | 30 +++++--- public/css/style.css | 8 +++ public/index.html | 68 +++++++++++-------- ...s_82b067fd6c564693170dff5ae4660239.content | 8 +++ ...s_f120a3f402b106f64b18d498afd3d82e.content | 8 +++ 7 files changed, 96 insertions(+), 43 deletions(-) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index b2105d3..b41e31f 100755 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -50,4 +50,15 @@ .time { text-align: right; } - \ No newline at end of file + + + .grid-container { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; + } + + .grid-item { + + padding: 20px; + } diff --git a/hugo_stats.json b/hugo_stats.json index fab5e98..61f6bee 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -34,6 +34,7 @@ "section", "source", "span", + "style", "svg", "textarea", "time", @@ -64,6 +65,7 @@ "btn-sm", "capitalize", "col-12", + "col-md-3", "col-md-4", "column", "container", @@ -92,6 +94,7 @@ "from-body", "g", "grid-container", + "grid-item", "group", "gx-5", "h-4", @@ -223,7 +226,6 @@ "search-wrapper-footer", "search-wrapper-header", "section", - "section-s", "section-sm", "sm:bg-red-200", "sm:block", diff --git a/layouts/index.html b/layouts/index.html index 84aa467..9fcc237 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -80,24 +80,32 @@ {{ end }} - -{{ range $i, $e:= .Params.features2 }} -
-
-

{{ .title | markdownify }}

-

{{ .content | markdownify }}

-
+ + + +
+
+ {{ range $i, $e := .Params.features2 }} +
+

{{ .title | markdownify }}

+

{{ .content | markdownify }}

+ {{ with .button }} {{ if .enable }} + + {{ .label }} + + + {{ end }} {{ end }} +
+ {{ end }}
- -{{ end }} - - +
+ {{ if gt (len (where .Site.RegularPages "Section" "blog")) 0 }}
diff --git a/public/css/style.css b/public/css/style.css index 40f9b5c..f53041d 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -3061,6 +3061,14 @@ input#nav-toggle:checked ~ #nav-menu { .time { text-align: right; } +.grid-container { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; } + +.grid-item { + padding: 20px; } + @media (min-width: 540px) { .sm\:col-10 { diff --git a/public/index.html b/public/index.html index 3d29f6a..1bb5f60 100644 --- a/public/index.html +++ b/public/index.html @@ -2080,39 +2080,47 @@ -
-
-

Fediversity explained - for Individuals

-

2Always be in control with your own data on social networks, whether that’s with Mastodon, PeerTube or Pixelfed: Fediversity makes it possible.

-
+ +
+
+ +
+

Fediversity explained - for Individuals

+

2Always be in control with your own data on social networks, whether that’s with Mastodon, PeerTube or Pixelfed: Fediversity makes it possible.

+ + + Learn more + + + +
+ +
+

Fediversity explained - for Developers

+

2As a developer building the next generation of social platforms, you are looking to make it easier to facilitate your customers to use your product. Fediversity can help.

+ + + Learn more + + + +
+ +
+

Fediversity explained - for the EC

+

2The Fediversity Project operates on a grant gratiously provided by the HORIZON fund by the EC. Learn more about the accountability of the project.

+ + + Learn more + + + +
+
- - - -
- -
-

Fediversity explained - for Developers

-

2As a developer building the next generation of social platforms, you are looking to make it easier to facilitate your customers to use your product. Fediversity can help.

-
- -
- - - -
- -
-

Fediversity explained - for the EC

-

2The Fediversity Project operates on a grant gratiously provided by the HORIZON fund by the EC. Learn more about the accountability of the project.

-
- -
- - - +
diff --git a/resources/_gen/assets/css/style.css_82b067fd6c564693170dff5ae4660239.content b/resources/_gen/assets/css/style.css_82b067fd6c564693170dff5ae4660239.content index 40f9b5c..f53041d 100644 --- a/resources/_gen/assets/css/style.css_82b067fd6c564693170dff5ae4660239.content +++ b/resources/_gen/assets/css/style.css_82b067fd6c564693170dff5ae4660239.content @@ -3061,6 +3061,14 @@ input#nav-toggle:checked ~ #nav-menu { .time { text-align: right; } +.grid-container { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; } + +.grid-item { + padding: 20px; } + @media (min-width: 540px) { .sm\:col-10 { diff --git a/resources/_gen/assets/scss/main.scss_f120a3f402b106f64b18d498afd3d82e.content b/resources/_gen/assets/scss/main.scss_f120a3f402b106f64b18d498afd3d82e.content index 80468f3..a82e4c4 100644 --- a/resources/_gen/assets/scss/main.scss_f120a3f402b106f64b18d498afd3d82e.content +++ b/resources/_gen/assets/scss/main.scss_f120a3f402b106f64b18d498afd3d82e.content @@ -1052,3 +1052,11 @@ .time { text-align: right; } + +.grid-container { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; } + +.grid-item { + padding: 20px; }