From 81256d5828485e4b7373548516de1446a6d65695 Mon Sep 17 00:00:00 2001 From: David Madl Date: Fri, 8 May 2026 15:28:22 +0200 Subject: [PATCH] initial: template and responsive 3 blocks --- hero_bg.svg | 105 ++++++++++++++++++++++++++++++++++++++++++++++ hero_bg_plain.svg | 105 ++++++++++++++++++++++++++++++++++++++++++++++ index.html | 16 +++++++ main.css | 60 ++++++++++++++++++++++++++ 4 files changed, 286 insertions(+) create mode 100644 hero_bg.svg create mode 100644 hero_bg_plain.svg create mode 100644 index.html create mode 100644 main.css diff --git a/hero_bg.svg b/hero_bg.svg new file mode 100644 index 0000000..5f81d2f --- /dev/null +++ b/hero_bg.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + diff --git a/hero_bg_plain.svg b/hero_bg_plain.svg new file mode 100644 index 0000000..6f1cfe6 --- /dev/null +++ b/hero_bg_plain.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..1bd6e57 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ +
+
+

Optimizing software

+
+
+

Feasibility studies

+
+
+

Designing software

+
+
+
+

Lorem ipsum

+
+ \ No newline at end of file diff --git a/main.css b/main.css new file mode 100644 index 0000000..f0a0145 --- /dev/null +++ b/main.css @@ -0,0 +1,60 @@ +.blocks { + display: flex; + /*gap: 20px;*/ + padding-top: 5.78vw; + + background-image: url("https://abanbytes.eu/upload/hero_bg_plain.svg"); + background-repeat: no-repeat; + background-position: center top; + background-size: 100% auto; +} + +/* Gap between block 1 and 2 */ +.block:nth-child(1) { + margin-right: 11.3vw; + /* margin-top */ + margin-left: 12.85vw; +} +/* Gap between block 2 and 3 */ +.block:nth-child(2) { + margin-right: 6.01vw; + margin-top: 10.16vw; +} +.block:nth-child(3) { + /* margin-right */ + margin-top: 5.26vw; + margin-right: 13.05vw; +} + +.block h2 { + margin-top: 0px; +} +.block { + flex: 1; + height: 200px; + background: #e5e7eb; + border: 1px solid #ccc; + display: flex; + /*align-items: center; + justify-content: center;*/ +} + +/* Small screens */ +@media (max-width: 600px) { + .blocks { + flex-direction: column; + padding-top: 15.92vw; + margin: 2.25vw; + } + + .block { + width: 100%; + } + + .block:nth-child(1), .block:nth-child(2), .block:nth-child(3) { + margin-top: 0; + margin-right: 0; + margin-bottom: 2.25vw; + margin-left: 0; + } +} \ No newline at end of file