From d5dfcc9d6402eb819b565e36b5848e217ae38f29 Mon Sep 17 00:00:00 2001
From: christodharma <13521009@std.stei.itb.ac.id>
Date: Wed, 15 Nov 2023 02:11:24 +0700
Subject: [PATCH] refactor: contextual file structure

---
 src/{components => assets}/images/logo.svg    |  0
 .../styles}/L2RWipeReveal/L2RWipeReveal.css   |  0
 .../NavigationBar/NavigationBar.tsx           | 33 +++++++++++++++++++
 src/pages/AboutPage/index.tsx                 |  5 +--
 .../AboutPage/view}/index.tsx                 |  4 +--
 src/{view => pages}/ProfilePage/index.tsx     |  0
 src/view/ProfilePage/ProfilePage.css          |  0
 7 files changed, 38 insertions(+), 4 deletions(-)
 rename src/{components => assets}/images/logo.svg (100%)
 rename src/{components/fragments => assets/styles}/L2RWipeReveal/L2RWipeReveal.css (100%)
 create mode 100644 src/components/NavigationBar/NavigationBar.tsx
 rename src/{view/AboutPage => pages/AboutPage/view}/index.tsx (93%)
 rename src/{view => pages}/ProfilePage/index.tsx (100%)
 delete mode 100644 src/view/ProfilePage/ProfilePage.css

diff --git a/src/components/images/logo.svg b/src/assets/images/logo.svg
similarity index 100%
rename from src/components/images/logo.svg
rename to src/assets/images/logo.svg
diff --git a/src/components/fragments/L2RWipeReveal/L2RWipeReveal.css b/src/assets/styles/L2RWipeReveal/L2RWipeReveal.css
similarity index 100%
rename from src/components/fragments/L2RWipeReveal/L2RWipeReveal.css
rename to src/assets/styles/L2RWipeReveal/L2RWipeReveal.css
diff --git a/src/components/NavigationBar/NavigationBar.tsx b/src/components/NavigationBar/NavigationBar.tsx
new file mode 100644
index 0000000..26ba48e
--- /dev/null
+++ b/src/components/NavigationBar/NavigationBar.tsx
@@ -0,0 +1,33 @@
+import React from "react";
+import ReactDOM from 'react-dom/client';
+
+const NavigationBar = () => {
+    <div>
+        <div> 
+            <button>
+                sidebar
+            </button>
+        </div>
+        <div>
+            <a>
+                MainMenu
+            </a>
+        </div>
+        <div>
+            <div>
+                searchbar
+            </div>
+        </div>
+        <div>
+            catalog
+        </div>
+        <div>
+            cart
+        </div>
+        <div>
+            account
+        </div>
+    </div>
+}
+
+export default NavigationBar;
\ No newline at end of file
diff --git a/src/pages/AboutPage/index.tsx b/src/pages/AboutPage/index.tsx
index 6a721da..af7b20d 100644
--- a/src/pages/AboutPage/index.tsx
+++ b/src/pages/AboutPage/index.tsx
@@ -1,9 +1,10 @@
-// import Navbar from '../components/layouts/Navbar'
+// import NavigationBar from '../../components/NavigationBar'
 import React from 'react'
-import AboutPageView from '../../view/AboutPage'
+import AboutPageView from './view'
 
 const AboutPage = () => {
   return (
+    // <NavigationBar />
     <AboutPageView />
   )
 }
diff --git a/src/view/AboutPage/index.tsx b/src/pages/AboutPage/view/index.tsx
similarity index 93%
rename from src/view/AboutPage/index.tsx
rename to src/pages/AboutPage/view/index.tsx
index ebb5cde..3ed25d7 100644
--- a/src/view/AboutPage/index.tsx
+++ b/src/pages/AboutPage/view/index.tsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import ReactDOM from 'react-dom/client'
-import logo from '../../components/images/logo.svg'
-import "../../components/fragments/L2RWipeReveal/L2RWipeReveal.css"
+import logo from '../../../assets/images/logo.svg'
+import "../../../assets/styles/L2RWipeReveal/L2RWipeReveal.css"
 
 function AboutPageView() {
     return (
diff --git a/src/view/ProfilePage/index.tsx b/src/pages/ProfilePage/index.tsx
similarity index 100%
rename from src/view/ProfilePage/index.tsx
rename to src/pages/ProfilePage/index.tsx
diff --git a/src/view/ProfilePage/ProfilePage.css b/src/view/ProfilePage/ProfilePage.css
deleted file mode 100644
index e69de29..0000000
-- 
GitLab