diff --git a/src/App.tsx b/src/App.tsx index bf17056..0332dca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,11 +4,11 @@ import { Routes, Route } from 'react-router-dom'; import AccessPage from './components/pages/AccessPage.tsx'; import HomePage from './components/pages/HomePage.tsx'; -const App = () => ( +const App: React.FC = () => ( <> } /> - } /> + } /> ); diff --git a/src/components/pages/AboutPage.tsx b/src/components/pages/AboutPage.tsx new file mode 100644 index 0000000..ef5a6a5 --- /dev/null +++ b/src/components/pages/AboutPage.tsx @@ -0,0 +1,46 @@ +import React, { useEffect } from 'react'; + +import profileImage from '../../assets/images/profile/profile.png'; +import homepageDotsImage from '../../assets/images/bg/homepage-dots-img.png'; +import '../../styles/pages/AboutPage.scss'; + +const AboutPage: React.FC = () => { + useEffect(() => { + const $aboutPage = document.querySelector('#aboutPage'); + if ($aboutPage) { + $aboutPage.style.display = 'flex'; // ?overrides the {display: none} on 'aboutPage.scss'. This is to prevent the aboutPage from showing before animation is applied. + $aboutPage.classList.add('blend-in-out'); + } + }); + + return ( +
+
+

+ i'm arthur! your dev + 👋 +

+

+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. Esse, + suscipit et? Quo facere fugiat deserunt expedita pariatur consequuntur + quos possimus quidem repellat ipsam sequi, mollitia perspiciatis + suscipit id ipsa voluptates. +

+
+
+ an abstract dotted figure + my profile +
+
+ ); +}; + +export default AboutPage; diff --git a/src/components/pages/HomePage.tsx b/src/components/pages/HomePage.tsx index 7fc1695..89d00ab 100644 --- a/src/components/pages/HomePage.tsx +++ b/src/components/pages/HomePage.tsx @@ -1,46 +1,18 @@ -import React, { useEffect } from 'react'; +import React from 'react'; +import { Routes, Route, Outlet } from 'react-router-dom'; -import profileImage from '../../assets/images/profile/profile.png'; -import homepageDotsImage from '../../assets/images/bg/homepage-dots-img.png'; -import '../../styles/pages/HomePage.scss'; +import AboutPage from './AboutPage.tsx'; +import LineCount from '../UI/LineCount.tsx'; -const HomePage = () => { - useEffect(() => { - const $homepage = document.querySelector('#homepage'); - if ($homepage) { - $homepage.style.display = 'flex'; // ?overrides the {display: none} on 'HomePage.scss'. This is to prevent the homepage from showing before animation is applied. - $homepage.classList.add('blend-in-out'); - } - }); - - return ( -
-
-

- i'm arthur! your dev - 👋 -

-

- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Esse, - suscipit et? Quo facere fugiat deserunt expedita pariatur consequuntur - quos possimus quidem repellat ipsam sequi, mollitia perspiciatis - suscipit id ipsa voluptates. -

-
-
- an abstract dotted figure - my profile -
-
- ); -}; +const HomePage: React.FC = () => ( + <> + + + }> + } /> + + + +); export default HomePage; diff --git a/src/styles/pages/HomePage.scss b/src/styles/pages/AboutPage.scss similarity index 95% rename from src/styles/pages/HomePage.scss rename to src/styles/pages/AboutPage.scss index d20295b..975f01b 100644 --- a/src/styles/pages/HomePage.scss +++ b/src/styles/pages/AboutPage.scss @@ -5,12 +5,12 @@ @import '../animations/text-hue-rotate.scss'; @import '../_mixins.scss'; -.homepage { +.aboutPage { display: none; flex-direction: column; width: 90%; - @include component-code-snippet('const HomePage = () => {'); + @include component-code-snippet('const About = () => {'); user-select: none;