Skip to content

Commit

Permalink
update avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
J164 committed Feb 6, 2025
1 parent 20e8dd0 commit 1deaafc
Show file tree
Hide file tree
Showing 18 changed files with 1,816 additions and 550 deletions.
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

0 comments on commit 1deaafc

Please sign in to comment.