Skip to content

Commit f275e26

Browse files
committed
changed file structure
1 parent df6dbdb commit f275e26

33 files changed

+51
-53
lines changed

src/App.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import React from "react";
22

33
import {BrowserRouter as Router , Routes , Route} from 'react-router-dom'
44

5-
import Home from "./components/Home/Home";
5+
import Home from "./components/Home";
66

7-
import PageNotFound from "./components/Pages/404Page/PageNotFound";
8-
import ComingSoon from "./components/Pages/ComingSoon/ComingSoon";
7+
import PageNotFound from "./components/Pages/PageNotFound";
8+
import ComingSoon from "./components/Pages/ComingSoon";
99

10-
import Project from "./components/Pages/Projects/Project";
10+
import Project from "./components/Pages/Project";
1111

1212
const App = () => {
1313
return (

src/components/DotRing/DotRing.jsx renamed to src/components/DotRing.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from "react";
2-
import "./dotRing.css";
2+
import "../styles/dotRing.css";
33

4-
import useMousePosition from "../../hooks/useMousePosition";
4+
import useMousePosition from "../hooks/useMousePosition";
55

66
const DotRing = () => {
77
const { x, y } = useMousePosition();
88
return (
99
<>
10-
<div style={{ left: `${x}px`, top: `${y}px` }} className="ring"></div>
10+
<div style={{ left: `${x}px`, top: `${y}px` }} className="ring_cursor"></div>
1111

1212
<div style={{ left: `${x}px`, top: `${y}px` }} className="dot"></div>
1313
</>

src/components/Section/GithubProjects/demoProjectArray.jsx renamed to src/components/ExternalComponents/demoProjectArray.jsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import img1 from "../../../assets/githubRepo/Img1.jfif";
2-
import img2 from "../../../assets/githubRepo/Img2.png";
3-
import img3 from "../../../assets/githubRepo/Img3.jpg";
4-
import img4 from "../../../assets/githubRepo/Img4.jfif";
5-
import img5 from "../../../assets/githubRepo/Img5.jfif";
6-
import img6 from "../../../assets/githubRepo/Img6.jfif";
1+
import img1 from "../../assets/githubRepo/Img1.jfif";
2+
import img2 from "../../assets/githubRepo/Img2.png";
3+
import img3 from "../../assets/githubRepo/Img3.jpg";
4+
import img4 from "../../assets/githubRepo/Img4.jfif";
5+
import img5 from "../../assets/githubRepo/Img5.jfif";
6+
import img6 from "../../assets/githubRepo/Img6.jfif";
77

88
/*
99
Image Source:

src/components/Home/Home.jsx renamed to src/components/Home.jsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React, { useState, useEffect } from "react";
22

3-
import About from "../Section/About/About";
4-
import Contact from "../Section/Contact/Contact";
5-
import Exp from "../Section/Experience/Exp";
6-
import Footer from "../Section/Footer/Footer";
7-
import Header from "../Section/Header/Header";
8-
import Nav from "../Section/Nav/Nav";
9-
import GithubRepo from "../Section/GithubProjects/GithubRepo";
10-
11-
import PreLoader from "../PreLoader/PreLoader";
12-
import DotRing from "../DotRing/DotRing";
3+
import About from "./Section/About";
4+
import Contact from "./Section/Contact";
5+
import Exp from "./Section/Exp";
6+
import Footer from "./Section/Footer";
7+
import Header from "./Section/Header";
8+
import Nav from "./Section/Nav";
9+
import GithubRepo from "./Section/GithubRepo";
10+
11+
import PreLoader from "./PreLoader";
12+
import DotRing from "./DotRing";
1313

1414
const HomePage = (props) => {
1515
const [inView, setInView] = useState("");

src/components/Pages/AboutMe/AboutMe.Jsx renamed to src/components/Pages/AboutMe.Jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
2-
import "./aboutMe.css";
2+
import "../../styles/aboutMe.css";
33

4-
import Nav from "../../Section/Nav/Nav";
5-
import ComingSoon from "../ComingSoon/ComingSoon";
6-
import DotRing from "../../DotRing/DotRing";
4+
import Nav from "../Section/Nav";
5+
import ComingSoon from "./ComingSoon";
6+
import DotRing from "../DotRing";
77

88
const AboutMe = () => {
99
return (

src/components/Pages/ComingSoon/ComingSoon.jsx renamed to src/components/Pages/ComingSoon.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useState, useRef, useEffect } from "react";
2-
import DotRing from "../../DotRing/DotRing";
2+
import DotRing from "../DotRing";
33

44
// import Timer from './Timer';
5-
import "./comingSoon.css";
5+
import "../../styles/comingSoon.css";
66

77
const ComingSoon = () => {
88
const [timerDays, setTimerDays] = useState("00");

src/components/Pages/404Page/PageNotFound.jsx renamed to src/components/Pages/PageNotFound.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react";
2-
import "./404.css";
3-
42
import { useLocation } from "react-router-dom";
5-
import DotRing from "../../DotRing/DotRing";
3+
4+
import "../../styles/404.css";
5+
import DotRing from "../DotRing";
66

77
const PageNotFount = () => {
88
const location = useLocation();

src/components/Pages/Projects/Project.jsx renamed to src/components/Pages/Project.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
2-
import DotRing from "../../DotRing/DotRing";
3-
import Nav from "../../Section/Nav/Nav";
4-
import "./project.css";
2+
import DotRing from "../DotRing";
3+
import Nav from "../Section/Nav";
4+
import "../../styles/project.css";
55

6-
import RepoStats from "./RepoStats";
6+
import RepoStats from "../ExternalComponents/RepoStats";
77

88
const Project = () => {
99
return (

src/components/PreLoader/PreLoader.jsx renamed to src/components/PreLoader.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import "./preloader.scss";
2+
import "../styles/preloader.scss";
33

44
const PreLoader = () => {
55
return (

src/components/Section/About/About.jsx renamed to src/components/Section/About.jsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from "react";
2-
import "./About.css";
3-
4-
// import About_Image from "../../../assets/Pics/about_image.png";
2+
import "../../styles/About.css";
53

64
import { FaAward } from "react-icons/fa";
75
import { BsFolder } from "react-icons/bs";
@@ -30,7 +28,7 @@ const About = () => {
3028
<img src={About_Image} alt="profile_pic" />
3129
</div> */}
3230
<div className="me image-card">
33-
<img src={require("../../../assets/Pics/me2.jpg")} alt="me" />
31+
<img src={require("../../assets/Pics/me2.jpg")} alt="me" />
3432
</div>
3533
{/* </div> */}
3634

src/components/Section/Contact/Contact.jsx renamed to src/components/Section/Contact.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useRef, useEffect, useState } from "react";
22
import emailjs from "emailjs-com";
3-
import "./Contact.css";
3+
import "../../styles/Contact.css";
44

55
import { HiOutlineMail } from "react-icons/hi";
66
import { FaTelegramPlane } from "react-icons/fa";

src/components/Section/Experience/Exp.jsx renamed to src/components/Section/Exp.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import "./Exp.css";
2+
import "../../styles/Exp.css";
33
import { BsPatchCheck } from "react-icons/bs";
44

55
const Exp = () => {

src/components/Section/Footer/Footer.jsx renamed to src/components/Section/Footer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import "./Footer.css";
2+
import "../../styles/Footer.css";
33

44
import {
55
FaFacebookSquare,

src/components/Section/GithubProjects/GithubRepo.jsx renamed to src/components/Section/GithubRepo.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import "./githubRepo.css";
2+
import "../../styles/githubRepo.css";
33

4-
import { data } from "./demoProjectArray";
4+
import { data } from "../ExternalComponents/demoProjectArray";
55

66
const GithubRepo = () => {
77
return (

src/components/Section/Header/Header.jsx renamed to src/components/Section/Header.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
2-
import "./Header.css";
2+
import "../../styles/Header.css";
33

4-
import HeaderSocials from "./HeaderSocials";
5-
import TypingEffect from "./TypingEffect";
6-
import CTA from "./CTA";
4+
import HeaderSocials from "../ExternalComponents/HeaderSocials";
5+
import TypingEffect from "../ExternalComponents/TypingEffect";
6+
import CTA from "../ExternalComponents/CTA";
77

88
const Header = () => {
99
return (

src/components/Section/Nav/Nav.jsx renamed to src/components/Section/Nav.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useEffect } from "react";
22

3-
import "./Nav.css";
3+
import "../../styles/Nav.css";
44

55
const Nav = ({ inView }) => {
66
const [activeNav, setActiveNav] = useState("#");
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/Section/Footer/Footer.css renamed to src/styles/Footer.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
footer {
22
background-color: var(--color-bg);
3-
background: url("../../../assets/othersPics/banner-bg.png");
3+
background: url("../assets/othersPics/banner-bg.png");
44
padding: 3rem 0;
55
text-align: center;
66
font-size: 0.9rem;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/DotRing/dotRing.css renamed to src/styles/dotRing.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.ring {
1+
.ring_cursor {
22
position: fixed;
33
width: 50px;
44
height: 50px;
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)