From 504a8013bbede95639babac7997dddc562d98f99 Mon Sep 17 00:00:00 2001 From: Dallas Richmond Date: Mon, 2 Dec 2024 20:19:08 -0800 Subject: [PATCH 1/6] Styled page --- .../components/common/Header/header.styles.ts | 2 +- .../src/views/LandingPage/LandingPage.tsx | 28 +++++++--------- .../views/LandingPage/landingPage.styles.ts | 32 ++++++++++++------- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/common/Header/header.styles.ts b/frontend/src/components/common/Header/header.styles.ts index 1b5e58f0..7f5a0c44 100644 --- a/frontend/src/components/common/Header/header.styles.ts +++ b/frontend/src/components/common/Header/header.styles.ts @@ -21,7 +21,7 @@ export const HeaderWrapper = styled.header` left: 0; @media (min-width: ${screenSizes.tablet}) { justify-content: flex-start; - padding: 2em; + padding-left: 2em; } z-index: 2000; `; diff --git a/frontend/src/views/LandingPage/LandingPage.tsx b/frontend/src/views/LandingPage/LandingPage.tsx index 5bec9f77..c1eb1440 100644 --- a/frontend/src/views/LandingPage/LandingPage.tsx +++ b/frontend/src/views/LandingPage/LandingPage.tsx @@ -2,11 +2,11 @@ * @summary The landing page for the application */ import { - Wrapper, ButtonWrapper, ViewContainer, StyledDivider, StyledContent, + Card, } from './landingPage.styles'; import { Button } from '../../components/common'; @@ -21,14 +21,11 @@ export default function LandingPage() { const saveFile = (e: any) => { const file = e.target.files[0]; - if (!isValidFile(file)) { return; } - const fr = new FileReader(); fr.readAsText(file); - fr.onload = () => { const data = fr.result; if (data) { @@ -47,9 +44,18 @@ export default function LandingPage() { // eslint-disable-next-line no-alert alert('New Calculation'); }; + return ( - + + +

About the nutrient calculator

+

+ The Nutrient Management Calculator is a simple tool to help farmers maintain soil + nutritent levels, taking into consideration many different farm types. You can start a + new calculation or pick up where you left off by uploading an old .nmp file! +

+