Skip to content

Commit

Permalink
SEO-friendly communities page (#313)
Browse files Browse the repository at this point in the history
* Decreased font size and logo sizes of logo bar

* Made it so all communities show at once

Adjusted position of title text also

Clicking navigation goes to that portion of the text (IE Clicking AI logo goes to AI section)

* Fixed spacing between sections, added project photos

* Added placeholder colors per community

* Switched img to Next Image for social media links

* Reduced gap between headers and links

* Updated design photos

* Updated website with outreach green color

* Make all sections render on mobile view

No navigation to initiatives yet

* Removed tofix comments

* Fixed href labels making 404 error

* Changed buttons to links, made mobile buttons a little bit bigger

* style: Auto format with Prettier

* use CSS modules for auto namespaced class names

* refactor: Split Suborgs into individual components

It'll be easier to fix CSS this way

* fix: fix colors and icon links

* refactor: Remove `isMobile` in favor of CSS media queries

* Responsive community description, sticky navbars

* sticky community logos

* Try implementing the mobile design

* polish

* Highlight current section

* copywriting

* Update logos, increase space logo size to make it look like the others

---------

Co-authored-by: Andrew Smithwick <[email protected]>
  • Loading branch information
SheepTester and WishingWell13 authored Jan 29, 2025
1 parent 267007d commit 1be0ff1
Show file tree
Hide file tree
Showing 52 changed files with 1,047 additions and 1,413 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"editor.formatOnSave": false
}
"editor.formatOnSave": true
}
1 change: 0 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import "src/components/ScrollDownArrow/styles.scss";
import "src/components/Statistic/styles.scss";
// section css imports
import "src/sections/about/styles.scss";
import "src/sections/community/styles.scss";
import "src/sections/home/styles.scss";
import "src/sections/sponsorship/styles.scss";

Expand Down
15 changes: 2 additions & 13 deletions pages/communities.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import { useState, useEffect } from "react";
import { Size, useWindowSize } from "src/utils/general";

import SEO from "src/components/SEO";

import CommunityHero from "src/sections/community/Community.Hero";
import CommunitySuborgs from "src/sections/community/Community.Suborgs";
import CommunitySuborgs from "src/sections/community/Suborgs";
import ACMWhiteLogo from "public/assets/ACMWhiteLogo.png";
import { NextPage } from "next";

const CommunitiesPage: NextPage = () => {
const size: Size = useWindowSize();
const [isMobile, setIsMobile] = useState(false);

useEffect(() => {
setIsMobile((size.width || 0) <= 812);
}, [size]);

return (
<>
<SEO
Expand All @@ -24,7 +13,7 @@ const CommunitiesPage: NextPage = () => {
description="ACM at UCSD is one large community, but it is made up of several smaller communities focused on specific areas of technology."
image={ACMWhiteLogo.src}
/>
<CommunitySuborgs isMobile={isMobile} />
<CommunitySuborgs />
</>
);
};
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/communities-links/outreach-discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/communities-links/outreach-home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/communities-links/projects-home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/communities-links/space-home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/assets/communities-navigation/ai-selected.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/assets/communities-navigation/cyber-selected.svg

This file was deleted.

Loading

0 comments on commit 1be0ff1

Please sign in to comment.