From 7005349b1eecc9c57618b8c978f085c9ddf1268a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?=
PlannerZm;8{62%HvR`7unCw6D`A<+5dz!@jo(SZBZj03idFRY
zin7IM>dgBE10G?>v!7_ufPuD_ASYaJeB(~KR+~?f&*ARS#2%Ro@6tp1v=09V7~JQN
za2vwa_4qA@ZA%%?c!fex@k#uwD9f^y!G{5lFl1p+O5p4|WK;O7X;k2B1PIj#=SC4M
z10E8?YW-OsB?@JB`twF%3^oXEL4;7!SzS-?k4oGeYz_8yXA48{m_a7YO54Trip
;
-}
+export const Logo = () => {
+ return
Planner
;
+};
diff --git a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimary.tsx b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimary.tsx
index a178328..3a5b5e6 100644
--- a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimary.tsx
+++ b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimary.tsx
@@ -1,35 +1,30 @@
-import styled from 'styled-components'
+import styled from 'styled-components';
-const ButtonPrimary = styled.button`
+export const ButtonPrimary = styled.button`
padding: 10px 18px 10px 18px;
width: 105px;
height: 34px;
- background-color: #F53314;
+ background-color: #f53314;
border: 0;
border-radius: 6px;
color: #fff;
- cursor: pointer;
- left: calc(50% - 105px/2);
- top: calc(50% - 34px/2 + 54px);
- font-family: Work Sans, sans-serif;
- font-style: normal;
+ font-style: normal;s
font-weight: 500;
font-size: 12px;
line-height: 14px;
-
+
&:hover {
- background: #F75D45;
+ background: #f75d45;
}
&:disabled {
- background: #D1D1D1;
- color: #ADADAD;
+ background: #d1d1d1;
+ color: #adadad;
}
&:active {
- background: #F98876;
+ background: #f98876;
}
&:focus {
- border: 2px solid #FBB2A7;
+ border: 2px solid #fbb2a7;
padding: 0;
}
-`
-export default ButtonPrimary;
\ No newline at end of file
+`;
diff --git a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryLink.tsx b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryLink.tsx
index 0684fa2..bfaa834 100644
--- a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryLink.tsx
+++ b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryLink.tsx
@@ -1,34 +1,29 @@
-import styled from 'styled-components'
+import styled from 'styled-components';
-const ButtonLink = styled.button`
+export const ButtonLink = styled.button`
padding: 10px 18px 10px 18px;
width: 105px;
height: 34px;
background-color: transparent;
border: 0;
border-radius: 6px;
- color: #F53314;
- cursor: pointer;
- left: calc(50% - 105px/2);
- top: calc(50% - 34px/2 + 54px);
- font-family: Work Sans, sans-serif;
+ color: #f53314;
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 14px;
-
+
&:hover {
- color: #F75D45;
+ color: #f75d45;
}
&:disabled {
- color: #ADADAD;
+ color: #adadad;
}
&:active {
- color: #F98876;
+ color: #f98876;
}
&:focus {
- border: 2px solid #FBB2A7;
+ border: 2px solid #fbb2a7;
padding: 0;
}
-`
-export default ButtonLink;
+`;
diff --git a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryText.tsx b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryText.tsx
index 2d4a547..9207d1f 100644
--- a/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryText.tsx
+++ b/TripPlanner - Project/TripPlannerFrontend/src/components/Buttons/ButtonPrimaryText.tsx
@@ -1,37 +1,32 @@
-import styled from 'styled-components'
+import styled from 'styled-components';
-const ButtonText = styled.button`
+export const ButtonText = styled.button`
padding: 10px 18px;
width: 105px;
height: 34px;
background-color: #fff;
- border: 1px solid #F53314;
+ border: 1px solid #f53314;
border-radius: 6px;
- color: #F53314;
- cursor: pointer;
- left: calc(50% - 105px/2);
- top: calc(50% - 34px/2 + 54px);
- font-family: Work Sans, sans-serif;
+ color: #f53314;
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 14px;
-
+
&:hover {
- border: 1px solid #F75D45;
- color: #F75D45;
- }
+ border: 1px solid #f75d45;
+ color: #f75d45;
+ }
&:disabled {
- border: 1px solid #ADADAD;
- color: #ADADAD;
- }
+ border: 1px solid #adadad;
+ color: #adadad;
+ }
&:active {
- border: 1px solid #F98876;
- color: #F98876;
+ border: 1px solid #f98876;
+ color: #f98876;
}
&:focus {
- border: 2px solid #FBB2A7;
+ border: 2px solid #fbb2a7;
padding: 9px 18px 10px 18px;
}
-`
-export default ButtonText;
+`;
diff --git a/TripPlanner - Project/TripPlannerFrontend/src/components/Typography/Typography.tsx b/TripPlanner - Project/TripPlannerFrontend/src/components/Typography/Typography.tsx
index f67c0eb..7699268 100644
--- a/TripPlanner - Project/TripPlannerFrontend/src/components/Typography/Typography.tsx
+++ b/TripPlanner - Project/TripPlannerFrontend/src/components/Typography/Typography.tsx
@@ -20,44 +20,10 @@ const Subheading = styled(TextBase)`
font-size: 2.074rem;
`;
-const Nav = styled.ul`
- width: 50%;
- display: flex;
- list-style-type: none;
- justify-content: flex-end;
- font-family: Work Sans, sans-serif;
- font-style: normal;
- font-weight: 500;
- font-size: 13px;
- line-height: 15px;
- color: #919191;
- & > li {
- padding-right: 1rem;
- }
-`;
-
-const NavBar = styled.div`
- display: flex;
- align-items: center;
- width: 100%;
- justify-content: space-between;
- & > h3 {
- padding-left: 1rem;
- font-family: Work Sans, sans-serif;
- font-style: normal;
- font-weight: 600;
- font-size: 17.4703px;
- line-height: 20px;
- letter-spacing: -0.03em;
- }
-`;
-
const Body = styled(TextBase)``;
export const Typography = {
Heading,
Subheading,
Body,
- Nav,
- NavBar,
};
diff --git a/TripPlanner - Project/TripPlannerFrontend/src/pages/Home.tsx b/TripPlanner - Project/TripPlannerFrontend/src/pages/Home.tsx
index 094c2c1..0892e84 100644
--- a/TripPlanner - Project/TripPlannerFrontend/src/pages/Home.tsx
+++ b/TripPlanner - Project/TripPlannerFrontend/src/pages/Home.tsx
@@ -8,9 +8,9 @@ import {
import { useInterval } from '../hooks/useInterval';
import { DefaultLayout } from '../components/Layout/DefaultLayout';
import { Typography } from '../components/Typography/Typography';
-import ButtonPrimary from '../components/Buttons/ButtonPrimary';
-import ButtonText from '../components/Buttons/ButtonPrimaryText';
-import ButtonLink from '../components/Buttons/ButtonPrimaryLink';
+import {ButtonPrimary} from '../components/Buttons/ButtonPrimary';
+import {ButtonText} from '../components/Buttons/ButtonPrimaryText';
+import {ButtonLink} from '../components/Buttons/ButtonPrimaryLink';
export const Home = () => {
const dispatch = useAppDispatch();