From 9bc7bb9bb4934a55a76b4a9b228f0a03baa2f19d Mon Sep 17 00:00:00 2001 From: vex Date: Fri, 15 Nov 2024 11:02:59 +0100 Subject: [PATCH] added example style and layout on page --- public/example/index.html | 26 ++++++++++++++++++++++---- static/Styles/example.css | 31 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/public/example/index.html b/public/example/index.html index 92748d6..2c5b393 100644 --- a/public/example/index.html +++ b/public/example/index.html @@ -13,12 +13,30 @@ Clients Contact -
- -

Collapsed Sidebar

-

Content...

+
+
+
+

header

+
+
+ +

Collapsed Sidebar

+
+
+

main

+
+
+

right

+
+ +
+
+ + \ No newline at end of file diff --git a/static/Styles/example.css b/static/Styles/example.css index b4c5134..1b5e40d 100644 --- a/static/Styles/example.css +++ b/static/Styles/example.css @@ -65,4 +65,35 @@ .sidebar a { font-size: 18px; } +} + + +/* grid layout for the content */ +.grid-container { + display: grid; + grid-template-areas: 'left header header' + 'left main right' + 'footer footer footer'; + grid-template-columns: [left] 80px [line2] calc(100% - 160px) [line3] 80px [right]; + grid-template-rows: [top] 80px [line2] calc(100% - 160px) [line3] 80px [bottom]; +} + +.left { + grid-area: left; +} + +.right { + grid-area: right; +} + +.header { + grid-area: header; +} + +.main { + grid-area: main; +} + +.footer { + grid-area: footer; } \ No newline at end of file