Skip to content

Commit d727b24

Browse files
authored
Merge pull request #267 from acm-ucr/felix/finalchanges
migrate to predef classes, fragment, reduce bloat
2 parents 59e5dab + ad41914 commit d727b24

File tree

8 files changed

+17
-19
lines changed

8 files changed

+17
-19
lines changed

src/app/gallery/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Gallery from "@/components/gallery/Gallery";
33
import Image from "next/image";
44
import pinkFlower from "@/public/gallery/pinkFlower.webp";
55
import blueFlower from "@/public/gallery/blueFlower.webp";
6-
import CarouselGallery from "@/components/gallery/CaroGallery";
6+
import CarouselGallery from "@/components/gallery/CarouselGallery";
77

88
const Page = () => {
99
return (

src/components/about/FourPillars.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import gradCap from "@/public/about/gradCap.webp";
66

77
const FourPillars = () => {
88
return (
9-
<div>
9+
<>
1010
<div className="mt-10 flex flex-col">
1111
<p className="ml-[7%] mr-[6%] text-right text-5xl font-semibold text-csa-red-100">
1212
Four Pillars
@@ -53,11 +53,11 @@ const FourPillars = () => {
5353
<Image
5454
src={gradCap}
5555
alt="gradCap"
56-
className="absolute w-[42vw] translate-x-[40%] translate-y-[-12%] sm:translate-x-[40%] sm:translate-y-[-9%] md:w-[28vw] md:translate-x-[60%] md:translate-y-[-9%] lg:w-[18vw] lg:translate-x-[120%]"
56+
className="absolute translate-x-[40%] translate-y-[-9%] md:w-[70%] md:translate-x-[40%]"
5757
/>
5858
</div>
5959
</div>
60-
</div>
60+
</>
6161
);
6262
};
6363

src/components/about/WhoWeAre.tsx

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
const WhoWeAre = () => {
22
return (
3-
<div>
4-
<div>
5-
<p className="ml-[6%] text-left text-5xl font-medium text-csa-red-100">
6-
Who we are
7-
</p>
8-
<div className="ml-[7%] mr-auto h-2 w-[9%] bg-csa-tan-300" />
9-
</div>
3+
<>
4+
<p className="ml-[6%] text-left text-5xl font-medium text-csa-red-100">
5+
Who we are
6+
</p>
7+
<div className="ml-[7%] mr-auto h-2 w-[9%] bg-csa-tan-300" />
108
<div className="ml-[4%] mr-[4%] flex justify-center">
11-
<p className="font-lora mt-8 w-11/12 text-left text-xl text-csa-gray-100 md:text-4xl">
9+
<p className="font-lora mt-8 w-11/12 text-left text-xl text-csa-gray-100 md:text-3xl">
1210
The Chinese Student Association (CSA) at UC Riverside is a social,
1311
cultural, and service orientated organization that strives to promote
1412
the Chinese American culture throughout the UCR and Riverside
@@ -20,7 +18,7 @@ const WhoWeAre = () => {
2018
experience and beyond!
2119
</p>
2220
</div>
23-
</div>
21+
</>
2422
);
2523
};
2624

src/components/events/CalendarDay.tsx renamed to src/components/events/Day.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GoogleEventProps } from "@/components/events/CalendarCall";
22
import { useState, useEffect } from "react";
3-
import CalendarEventPopover from "./CalendarEventPopover";
3+
import CalendarEventPopover from "./EventPopover";
44
import {
55
Popover,
66
PopoverContent,
File renamed without changes.

src/components/gallery/CaroGallery.tsx renamed to src/components/gallery/CarouselGallery.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const CarouselGallery = () => {
1010
<Image
1111
src={rabbit}
1212
alt="rabbit"
13-
className="absolute bottom-[-13%] left-[2%] z-40 h-[50%] w-[30%] md:left-[12%]"
13+
className="absolute bottom-[-13%] left-[2%] z-40 h-1/2 w-[30%] md:left-[12%]"
1414
/>
1515
<Image
1616
src={bamboo}
1717
alt="bamboo"
1818
className="absolute bottom-[13%] left-[54%] z-40 h-[87%] w-[40%] md:left-[46.5%]"
1919
/>
20-
<div className="top-50 absolute -left-2 z-20 hidden h-full w-[20%] bg-csa-tan-100 md:flex" />
20+
<div className="top-50 absolute -left-2 z-20 hidden h-full w-1/5 bg-csa-tan-100 md:flex" />
2121
<CarouselCSA photos={carouselGallery} />
22-
<div className="top-50 absolute z-20 hidden h-full w-[20%] bg-csa-tan-100 md:flex" />
22+
<div className="top-50 absolute z-20 hidden h-full w-1/5 bg-csa-tan-100 md:flex" />
2323
</div>
2424
);
2525
};

src/components/ui/calendar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { cn } from "@/lib/utils";
77
import { buttonVariants } from "@/components/ui/button";
88
import { useState } from "react";
99
import { GoogleEventProps } from "@/components/events/CalendarCall";
10-
import CalendarTop from "@/components/events/CalendarTop";
11-
import CalendarDay from "@/components/events/CalendarDay";
10+
import CalendarTop from "@/components/events/Top";
11+
import CalendarDay from "@/components/events/Day";
1212

1313
export type CalendarProps = React.ComponentProps<typeof DayPicker> & {
1414
events: GoogleEventProps[];

0 commit comments

Comments
 (0)