Skip to content

Commit

Permalink
added a gap between last card and bottom of page and removed useless …
Browse files Browse the repository at this point in the history
…wrapper div
  • Loading branch information
ViktorYeet committed Sep 26, 2024
1 parent 75074ab commit 075c882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 6 additions & 8 deletions frontend/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ const Home: NextPage = () => {
<link rel="icon" href="/favicon.ico" />
</Head>

<div className="backgroundcolor">
<Header categories={categories} show={show} setShow={setShow} />
<main>
{categories.map((service: Category) => (
<CategoryList categories={service} key={service.category} />
))}
</main>
</div>
<Header categories={categories} show={show} setShow={setShow} />
<main>
{categories.map((service: Category) => (
<CategoryList categories={service} key={service.category} />
))}
</main>
</>
);
};
Expand Down
6 changes: 4 additions & 2 deletions frontend/resources/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ html {
body {
margin: 0;
padding: 0;
background-color: var(--site-background);
color: var(--text);
padding-bottom: 10vh;
//background-color: #f0f0f0;
}

Expand Down Expand Up @@ -267,6 +270,5 @@ button {

/* dark mode och lightmode är samma bör göras till en klass */
.backgroundcolor {
background-color: var(--site-background);
color: var(--text);

}

0 comments on commit 075c882

Please sign in to comment.