feat: add learnhouse logo to panel

This commit is contained in:
swve 2023-03-18 13:32:02 +01:00
parent f1c8feb709
commit 46a58e0a61
2 changed files with 19 additions and 1 deletions

View file

@ -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',

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB