mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
25
src/renderer/router/titlebar-outlet.tsx
Normal file
25
src/renderer/router/titlebar-outlet.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { Outlet } from 'react-router';
|
||||
import styled from 'styled-components';
|
||||
import { Titlebar } from '/@/renderer/features/titlebar/components/titlebar';
|
||||
|
||||
const TitlebarContainer = styled.header`
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 5000;
|
||||
height: 2.5rem;
|
||||
background: var(--titlebar-bg);
|
||||
-webkit-app-region: drag;
|
||||
opacity: 0.85;
|
||||
`;
|
||||
|
||||
export const TitlebarOutlet = () => {
|
||||
return (
|
||||
<>
|
||||
<TitlebarContainer>
|
||||
<Titlebar />
|
||||
</TitlebarContainer>
|
||||
<Outlet />
|
||||
</>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue