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

recloned and added code #30

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
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
11 changes: 10 additions & 1 deletion src/components/about/About.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import React from "react";
import ValueCard from "./ValueCard";

const About = () => {
return <div>About Us Page</div>;
return (
<div>
<h1>About Us Page</h1>
<ValueCard
title="Awareness"
text="Awareness not only brings out the negatives that one might feel, but also shows the strengths, values, and goals of everyone. Being aware encourages a proactive approach to mental health that we hope to share with everyone."
/>
</div>
);
};

export default About;
31 changes: 31 additions & 0 deletions src/components/about/ValueCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from "react";

interface ValueCardProps {
title: string;
text: string;
}

const ValueCard: React.FC<ValueCardProps> = ({ title, text }) => {
// Assign class names to variables for readability and maintainability
//const containerClasses = "flex flex-col items-center my-8";

// const titleClasses =
// "text-3xl text-leap-dark-green mb-6 text-center font-bold tracking-widest";

// const boxClasses =
// "bg-leap-mid-green p-6 shadow-[0_4px_6px_rgba(0.9,1.9,0.9,1.9)] max-w-[300px] text-center text-white text-base leading-relaxed relative tracking-widest";

return (
//const containerClasses
<div className="my-8 flex flex-col items-center">
<div className="mb-6 text-center text-3xl font-bold text-leap-dark-green">
{title}
</div>
<div className="relative max-w-[300px] bg-leap-mid-green p-6 text-center text-base leading-relaxed tracking-widest text-white shadow-lg shadow-leap-light-green">
{text}
</div>
</div>
);
};

export default ValueCard;