Skip to content

Commit

Permalink
add header
Browse files Browse the repository at this point in the history
  • Loading branch information
menthy-wu committed Nov 4, 2023
1 parent 4dd0d0c commit 3fed50b
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 3fed50b

Please sign in to comment.