From 2327880c41c4881d0df77b0a55b4b1a47670fe30 Mon Sep 17 00:00:00 2001 From: FiliusPatris Date: Sat, 27 Mar 2021 17:27:35 +0100 Subject: [PATCH] Put the cards into a css grid --- index.html | 74 +++++++++++++++++++++------------------------ styles/services.css | 23 ++++++++++---- 2 files changed, 52 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index e706795..e0645b9 100644 --- a/index.html +++ b/index.html @@ -27,45 +27,41 @@

What you get

-
-

Chat

-

- We're hosting our own Matrix server to keep in touch - and share ideas. -

- - Join here! - -
-
-

- Code Hosting -

-

- We use Gitea to collaboratively work on our code. -

- - Set up your account! - -
-
-

Boards

-

- We provide free Kanban boards to plan your projects. -

- - Get agile! - -
+

Chat

+

+ We're hosting our own Matrix server to keep in touch + and share ideas. +

+ + Join here! + + +

+ Code Hosting +

+

+ We use Gitea to collaboratively work on our code. +

+ + Set up your account! + + +

Boards

+

+ We provide free Kanban boards to plan your projects. +

+ + Get agile! +
diff --git a/styles/services.css b/styles/services.css index 4baf097..6f5175e 100644 --- a/styles/services.css +++ b/styles/services.css @@ -13,15 +13,14 @@ } .services__offers { - display: flex; + display: grid; + grid-template-areas: + "matrix-heading git-heading boards-heading" + "matrix-description git-description boards-description" + "matrix-button git-button boards-button"; width: 100vw; - justify-content: space-evenly; - flex-wrap: wrap; } -.services__offers__card { - width: 15rem; -} .services__offers__card__heading { font-weight: 350; font-size: 2rem; @@ -46,3 +45,15 @@ color: black; background: white; } + +.matrix-heading {grid-area: matrix-heading;} +.matrix-description {grid-area: matrix-description;} +.matrix-button {grid-area: matrix-button;} + +.git-heading {grid-area: git-heading;} +.git-description {grid-area: git-description;} +.git-button {grid-area: git-button;} + +.boards-heading {grid-area: boards-heading;} +.boards-description {grid-area: boards-description;} +.boards-button {grid-area: boards-button;} \ No newline at end of file