diff --git a/src/App.scss b/src/App.scss index ea1fdf9..1b40fd8 100644 --- a/src/App.scss +++ b/src/App.scss @@ -41,37 +41,23 @@ a { text-decoration: none; } -body { - display: flex; -} - +// main is the component enclosing the Home content, including a background image and the text content it will have above it. +// The layering of the content is done with grid: main is the parent, .backrground-img and .home-content are its children main { display: grid; - grid-template-rows: 200vw; - grid-template-columns: 200vh; + grid-template-columns: 1fr; + grid-template-rows: repeat(2, 1fr); + grid-column-gap: 0px; + grid-row-gap: 0px; } -.backround-img { - // display: flex; - position: absolute; - // z-index: -5; - width: 200vw; - height: 200vh; - // top: 0; - // left: 0; - +.background-img { z-index: -2; - grid-area: 1 / 1 / 1 / 1; + grid-area: 1 / 1 / 3 / 2; } -.testContent { - width: 100%; - grid-area: 1 / 1 / 1 / 1; - z-index: 1; -} - -// remove this when we have actual content for our Home -// .test-home-bg { -// width: 80vw; -// height: 80vh; -// } \ No newline at end of file +.home-content { + color: $text-color; + z-index: 0; + grid-area: 1 / 1 / 2 / 2; +} \ No newline at end of file diff --git a/src/Home/Home.tsx b/src/Home/Home.tsx index 855b0f9..5114cd8 100644 --- a/src/Home/Home.tsx +++ b/src/Home/Home.tsx @@ -15,7 +15,7 @@ function Home() { <>
-
+
{/* Other components and content */}