From a2e4867ba76864cea98e7d82505306841b86e364 Mon Sep 17 00:00:00 2001 From: Anita-ihuman Date: Wed, 17 Feb 2021 11:09:50 +0100 Subject: [PATCH] positioned items for the main --- pages/index.js | 98 +++++++++++++++++++++++------------------ pages/main.tsx | 37 ++++++++++------ styles/main.module.scss | 11 ++--- 3 files changed, 85 insertions(+), 61 deletions(-) diff --git a/pages/index.js b/pages/index.js index 9d70f85..8eaad45 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,65 +1,79 @@ import Head from "next/head"; import styles from "../styles/Home.module.css"; -import { Element } from '../pages/main' +import { Element } from "../pages/main"; export default function Home() { return ( <> -
-
-
-

Follow

-
- -
- -
- -
-
-
-
-
- +
+
+
+

Follow

+
+
+
-

A Hiking guide

+
-

- Be prepared for the Mountains and beyond! -

-
- scroll down -
- +
+
+
+ +
+
+

A Hiking guide

+
+
+

+ Be prepared for the Mountains and beyond! +

+
+ scroll down +
+ +
+
+ + + +
-
- - - -
-
- - - - - + + + + +
- - + + ); } diff --git a/pages/main.tsx b/pages/main.tsx index 8316973..674064d 100644 --- a/pages/main.tsx +++ b/pages/main.tsx @@ -6,6 +6,7 @@ export interface ElementProps { headbold: string; headtext: string; headbottom: string; + left: boolean; } export function Element({ @@ -13,34 +14,42 @@ export function Element({ headbold, headtext, headbottom, + left, }: ElementProps) { return ( -
-
-
+
+
+
+ {left && ( +
+ +
+ )}
-
+
-
+
-

{headtop}

+

{headtop}

-

{headbold}

+

{headbold}

{headtext}

-

{headbottom}

+ {headbottom}
-
- -
-
-
-
+ {!left && ( +
+ +
+ )} + + + ); } diff --git a/styles/main.module.scss b/styles/main.module.scss index 005db3a..1e11797 100644 --- a/styles/main.module.scss +++ b/styles/main.module.scss @@ -38,8 +38,8 @@ background-color: #0B1D26; .content_top { display: flex; } -.content_top p { - margin: 0px 0px; +.content_top h4 { + margin: 7px 0px; padding-left: 1rem; font-family: Gilroy; font-style: normal; @@ -52,17 +52,18 @@ background-color: #0B1D26; .content_bottom { display: flex; } -.content_bottom p { +.content_bottom a { font-family: Gilroy; font-size: 0.7rem; color: #fbd784; - width: 70px; + margin: 0; } .content_bottom img { width: 7px; height: 20px; - margin-top: 6px; + margin-top: -2px; + margin-left: 20px; transform: rotate(-90deg); color: #fbd784; }