From bd1a19d5e70d9032b687c8e1368df8d5386d22cc Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Tue, 12 Sep 2023 00:48:07 +0200 Subject: [PATCH] feat: responsive --- src/components/HomepageFeatures/index.tsx | 2 +- src/pages/index.module.css | 32 ++++++++++++++++++----- src/pages/index.tsx | 24 ++--------------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 28f5129..6cb60b5 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -15,7 +15,7 @@ type ServiceItem = { }; const PrivateServices: ServicesSection = { - title: "PrivateServices", + title: "Private Services", description: ( <> Services that require tjo.space account. diff --git a/src/pages/index.module.css b/src/pages/index.module.css index ab8a661..179c528 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -8,12 +8,8 @@ text-align: center; position: relative; overflow: hidden; -} - -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } + display: flex; + flex-direction: row; } .buttons { @@ -39,3 +35,27 @@ .descriptionLink:hover { color: var(--ifm-hero-text-color); } + +@media screen and (max-width: 996px) { + .heroLogo { + width: 100%; + } + + .heroBanner { + padding: 2rem; + flex-direction: column; + } + + .buttons { + flex-direction: column; + } + + .buttons > :not(:first-child) { + margin-left: 0; + margin-top: 1rem; + } + + .description { + margin-top: 4rem + } +} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5e5e1bc..6e5e0b2 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -14,7 +14,7 @@ function HomepageHeader() { return (
- +

{siteConfig.tagline}

-
+

What is this?

We are non-profit provider of cloud services for select public.

@@ -66,26 +66,6 @@ export default function Home(): JSX.Element {

-
-
-

What is this?

-

- We are non-profit provider of cloud services for select public. -

-

- Our goal is to provide well integrated and coherent suite of - applications that can rival offers of propriatery and for-profit - companies. -

-

We use and build on top of open source software.

-

- You can read more about our{" "} - Architecture and{" "} - Hardware in the{" "} - Documentation. -

-
-