Skip to content

Commit

Permalink
Merge pull request #2 from Team-ArchItects/groupA
Browse files Browse the repository at this point in the history
Homepage Banner / Nav merge
  • Loading branch information
DayHikari authored Dec 5, 2023
2 parents b2484e2 + c3552ea commit a2e1a4b
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 1 deletion.
26 changes: 26 additions & 0 deletions app/components/banner/Banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import "./banner.css";
// import banner from './assets/cityphoto';
import Image from 'next/image';

{/* <div className="banner">
<img src={banner} alt="Banner" />
<div className="banner-content">
<h1>aGuideHub</h1>
<p>Welcome To aGuideHub! </p>
</div>
</div> */}

const Banner = () => {
return (
<div className="bg-[url('/assets/cityphoto.png')] bg-cover bg-center w-screen h-96">
<Image src="/assets/banner_content.png" width="500" height="250" alt="Banner" className="mt-16 ml-12"/>
<button className="bg-white w-40 flex flex-wrap p-2">
Next Event
<Image src="/assets/arrow.png" width="20" height="20" alt="Arrow" className="ml-2 mt-1"/>
</button>
</div>
);
}

export default Banner;
30 changes: 30 additions & 0 deletions app/components/banner/banner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.banner {
display: flex;
align-items: center;
justify-content: center;
height: 500 px;
background-color: orange;
}

.banner img {
height: 100%;
object-fit: cover;
}

.banner-content {
text-align: center;
color: #333;
}

.banner-content h1 {
font-size: 3rem;
margin-bottom: 0;
display: flex;
align-items: center;
justify-content: center;
}

.banner-content p {
font-size: 1.5rem;
margin-top: 0;
}
3 changes: 2 additions & 1 deletion app/page.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Image from 'next/image'
import Banner from 'app/components/banner/Banner.js'


export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<p>This is the Homepage</p>
<Banner />
</main>
)
}
Binary file added public/assets/arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/banner_content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/cityphoto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/textbanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2e1a4b

Please sign in to comment.