Skip to content

Commit

Permalink
feat(styles): add and remove some components and change some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Dec 19, 2024
1 parent b78cd40 commit aaef18f
Show file tree
Hide file tree
Showing 10 changed files with 138 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>سلام - ادیتور</title>
<link rel="stylesheet" href="./src/styles/style.css">
</head>
<body>
<body class="bg-[#ff5b00]/5">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
Expand Down
70 changes: 69 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"react-router-dom": "^7.0.2"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
Expand Down
10 changes: 10 additions & 0 deletions src/components/editor/Editor.jsx
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;
9 changes: 9 additions & 0 deletions src/components/header/Header.jsx
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
11 changes: 11 additions & 0 deletions src/components/shared/Container.jsx
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;
10 changes: 10 additions & 0 deletions src/components/sidebar/Side.jsx
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
14 changes: 14 additions & 0 deletions src/layouts/EditorLayout.jsx
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;
8 changes: 7 additions & 1 deletion src/main.jsx
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>
</>)
6 changes: 5 additions & 1 deletion src/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

@layer base {

}

0 comments on commit aaef18f

Please sign in to comment.