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

removed dummy text, fixed events link and description responsiveness #106

Merged
merged 1 commit into from
Sep 28, 2024
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
2 changes: 1 addition & 1 deletion src/components/about/Mission.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Mission = ({ title, img, texts }) => {
{texts.map((text, index) => (
<div
key={index}
className="font-montserrat text-white flex items-center text-center text-base lg:text-lg font-semibold mt-8 "
className="font-montserrat text-white flex items-end text-center text-base lg:text-lg font-semibold mt-8 "
>
<p>{text}</p>
</div>
Expand Down
38 changes: 34 additions & 4 deletions src/components/events/Event.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,46 @@
import { LuExternalLink } from "react-icons/lu";
import Link from "next/link";
import { useState } from "react";
import { FaChevronDown } from "react-icons/fa";

const Event = ({ month, day, start, title, location, description }) => {
const [expand, setExpand] = useState(false);

return (
<div className="flex justify-center drop-shadow-2xl w-full">
<div className="font-urbanist flex justify-center flex-col bg-gradient-to-r from-[#010101] via-[#010101] to-[#393B42] text-[#ffffff] rounded-l-2xl w-3/12">
<div className=" mt-3 text-center md:text-5xl font-black ">{month}</div>
<div className="text-center md:text-4xl font-black pt-2">{day}</div>
<div className="text-center md:text-5xl font-black pt-2">{day}</div>
<div className="text-center md:text-xl font-black py-2">{start}</div>
</div>
<div className="bg-white rounded-r-2xl w-9/12 text-[#303030] p-3">
<div className="text-4xl ml-5 font-black">{title}</div>
<div className="font-sans ml-5 flex text-left text-xl">{location}</div>
<div className="font-sans ml-5 mb-2 mt-3 mr-2 text-lg">
{description}
{location && (
<div className="font-sans ml-5 flex text-left text-xl">
{location.startsWith("http") ? (
<Link
className="flex flex-row items-center text-hsp-orange underline"
href={location}
>
<LuExternalLink className="text-hsp-orange" /> &nbsp;Zoom
</Link>
) : (
location
)}
</div>
)}
<div className="font-sans ml-5 mb-2 mt-3 mr-2 text-lg break-all">
{expand ? description : `${description.slice(0, 250)}...`}
{description.length > 250 && (
<div className="flex justify-end">
<FaChevronDown
className={`text-hsp-orange ml-2 cursor-pointer transition duration-300 ${
expand ? "rotate-180" : "rotate-0"
}`}
onClick={() => setExpand(!expand)}
/>
</div>
)}
</div>
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/data/Mission.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const texts = [
img: Image1,
para: [
"HSP seeks to promote public awareness and interest in the field through various outreach activities, such as recorded demonstrations, tabling, and educational events.",
"Lorem ipsum dolor sit amet. Cum aspernatur illo a cupiditate dolorem quo illum maiores et corporis quae in molestias laborum nam corporis sunt. Non beatae ducimus qui animi quaerat ut placeat recusandae in perspiciatis",
],
},
{
Expand All @@ -23,8 +22,8 @@ const texts = [
title: "our vision",
img: Image3,
para: [
"HSP is committed to maintaining an inclusive and welcoming environment that values diversity of thought and respects the rights and dignity of all its members. HSP shall operate in accordance with the relevant laws and regulations and shall be guided by its Constitution and Bylaws.",
"Lorem ipsum dolor sit amet. Cum aspernatur illo a cupiditate dolorem quo illum maiores",
"HSP is committed to maintaining an inclusive and welcoming environment that values diversity of thought and respects the rights and dignity of all its members.",
"HSP shall operate in accordance with the relevant laws and regulations and shall be guided by its Constitution and Bylaws.",
],
},
];
Expand Down
Loading