Skip to content

Commit

Permalink
Merge pull request #60 from acm-ucr/menthy/header
Browse files Browse the repository at this point in the history
add header
  • Loading branch information
menthy-wu authored Nov 5, 2023
2 parents 4dd0d0c + 3fed50b commit 89ced5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/app/projects/costa-rica/page.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import React from "react";
import CostaRica from "@/components/projects/CostaRica";
import Header from "@/components/projects/Header";
import header from "../../../../public/images/costaRica/CostaRicaHeader.webp";

const page = () => {
return (
<>
<Header img={header.src} title="Costa Rica Project" />
<CostaRica />
</>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/projects/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Title from "../Title";

const Header = ({ img, title }) => {
return (
<div>
<img src={img} alt="Image" className="mb-2.5 w-full" />
<div className="w-full">
<img src={img} alt="Image" className="mb-3 w-full object-cover" />
<Title subTitle="" title={title} />
</div>
);
Expand Down

0 comments on commit 89ced5a

Please sign in to comment.