Skip to content

Commit bdd2219

Browse files
committed
feat: add new avatar icon and define accent color variables for styling
1 parent e53dc2c commit bdd2219

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

src/assets/icons/avatar.svg

Lines changed: 19 additions & 0 deletions
Loading

src/assets/variables.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ html.dark {
2222
--secondary-text-color: #a2a7ad;
2323
--overlay-background-color: #7985958a;
2424
--language-dot-background-color: #424d5a;
25+
--icons-accent-color: #ffffff;
2526

2627
--dark-mode-background-color: #1c2026;
2728
--dark-mode-text-color: #f0c73d;
@@ -110,6 +111,7 @@ html.light {
110111
--overlay-background-color: #0000005c;
111112
--primary-hover-text-color: #495a6b;
112113
--language-dot-background-color: #cfddec;
114+
--icons-accent-color: #3c5065;
113115

114116
--scrollbar-background-color: #eff6ff;
115117
--scrollbar-accent-color: #b9cadc;

src/components/Layout/Header.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { useEffect, useState } from 'react'
22
import { BsFillBookmarksFill, BsFillGearFill, BsMoonFill } from 'react-icons/bs'
33
import { CgTab } from 'react-icons/cg'
4-
import { FaUser } from 'react-icons/fa'
54
import { IoMdSunny } from 'react-icons/io'
65
import { MdDoDisturbOff } from 'react-icons/md'
76
import { Link, useLocation, useNavigate } from 'react-router-dom'
7+
import { ReactComponent as AvatarPlaceholder } from 'src/assets/icons/avatar.svg'
88
import { ReactComponent as StreakIcon } from 'src/assets/icons/fire_icon.svg'
99
import { ReactComponent as HackertabLogo } from 'src/assets/logo.svg'
10+
1011
import { SearchBar } from 'src/components/Elements/SearchBar'
1112
import { UserTags } from 'src/components/Elements/UserTags'
1213
import { useAuth } from 'src/features/auth'
@@ -94,15 +95,15 @@ export const Header = () => {
9495
}}>
9596
{isConnected ? (
9697
<>
97-
<img className="profileImage s" src={user?.imageURL} />
98+
<img className="profileImage" src={user?.imageURL} />
9899
<div className="streak">
99100
<span className="content">
100101
<StreakIcon className="icon" /> {user?.streak || 1}
101102
</span>
102103
</div>
103104
</>
104105
) : (
105-
<FaUser style={{ fontSize: '1.2em' }} />
106+
<AvatarPlaceholder className="profileImage" />
106107
)}
107108
</CircleButton>
108109
</div>

0 commit comments

Comments
 (0)