Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions project-app/components/Landing/Landing.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import NavButton from './NavButton/NavButton.jsx'

const LandingBanner = () => {

return (
<div className='bg-hero-background bg-contain bg-no-repeat .flex flex-col '>

<div className='grid h-screen place-items-center'>
<h1 className = 'text-3xl'>Project Clean-Up</h1>
</div>

<div className='md:w-80 md:space-x-5 p-3 inset-9 md:-mt-96'>
<NavButton buttonText="Button One"/>
<NavButton buttonText="Button Two"/>
</div>
</div>
);

}

export default LandingBanner;
13 changes: 13 additions & 0 deletions project-app/components/Landing/NavButton/NavButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//Simple buttons which redirect the user to a different page/part of page when clicked.

import React from "react";

function NavButton( {buttonText}) {
return (
<button className = "bg-orange-500 hover:bg-orange-700 text-black font-bold py-2 px-4 rounded">
{buttonText}
</button>
)
}

export default NavButton;
12 changes: 10 additions & 2 deletions project-app/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ import styles from "../styles/Home.module.css";
import Navbar from "../components/Navbar/Navbar";

import dynamic from "next/dynamic";
import LandingBanner from "../components/Landing/Landing";

// const MapWithNoSSR = dynamic(() => import("../components/Map/Map.jsx"), {
// ssr: false,
// });

export default function Home() {
return (
<>
<Head>
<title>Project Clean-Up|Home</title>
</Head>
<div className={styles.container}>
<Navbar />
<h1 className="text-blue-600/100 hover:underline">Project Clean-Up</h1>

{/* <MapWithNoSSR /> */}
<LandingBanner></LandingBanner>

<MapWithNoSSR />

</div>
</>
);
}
Binary file added project-app/public/hero-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions project-app/styles/Home.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
.container {
overflow: hidden;

}

.main {
min-height: 100vh;
padding: 4rem 0;
flex: 1;

display: flex;
flex-direction: column;
justify-content: center;
Expand Down
1 change: 1 addition & 0 deletions project-app/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ body{
img {
border: none;
}

6 changes: 5 additions & 1 deletion project-app/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = {
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
extend: {
backgroundImage: {
'hero-background': "url('/hero-background.png')",
}
},
},
plugins: [],
}
Expand Down