mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Add new logo
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 824 KiB |
@@ -26,6 +26,14 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
$size: 35px;
|
||||||
|
|
||||||
|
width: $size;
|
||||||
|
height: $size;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.productName {
|
.productName {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ import { useState } from "react";
|
|||||||
import { useAppState } from "@/pages/chat/state";
|
import { useAppState } from "@/pages/chat/state";
|
||||||
import { MinimizedCallBar } from "@/pages/chat/ui/right/calls/MinimizedCallBar";
|
import { MinimizedCallBar } from "@/pages/chat/ui/right/calls/MinimizedCallBar";
|
||||||
import styles from "@/pages/chat/css/left-panel.module.scss";
|
import styles from "@/pages/chat/css/left-panel.module.scss";
|
||||||
|
import logoIcon from "@/images/logo.svg";
|
||||||
|
|
||||||
export function ChatHeader() {
|
export function ChatHeader() {
|
||||||
const { profileData } = useProfile();
|
const { profileData } = useProfile();
|
||||||
const { setProfileDialog, user } = useAppState();
|
const { setProfileDialog, user } = useAppState();
|
||||||
const [profilePictureUrl, setProfilePictureUrl] = useState(profileData?.profile_picture || defaultAvatar);
|
const [profilePictureUrl, setProfilePictureUrl] = useState(profileData?.profile_picture || defaultAvatar);
|
||||||
|
|
||||||
const handleProfileClick = () => {
|
function handleProfileClick() {
|
||||||
setProfileDialog({
|
setProfileDialog({
|
||||||
userId: user.currentUser?.id,
|
userId: user.currentUser?.id,
|
||||||
username: profileData?.username || "Пользователь",
|
username: profileData?.username || "Пользователь",
|
||||||
@@ -27,6 +28,7 @@ export function ChatHeader() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header className={styles.chatHeaderLeft}>
|
<header className={styles.chatHeaderLeft}>
|
||||||
|
<img src={logoIcon} alt="Logo" className={styles.logo} />
|
||||||
<div className={styles.productName}>{PRODUCT_NAME}</div>
|
<div className={styles.productName}>{PRODUCT_NAME}</div>
|
||||||
<div className={styles.profile}>
|
<div className={styles.profile}>
|
||||||
<a href="#" id="profile-open" onClick={handleProfileClick}>
|
<a href="#" id="profile-open" onClick={handleProfileClick}>
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ function BottomAppBar() {
|
|||||||
<>
|
<>
|
||||||
<MaterialBottomAppBar>
|
<MaterialBottomAppBar>
|
||||||
<MaterialIconButton icon="settings--filled" id="settings-open" onClick={() => onSettingsOpenChange(true)} />
|
<MaterialIconButton icon="settings--filled" id="settings-open" onClick={() => onSettingsOpenChange(true)} />
|
||||||
<MaterialIconButton icon="group_add--filled" />
|
<div style={{ flexGrow: 1 }} />
|
||||||
<div style={{ flexGrow: 1 }}></div>
|
|
||||||
<MaterialIconButton
|
<MaterialIconButton
|
||||||
icon="logout--filled"
|
icon="logout--filled"
|
||||||
id="logout-btn"
|
id="logout-btn"
|
||||||
@@ -31,7 +30,7 @@ function BottomAppBar() {
|
|||||||
|
|
||||||
export function LeftPanel() {
|
export function LeftPanel() {
|
||||||
return (
|
return (
|
||||||
<div className={styles.chatList} id="chat-list">
|
<div className={styles.chatList}>
|
||||||
<ChatHeader />
|
<ChatHeader />
|
||||||
<div className={styles.searchContainer}>
|
<div className={styles.searchContainer}>
|
||||||
<UsernameSearch />
|
<UsernameSearch />
|
||||||
|
|||||||
Reference in New Issue
Block a user