Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add header #60

Merged
merged 1 commit into from
Nov 5, 2023
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
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