Skip to content

Commit

Permalink
Merge pull request #142 from UoaWDCC/remove-hex-from-tw
Browse files Browse the repository at this point in the history
Remove hex colours from tw
  • Loading branch information
EzekielKo authored Jul 15, 2024
2 parents 375ae7a + d0f3553 commit 9706302
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 21 deletions.
1 change: 0 additions & 1 deletion web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const router = createBrowserRouter([
{
path: '/',
element: <MainMenu />,

},
{
path: '*',
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/OurAchievements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MainPageButtonHeadings from "./MainPageButtonHeadings";

const OurAchievements = () => {
return (
<div className="flex flex-col items-center h-screen bg-white font-medium">
<div className="flex flex-col items-center h-screen bg-neutral font-medium">
<MainPageButtonHeadings heading="Our Achievements" />
<div className="achievements flex flex-row gap-4 items-center mt-8">
<img
Expand All @@ -12,7 +12,7 @@ const OurAchievements = () => {
alt="img1"
/>

<div className="w-[180px] h-[250px] bg-[#D9D9D9] font-semibold tracking-[-1px] rounded-[30px]">
<div className="w-[180px] h-[250px] bg-lightGrey font-semibold tracking-[-1px] rounded-[30px]">
<p className="text-center text-lg leading-[8px] mt-12">
Relay for life:
</p>
Expand All @@ -30,7 +30,7 @@ const OurAchievements = () => {
alt="img2"
/>

<div className="w-[180px] h-[250px] bg-[#D9D9D9] font-semibold tracking-[-1px] rounded-[30px]">
<div className="w-[180px] h-[250px] bg-lightGrey font-semibold tracking-[-1px] rounded-[30px]">
<p className="text-center text-lg leading-[8px] mt-12">
UoA Clubs Awards:
</p>
Expand Down
10 changes: 6 additions & 4 deletions web/src/components/OurCommunity.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import MainPageButtonHeadings from "./MainPageButtonHeadings";

const OurCommunity = () => {
return (
<div className="flex flex-col items-center h-screen bg-white text-black font-medium">
<div className="flex flex-col items-center h-screen bg-neutral text-black font-medium">

<div className="relative w-full h-screen">
<MainPageButtonHeadings heading="Our Community"/>
<div className="flex flex-col items-center">
<MainPageButtonHeadings heading="Our Community"/>
</div>
<div className="flex flex-col items-center">
<div className="text-center font-medium w-[36rem] leading-[1.2rem] mt-[4rem]">
Join our community to start tracking your efforts!
Expand All @@ -15,7 +17,7 @@ const OurCommunity = () => {
</div>
<div className="text-center text-[5rem] leading-[150%] font-semibold mt-[3.5rem]">1,200</div>
<div className="text-center text-[1.4rem]">volunteers in our club</div>
<button className="text-white text-[0.7rem] py-[1rem] mt-[2.2rem] rounded-[30px] px-8 leading-[0.5rem] bg-[#3B87DD]">
<button className="text-white text-[0.7rem] py-[1rem] mt-[2.2rem] rounded-[30px] px-8 leading-[0.5rem] bg-primary">
Sign me up!
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/SponsorDiscount.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const SponsorDiscount = (props: any) => {
return (
<div className="flex flex-col items-center">
<div className="w-0 h-0 border-l-[10px] border-l-transparent border-r-[10px] border-r-transparent border-b-[15px] border-b-[#D9D9D9] mt-2"></div>
<div className="bg-[#D9D9D9] h-[70px] rounded-[10px] flex flex-col justify-center">
<div className="w-0 h-0 border-l-[10px] border-l-transparent border-r-[10px] border-r-transparent border-b-[15px] border-b-lightGrey mt-2"></div>
<div className="bg-lightGrey h-[70px] rounded-[10px] flex flex-col justify-center">
<div className="ml-[0.7rem] mt-[-0.7rem] text-[0.6rem]">{props.name}</div>
<div className="mx-auto px-[2.5rem] mt-[0.1rem]">{props.discount}</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import SponsorDiscount from './SponsorDiscount';
import MainPageButtonHeadings from './MainPageButtonHeadings';

interface SponsorsProps {
data: { imageSrcBw: string; imageSrcColour: string; alt: string; id: number }[]
}
Expand Down Expand Up @@ -29,7 +29,7 @@ const Sponsors = ({ data }: SponsorsProps) => {
];

return (
<div className="flex flex-col items-center h-[85vh] bg-white text-black font-medium">
<div className="flex flex-col items-center h-[85vh] bg-neutral text-black font-medium">
<div className="flex flex-col items-center">
<MainPageButtonHeadings heading="Our Sponsors"/>
<div className="text-center mt-[1rem]">
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/UpcomingEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const UpcomingEvent = () => {
<p className="text-[6px] bg-gray-200 px-2 py-1 rounded-xl mt-1 ml-[0.5rem] mr-[3rem]">Club Event</p>
</div>
<div className="flex items-center mx-4">
<button className="bg-[#3C9DDD] rounded-full text-[12px] px-[6.5px] py-[0px] hover:bg-[#60ABF6]">&gt;</button>
<button className="bg-primary rounded-full text-[12px] px-[6.5px] py-[0px] hover:bg-blueButtonHover">&gt;</button>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion web/src/data/SponsorList.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sponsors": [
"sponsors": [
{
"id": 1,
"imageSrcColour": "../../assets/gallery/sponsors/colour/kompass-logo-colour.png",
Expand Down
4 changes: 3 additions & 1 deletion web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default {
neutral: "#FFFEF9", /* basically white */
"neutral-tan": "#FAF6EB", /* tan color */
black: "#33342E", /* lighter black */
grey: "#818181" /* grey */
grey: "#818181", /* grey */
lightGrey: "#D9D9D9", /* light grey */
blueButtonHover: "#60ABF6"
},
fontSize: {
'number': ['80px', {
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@firebase/util" "1.9.5"
tslib "^2.1.0"

"@firebase/[email protected]", "@firebase/[email protected]":
"@firebase/[email protected]":
version "0.2.32"
resolved "https://registry.npmjs.org/@firebase/app-compat/-/app-compat-0.2.32.tgz"
integrity sha512-xxfAQKwCmpzwwdBHXT1DTnmilwSeSy6Sa1vThL0q0mq5GPHi52onkm5wl1lrOaiP0uQwQutkZBf/Wy4tDW+5WQ==
Expand All @@ -77,12 +77,12 @@
"@firebase/util" "1.9.5"
tslib "^2.1.0"

"@firebase/[email protected]", "@firebase/[email protected]":
"@firebase/[email protected]":
version "0.9.1"
resolved "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.1.tgz"
integrity sha512-nFGqTYsnDFn1oXf1tCwPAc+hQPxyvBT/QB7qDjwK+IDYThOn63nGhzdUTXxVD9Ca8gUY/e5PQMngeo0ZW/E3uQ==

"@firebase/[email protected]", "@firebase/[email protected]":
"@firebase/[email protected]":
version "0.10.2"
resolved "https://registry.npmjs.org/@firebase/app/-/app-0.10.2.tgz"
integrity sha512-Sk0lQYG0IRIUXkj6Ovaxu0o1E1OdC+IR+UYEYLjXuddr6YjnpFuZ69rTxVja2Ef4TpidJky9o8OoVIaXNjDJ5A==
Expand Down Expand Up @@ -368,7 +368,7 @@
tslib "^2.1.0"
undici "5.28.4"

"@firebase/[email protected]", "@firebase/[email protected]":
"@firebase/[email protected]":
version "1.9.5"
resolved "https://registry.npmjs.org/@firebase/util/-/util-1.9.5.tgz"
integrity sha512-PP4pAFISDxsf70l3pEy34Mf3GkkUcVQ3MdKp6aSVb7tcpfUQxnsdV7twDd8EkfB6zZylH6wpUAoangQDmCUMqw==
Expand Down Expand Up @@ -630,7 +630,7 @@ protobufjs@^7.2.5:
"@types/node" ">=13.7.0"
long "^5.0.0"

react-dom@^18.3.1, react-dom@>=16.8:
react-dom@^18.3.1:
version "18.3.1"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz"
integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==
Expand All @@ -653,7 +653,7 @@ [email protected]:
dependencies:
"@remix-run/router" "1.16.0"

react@^18.3.1, react@>=16.8:
react@^18.3.1:
version "18.3.1"
resolved "https://registry.npmjs.org/react/-/react-18.3.1.tgz"
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
Expand Down

0 comments on commit 9706302

Please sign in to comment.