From 6b6a29714c763c5a88441ba5affafda71719de8d Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 24 May 2023 08:43:30 +0200 Subject: [PATCH] Base jobs history section --- src/app/components/JobCard.tsx | 27 ++++++++++++++++++++++ src/app/components/JobsHistory.tsx | 37 ++++++++++++++++++++++++++++++ src/app/globals.css | 8 +++++++ src/app/layout.tsx | 5 ++-- src/app/page.tsx | 15 +++++------- 5 files changed, 81 insertions(+), 11 deletions(-) create mode 100644 src/app/components/JobCard.tsx create mode 100644 src/app/components/JobsHistory.tsx diff --git a/src/app/components/JobCard.tsx b/src/app/components/JobCard.tsx new file mode 100644 index 0000000..3c14c3a --- /dev/null +++ b/src/app/components/JobCard.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import Card from 'react-bootstrap/Card'; + +export type Props = { + heading?: string, + position: string, + timerange: string, + company: string, + description: string +}; + +export default function JobCard(props: Props) { + return ( + + {props.heading && ( + {props.heading} + )} + + {props.position} + + {props.company}, {props.timerange} + + {props.description} + + + ); +} diff --git a/src/app/components/JobsHistory.tsx b/src/app/components/JobsHistory.tsx new file mode 100644 index 0000000..c5f99c7 --- /dev/null +++ b/src/app/components/JobsHistory.tsx @@ -0,0 +1,37 @@ + +import React from 'react'; +import Container from 'react-bootstrap/Container'; +import Col from 'react-bootstrap/Col'; +import Row from 'react-bootstrap/Row'; +import JobCard from './JobCard'; + +export default function JobsHistory() { + return ( + + + + + + + + + + + ) +} diff --git a/src/app/globals.css b/src/app/globals.css index 53af176..d145aef 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,2 +1,10 @@ @import 'bootstrap/dist/css/bootstrap.min.css'; + +.job-card { + margin-top: 1em; +} + +.job-card .timerange { + font-style: italic; +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f382961..2fe81d3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,8 @@ -import './globals.css' - +import React from 'react' import { Inter } from 'next/font/google' +import './globals.css' + const inter = Inter({ subsets: ['latin'] }) export const metadata = { diff --git a/src/app/page.tsx b/src/app/page.tsx index 8e04d68..3cd426f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,15 +1,12 @@ 'use client' -import Button from 'react-bootstrap/Button'; -import Alert from 'react-bootstrap/Alert'; +import React from 'react'; +import Container from 'react-bootstrap/Container'; +import JobsHistory from './components/JobsHistory'; export default function Home() { return ( -
- - This Bootstrap theme works. - - - -
+ + + ) }