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

title page #27

Closed
wants to merge 5 commits into from
Closed
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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions public/home/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import WhoWeAre from "@/components/about/WhoWeAre";
import Heading from "@/components/about/FourPillTitle";
import Title from "@/components/Title";
const page = () => {
return (
<div>
<WhoWeAre />
<Heading />
<Title text="About" />
</div>
);
};
Expand Down
11 changes: 8 additions & 3 deletions src/app/events/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from "react";
import Title from "@/components/Title";

const page = () => {
return <div></div>;
const Events = () => {
return (
<div>
<Title text="Events" />
</div>
);
};

export default page;
export default Events;
12 changes: 12 additions & 0 deletions src/app/gallery/gallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import Title from "@/components/Title";

const Gallery = () => {
return (
<div>
<Title text="Gallery" />
</div>
);
};

export default Gallery;
46 changes: 46 additions & 0 deletions src/components/Title.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from "react";
import Image from "next/image";
import banner from "@/public/home/banner.svg";

interface TitleNameProps {
text: string;
}

const Title: React.FC<TitleNameProps> = ({ text }) => {
return (
<div className="relative mt-1 flex items-center justify-center">
<div className="mr-4 mt-4 h-[.8vh] w-[20vw] bg-csa-green-100" />
<Image src={banner} alt="Banner" className="h-1/3 w-1/3 object-cover" />
<div className="absolute mt-4 flex justify-center">
<svg
width="3/4vw"
height="3/4vw"
viewBox="0 0 400 200"
xmlns="http://www.w3.org/2000/svg"
>
<path
id="curve"
d="M50,150 Q200,10 370,150"
fill="transparent"
stroke="none"
/>

<text
fill="#7C2413"
font-size="6.5vw"
font-weight="bold"
font-family="serif"
>
<textPath href="#curve" startOffset="50%" text-anchor="middle">
{text}
</textPath>
</text>
</svg>{" "}
</div>

<div className="ml-4 mt-4 h-[.8vh] w-[20vw] bg-csa-green-100" />
</div>
);
};

export default Title;
Loading