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

RSVP style fixes #292

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const Profile: React.FC = () => {
style={{
overlay: { zIndex: 1000 },
content: {
borderRadius: "2rem",
inset:
windowSizeHook?.width &&
windowSizeHook?.width < 768
Expand Down
4 changes: 3 additions & 1 deletion app/profile/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
gap: 10px;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
min-height: 100%;
padding: 2rem;
background: linear-gradient(0deg, #98c8d3 0%, #5ea6b7 41%, #0a3147 100%);
}

Expand Down
3 changes: 1 addition & 2 deletions components/AcceptRSVPForm/AcceptRSVPForm.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.container {
width: 100%;
height: fit-content;
padding: 5rem;
height: 100%;
}

.form {
Expand Down
6 changes: 3 additions & 3 deletions components/AvatarSelector/AvatarSelector.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
margin: 5px;
cursor: pointer;
border-radius: 50%;
border: 3px solid transparent;
border: 4px solid transparent;
transition: border 0.2s ease-in-out;
&:hover {
cursor: pointer;
Expand All @@ -24,8 +24,8 @@
}

.avatarSelector .avatarIconImage {
width: 65px;
height: 65px;
width: 100%;
height: 100%;
:hover {
cursor: pointer;
}
Expand Down
4 changes: 0 additions & 4 deletions components/AvatarSelector/AvatarSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ const AvatarSelector: React.FC<AvatarSelectorProps> = ({
<div className={styles.avatarSelector}>
{avatars.map(avatar => (
<div
style={{
backgroundColor:
avatar.backgroundColor ?? "transparent"
}}
className={clsx(
styles.avatarIcon,
avatar.name === value && styles.selected
Expand Down
36 changes: 12 additions & 24 deletions modules/avatars.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
import BunnyAvatar from "@/public/profile/avatars/bunny.svg";
import ChipmunkAvatar from "@/public/profile/avatars/chipmunk.svg";
import YodaAvatar from "@/public/profile/avatars/yoda.svg";
import CatAvatar from "@/public/profile/avatars/cat.svg";
import MushroomAvatar from "@/public/profile/avatars/mushroom.svg";
import FisherAvatar from "@/public/profile/avatars/fisher.svg";
import GarfieldAvatar from "@/public/profile/avatars/garfield.svg";
import FishAvatar from "@/public/profile/avatars/fish.svg";
import ArtemisAvatar from "@/public/profile/avatars/artemis.svg";
import ZeusAvatar from "@/public/profile/avatars/zeus.svg";
import AphroditeAvatar from "@/public/profile/avatars/aphrodite.svg";
import PoseidonAvatar from "@/public/profile/avatars/poseidon.svg";
import ApolloAvatar from "@/public/profile/avatars/apollo.svg";
import AthenaAvatar from "@/public/profile/avatars/athena.svg";

import { Avatars } from "@/util/types";

export const avatars = [
{ name: Avatars.BUNNY, icon: BunnyAvatar, backgroundColor: "#f0f0f0" },
{
name: Avatars.SQUIRREL,
icon: ChipmunkAvatar,
backgroundColor: "#f0f0f0"
},
{ name: Avatars.GOBLIN, icon: YodaAvatar, backgroundColor: "#f0f0f0" },
{ name: Avatars.CAT, icon: CatAvatar, backgroundColor: "#f0f0f0" },
{
name: Avatars.MUSHROOM,
icon: MushroomAvatar,
backgroundColor: "#f0f0f0"
},
{ name: Avatars.FISHERCAT, icon: FisherAvatar, backgroundColor: "#f0f0f0" },
{ name: Avatars.CHESTER, icon: GarfieldAvatar, backgroundColor: "#f0f0f0" },
{ name: Avatars.AXOLOTL, icon: FishAvatar, backgroundColor: "#f0f0f0" }
{ name: Avatars.ARTEMIS, icon: ArtemisAvatar },
{ name: Avatars.ZEUS, icon: ZeusAvatar },
{ name: Avatars.APHRODITE, icon: AphroditeAvatar },
{ name: Avatars.POSEIDON, icon: PoseidonAvatar },
{ name: Avatars.APOLLO, icon: ApolloAvatar },
{ name: Avatars.ATHENA, icon: AthenaAvatar }
];
153 changes: 153 additions & 0 deletions public/profile/avatars/aphrodite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
481 changes: 481 additions & 0 deletions public/profile/avatars/apollo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions public/profile/avatars/artemis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
406 changes: 406 additions & 0 deletions public/profile/avatars/athena.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 0 additions & 43 deletions public/profile/avatars/bunny.svg

This file was deleted.

Loading