diff options
| -rw-r--r-- | frontend/src/components/Login.tsx | 6 | ||||
| -rw-r--r-- | frontend/src/css/About.css | 11 | ||||
| -rw-r--r-- | frontend/src/css/Maplist.css | 4 | ||||
| -rw-r--r-- | frontend/src/css/Sidebar.css | 6 | ||||
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 2 |
5 files changed, 21 insertions, 8 deletions
diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index a8c5503..545f724 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx | |||
| @@ -38,7 +38,7 @@ const Login: React.FC<LoginProps> = ({ setToken, profile, setProfile }) => { | |||
| 38 | <> | 38 | <> |
| 39 | <Link to="/profile" tabIndex={-1} className='login'> | 39 | <Link to="/profile" tabIndex={-1} className='login'> |
| 40 | <button className='sidebar-button'> | 40 | <button className='sidebar-button'> |
| 41 | <img src={profile.avatar_link} alt="" /> | 41 | <img className="avatar-img" src={profile.avatar_link} alt="" /> |
| 42 | <span>{profile.user_name}</span> | 42 | <span>{profile.user_name}</span> |
| 43 | </button> | 43 | </button> |
| 44 | <button className='logout-button' onClick={_logout}> | 44 | <button className='logout-button' onClick={_logout}> |
| @@ -52,7 +52,7 @@ const Login: React.FC<LoginProps> = ({ setToken, profile, setProfile }) => { | |||
| 52 | <> | 52 | <> |
| 53 | <Link to="/" tabIndex={-1} className='login'> | 53 | <Link to="/" tabIndex={-1} className='login'> |
| 54 | <button className='sidebar-button'> | 54 | <button className='sidebar-button'> |
| 55 | <img src={profile.avatar_link} alt="" /> | 55 | <img className="avatar-img" src={profile.avatar_link} alt="" /> |
| 56 | <span>Loading Profile...</span> | 56 | <span>Loading Profile...</span> |
| 57 | </button> | 57 | </button> |
| 58 | <button disabled className='logout-button' onClick={_logout}> | 58 | <button disabled className='logout-button' onClick={_logout}> |
| @@ -68,7 +68,7 @@ const Login: React.FC<LoginProps> = ({ setToken, profile, setProfile }) => { | |||
| 68 | ( | 68 | ( |
| 69 | <Link to="/api/v1/login" tabIndex={-1} className='login' > | 69 | <Link to="/api/v1/login" tabIndex={-1} className='login' > |
| 70 | <button className='sidebar-button' onClick={_login}> | 70 | <button className='sidebar-button' onClick={_login}> |
| 71 | <img src={UserIcon} alt="" /> | 71 | <img className="avatar-img" src={UserIcon} alt="" /> |
| 72 | <span> | 72 | <span> |
| 73 | <img src={LoginIcon} alt="Sign in through Steam" /> | 73 | <img src={LoginIcon} alt="Sign in through Steam" /> |
| 74 | </span> | 74 | </span> |
diff --git a/frontend/src/css/About.css b/frontend/src/css/About.css index f998699..d4fdf07 100644 --- a/frontend/src/css/About.css +++ b/frontend/src/css/About.css | |||
| @@ -13,4 +13,13 @@ | |||
| 13 | font-family: BarlowSemiCondensed-Regular; | 13 | font-family: BarlowSemiCondensed-Regular; |
| 14 | color: #cdcfdf; | 14 | color: #cdcfdf; |
| 15 | 15 | ||
| 16 | } \ No newline at end of file | 16 | } |
| 17 | |||
| 18 | h1 { | ||
| 19 | font-size: 80px; | ||
| 20 | } | ||
| 21 | |||
| 22 | h2 { | ||
| 23 | font-size: 60px; | ||
| 24 | } | ||
| 25 | |||
diff --git a/frontend/src/css/Maplist.css b/frontend/src/css/Maplist.css index 230ac98..9880a27 100644 --- a/frontend/src/css/Maplist.css +++ b/frontend/src/css/Maplist.css | |||
| @@ -3,7 +3,7 @@ h1 { | |||
| 3 | margin: 0px 0px; | 3 | margin: 0px 0px; |
| 4 | } | 4 | } |
| 5 | 5 | ||
| 6 | h2 { | 6 | .portal-count { |
| 7 | margin: 20px 0px; | 7 | margin: 20px 0px; |
| 8 | font-family: "BarlowSemiCondensed-SemiBold"; | 8 | font-family: "BarlowSemiCondensed-SemiBold"; |
| 9 | font-size: 96px; | 9 | font-size: 96px; |
| @@ -101,7 +101,7 @@ h3 { | |||
| 101 | 101 | ||
| 102 | .map-entry-image { | 102 | .map-entry-image { |
| 103 | display: flex; | 103 | display: flex; |
| 104 | height: 150px; | 104 | height: 200px; |
| 105 | background-size: cover; | 105 | background-size: cover; |
| 106 | } | 106 | } |
| 107 | 107 | ||
diff --git a/frontend/src/css/Sidebar.css b/frontend/src/css/Sidebar.css index 396f6ac..a91862e 100644 --- a/frontend/src/css/Sidebar.css +++ b/frontend/src/css/Sidebar.css | |||
| @@ -77,7 +77,7 @@ | |||
| 77 | width: 310px; | 77 | width: 310px; |
| 78 | height: 40px; | 78 | height: 40px; |
| 79 | border-radius: 20px; | 79 | border-radius: 20px; |
| 80 | padding: 0.4em 0 0 11px; | 80 | padding: 0.3em 0 0 11px; |
| 81 | 81 | ||
| 82 | transition: | 82 | transition: |
| 83 | width .3s, | 83 | width .3s, |
| @@ -85,6 +85,10 @@ | |||
| 85 | padding .3s; | 85 | padding .3s; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | .sidebar-button .avatar-img { | ||
| 89 | border-radius: 50px; | ||
| 90 | } | ||
| 91 | |||
| 88 | .logout-button{ | 92 | .logout-button{ |
| 89 | display: grid; | 93 | display: grid; |
| 90 | grid-template-columns: 50px auto; | 94 | grid-template-columns: 50px auto; |
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index e3d7aab..a76c1f5 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -108,7 +108,7 @@ const Maplist: React.FC = () => { | |||
| 108 | > | 108 | > |
| 109 | <div className="blur"> | 109 | <div className="blur"> |
| 110 | <div className="game-header-portal-count"> | 110 | <div className="game-header-portal-count"> |
| 111 | <h2> | 111 | <h2 className="portal-count"> |
| 112 | { | 112 | { |
| 113 | game?.category_portals.find( | 113 | game?.category_portals.find( |
| 114 | (obj) => obj.category.id === catNum + 1 | 114 | (obj) => obj.category.id === catNum + 1 |