-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): add and remove some components and change some styles
- Loading branch information
1 parent
b78cd40
commit aaef18f
Showing
10 changed files
with
138 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const Editor = () => { | ||
|
||
return (<> | ||
<main className={"w-[calc(100%-50px)] h-[calc(100vh-35px)] bg-[#FFF1E9] rounded-tr-[15px] after:inline-block after:border-0 after:z-[-1] after:w-[30px] after:h-[30px] after:bg-[#ffdecc] after:absolute relative after:top-0 after:right-0"}> | ||
|
||
</main> | ||
</>) | ||
} | ||
|
||
export default Editor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const Header = () => { | ||
|
||
return (<> | ||
<header className={"header bg-[#ffdecc] h-[35px] w-[100vw]"}> | ||
</header> | ||
</>) | ||
} | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// eslint-disable-next-line react/prop-types | ||
const Container = ({ children }) => { | ||
|
||
return (<> | ||
<div className="grid_container"> | ||
{ children } | ||
</div> | ||
</>) | ||
} | ||
|
||
export default Container; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const Side = () => { | ||
|
||
return (<> | ||
<aside className={"side bg-[#ffdecc] w-[50px] h-[calc(100vh-35px)] float-end"}> | ||
|
||
</aside> | ||
</>) | ||
} | ||
|
||
export default Side |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Header from "../components/header/Header.jsx"; | ||
import Side from "../components/sidebar/Side.jsx"; | ||
import Editor from "../components/editor/Editor.jsx"; | ||
|
||
const EditorLayout = () => { | ||
|
||
return (<> | ||
<Header /> | ||
<Side /> | ||
<Editor /> | ||
</>) | ||
} | ||
|
||
export default EditorLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { createRoot } from 'react-dom/client' | ||
import {BrowserRouter, Route, Routes} from "react-router-dom"; | ||
import EditorLayout from "./layouts/EditorLayout.jsx"; | ||
|
||
createRoot(document.getElementById('root')).render(<> | ||
|
||
<BrowserRouter> | ||
<Routes> | ||
<Route path="/" element={ <EditorLayout /> } /> | ||
</Routes> | ||
</BrowserRouter> | ||
</>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
|
||
} |