mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add learnhouse logo to panel
This commit is contained in:
parent
f1c8feb709
commit
46a58e0a61
2 changed files with 19 additions and 1 deletions
|
|
@ -2,8 +2,10 @@
|
||||||
import React, { createContext, useState } from 'react'
|
import React, { createContext, useState } from 'react'
|
||||||
import { styled } from '@stitches/react';
|
import { styled } from '@stitches/react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import LearnHouseWhiteLogo from '@public/learnhouse_text_white.png';
|
||||||
import { AuthContext } from '@components/Security/AuthProvider';
|
import { AuthContext } from '@components/Security/AuthProvider';
|
||||||
import Avvvatars from 'avvvatars-react';
|
import Avvvatars from 'avvvatars-react';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -15,9 +17,13 @@ function SettingsLayout({ children, params }: { children: React.ReactNode, param
|
||||||
<>
|
<>
|
||||||
<Main>
|
<Main>
|
||||||
<LeftWrapper>
|
<LeftWrapper>
|
||||||
|
<LeftTopArea>
|
||||||
|
|
||||||
|
<Image alt="Learnhouse logo" width={128} src={LearnHouseWhiteLogo}/>
|
||||||
{auth.isAuthenticated && (
|
{auth.isAuthenticated && (
|
||||||
<Avvvatars value={auth.userInfo.user_object.user_id} style="shape" />
|
<Avvvatars value={auth.userInfo.user_object.user_id} style="shape" />
|
||||||
)}
|
)}
|
||||||
|
</LeftTopArea>
|
||||||
<LeftMenuWrapper>
|
<LeftMenuWrapper>
|
||||||
<MenuTitle>Account</MenuTitle>
|
<MenuTitle>Account</MenuTitle>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
@ -46,12 +52,24 @@ const Main = styled('div', {
|
||||||
})
|
})
|
||||||
|
|
||||||
const LeftWrapper = styled('div', {
|
const LeftWrapper = styled('div', {
|
||||||
width: '250px',
|
width: '270px',
|
||||||
background: "linear-gradient(348.55deg, #010101 -8.61%, #343434 105.52%);",
|
background: "linear-gradient(348.55deg, #010101 -8.61%, #343434 105.52%);",
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
padding: '20px',
|
padding: '20px',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const LeftTopArea = styled('div', {
|
||||||
|
display: 'flex',
|
||||||
|
marginLeft: '20px',
|
||||||
|
|
||||||
|
alignItems: 'center',
|
||||||
|
|
||||||
|
img: {
|
||||||
|
marginRight: '20px',
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
const LeftMenuWrapper = styled('div', {
|
const LeftMenuWrapper = styled('div', {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|
|
||||||
BIN
front/public/learnhouse_text_white.png
Normal file
BIN
front/public/learnhouse_text_white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue