Skip to content

Commit 86cf46b

Browse files
authored
Merge pull request #61 from WarwickStudentArtsFestival/main
update nav + venues page
2 parents b0b9b83 + 044d407 commit 86cf46b

File tree

4 files changed

+45
-49
lines changed

4 files changed

+45
-49
lines changed

src/app/components/footer/footer.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FaGithub, FaPaintBrush } from 'react-icons/fa';
1+
import { FaGithub } from 'react-icons/fa';
22
import FooterSection from './FooterSection';
33
import FooterLink from './FooterLink';
44
import footerData from './footerData';
@@ -19,16 +19,19 @@ export default function Footer() {
1919
Celebrating student creativity at the University of Warwick
2020
</p>
2121

22-
<div className="text-left mt-4">
23-
<a
24-
href="https://submit.wsaf.org.uk/2025/cfp"
25-
target="_blank"
26-
className="inline-flex items-center gap-2 bg-yellow px-2 py-1 sm:px-4 sm:py-2 text-black font-semibold uppercase mr-auto hover:scale-[102%] text-sm lg:text-base"
27-
>
28-
<FaPaintBrush />
29-
Performers Portal
30-
</a>
31-
</div>
22+
{/* W-Paint Link TODO: fix styles */}
23+
{/* <Link
24+
href="/wpaint"
25+
className="flex items-center mx-auto gap-2 rounded hover:underline uppercase text-black bg-yellow"
26+
>
27+
<div className="font-bold">W-Paint</div>
28+
<Image
29+
src={PaintBrush}
30+
alt="Paint brush icon"
31+
width={25}
32+
height={25}
33+
/>
34+
</Link> */}
3235
</FooterSection>
3336

3437
<FooterSection title="Quick Links">

src/app/components/header.tsx

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { FiMenu, FiX } from 'react-icons/fi';
55
import Link from 'next/link';
66
import { usePathname } from 'next/navigation';
77
import NavLinks from './NavLinks';
8-
import Image from 'next/image';
9-
import PaintBrush from '@/assets/icons/paintbrush.png';
108

119
export default function Header() {
1210
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
@@ -33,25 +31,17 @@ export default function Header() {
3331
{/* Right links (desktop) */}
3432
<div className="hidden sm:flex items-center gap-2 ml-auto">
3533
<Link
36-
href="/wpaint"
37-
className={`flex items-center rounded hover:underline uppercase ${
38-
pathname === '/wpaint' ? 'text-yellow-400' : 'text-white'
39-
}`}
34+
href="/crew"
35+
className={`uppercase font-bold px-2.5 py-1.5 hover:scale-[102%] ${pathname === '/crew' ? 'text-yellow-400' : 'bg-yellow text-black'}`}
4036
>
41-
<div className="font-bold">W-Paint</div>
42-
<Image
43-
src={PaintBrush}
44-
alt="Paint brush icon"
45-
width={25}
46-
height={25}
47-
/>
37+
<span className="hidden lg:inline">Join the </span>Crew
4838
</Link>
4939

5040
<Link
51-
href="/crew"
52-
className={`uppercase font-bold px-2.5 py-1.5 hover:scale-[102%] ${pathname === '/crew' ? 'text-yellow-400' : 'bg-yellow text-black'}`}
41+
href="https://submit.wsaf.org.uk/2025/cfp"
42+
className="uppercase font-bold px-2.5 py-1.5 hover:scale-[102%] bg-yellow text-black"
5343
>
54-
<span className="hidden lg:inline">Join the </span>Crew
44+
Performers <span className="hidden lg:inline">Portal</span>
5545
</Link>
5646
</div>
5747

@@ -76,29 +66,19 @@ export default function Header() {
7666
<NavLinks onClick={() => setMobileMenuOpen(false)} />
7767
</div>
7868

79-
{/* W-Paint Link */}
8069
<Link
81-
href="/wpaint"
70+
href="/crew"
71+
className={`uppercase mx-auto font-bold px-4 py-2 hover:scale-[102%] ${pathname === '/crew' ? 'text-yellow-400' : 'bg-yellow text-black'}`}
8272
onClick={() => setMobileMenuOpen(false)}
83-
className={`flex items-center mx-auto gap-2 rounded hover:underline uppercase ${
84-
pathname === '/wpaint' ? 'text-yellow-400' : 'text-white'
85-
}`}
8673
>
87-
<div className="font-bold">W-Paint</div>
88-
<Image
89-
src={PaintBrush}
90-
alt="Paint brush icon"
91-
width={25}
92-
height={25}
93-
/>
74+
Join the Crew
9475
</Link>
95-
9676
<Link
97-
href="/crew"
98-
className={`uppercase mx-auto font-bold px-4 py-2 hover:scale-[102%] ${pathname === '/crew' ? 'text-yellow-400' : 'bg-yellow text-black'}`}
77+
href="https://submit.wsaf.org.uk/2025/cfp"
78+
className="uppercase mx-auto font-bold px-4 py-2 hover:scale-[102%] bg-yellow text-black"
9979
onClick={() => setMobileMenuOpen(false)}
10080
>
101-
Join the Crew
81+
Performers Portal
10282
</Link>
10383
</nav>
10484
</div>

src/app/venues/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ export default async function VenuesPage() {
3232
</h1>
3333

3434
<div className="mt-2 grid px-4 gap-8 md:px-16 mx-auto py-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 sm:gap-4 justify-center">
35-
{venues.map((venue) => (
36-
<VenueCard key={venue.id} venue={venue} />
37-
))}
35+
{venues
36+
.filter((venue) => venue.eventCount > 0)
37+
.map((venue) => (
38+
<VenueCard key={venue.id} venue={venue} />
39+
))}
3840
</div>
3941
</main>
4042
);

src/data/venues.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,24 @@ import FabGallery from '@/assets/venues/fab-gallery.jpg';
33
import Avon from '@/assets/venues/avon.jpg';
44
import Fab1 from '@/assets/venues/fab1.jpg';
55
import Fab2 from '@/assets/venues/fab2.jpg';
6-
import Cinema from '@/assets/venues/fab2.jpg';
76
import Rehearsal from '@/assets/venues/rehersal.jpg';
87
import Terrace from '@/assets/venues/terrace.jpg';
8+
import Placeholder from '@/assets/hero.jpg';
99
import { AdditionalVenueData } from '@/lib/venues';
1010

1111
// Mapping from venue GUID to additional data
1212
const venues: Record<string, AdditionalVenueData> = {
13+
// Milburn G55
14+
'038ea818-8093-57c0-8bd8-1ca2927b488c': {
15+
mapUrl:
16+
'https://campus.warwick.ac.uk/search/623c889d421e6f5928c0d3d2?projectId=warwick',
17+
image: Placeholder,
18+
imageAlt: 'Placeholder',
19+
roomLocation: 'Milburn G55',
20+
slug: 'milburn-g55',
21+
filterBitFieldIndex: 10,
22+
},
23+
1324
// Benefactors Place Stage
1425
'd629fdd8-158b-52e9-87a3-2491c02d2bb2': {
1526
mapUrl:
@@ -69,7 +80,7 @@ const venues: Record<string, AdditionalVenueData> = {
6980
'825706ae-0ef1-501b-a4a6-ca7026e2de75': {
7081
mapUrl:
7182
'https://campus.warwick.ac.uk/search/623c896e421e6f5928c0fe27?projectId=warwick',
72-
image: Cinema,
83+
image: Rehearsal,
7384
imageAlt: 'Image of FAB Cinema',
7485
roomLocation: 'Unknown',
7586
slug: 'fab-cinema',
@@ -102,7 +113,7 @@ const venues: Record<string, AdditionalVenueData> = {
102113
'01cbe95d-0b59-58a6-a7f2-3e2365e88a03': {
103114
mapUrl:
104115
'https://campus.warwick.ac.uk/search/623c889c421e6f5928c0d3a7?projectId=warwick',
105-
image: Avon,
116+
image: Placeholder,
106117
imageAlt:
107118
'Picture of a performance in a room that looks like Avon Drama Studio',
108119
roomLocation: 'The Graduate',

0 commit comments

Comments
 (0)