From 0e4c74240bac4ac4db58d50a7c07345e1406001e Mon Sep 17 00:00:00 2001 From: karkir Date: Mon, 25 Dec 2023 10:20:10 -0500 Subject: [PATCH] refactor article content into sep components --- components/Main.js | 52 ++++++---------------------------- components/articles/About.js | 13 +++++++++ components/articles/Contact.js | 45 +++++++++++++++++++++++++++++ components/articles/Intro.js | 14 +++++++++ components/articles/Work.js | 14 +++++++++ 5 files changed, 94 insertions(+), 44 deletions(-) create mode 100644 components/articles/About.js create mode 100644 components/articles/Contact.js create mode 100644 components/articles/Intro.js create mode 100644 components/articles/Work.js diff --git a/components/Main.js b/components/Main.js index d3ce298..524a863 100644 --- a/components/Main.js +++ b/components/Main.js @@ -1,5 +1,9 @@ import React from "react"; import PropTypes from 'prop-types'; +import Intro from './articles/Intro'; +import About from "./articles/About"; +import Work from "./articles/Work"; +import Contact from "./articles/Contact"; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faTwitter, faFacebook, faInstagram, faGithub} from '@fortawesome/fontawesome-free-brands'; @@ -10,62 +14,22 @@ const Main = (props) => {
-

Intro

- -

Aenean ornare velit lacus, ac varius enim ullamcorper eu. Proin aliquam facilisis ante interdum congue. Integer mollis, nisl amet convallis, porttitor magna ullamcorper, amet egestas mauris. Ut magna finibus nisi nec lacinia. Nam maximus erat id euismod egestas. By the way, check out my awesome work.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis dapibus rutrum facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tristique libero eu nibh porttitor fermentum. Nullam venenatis erat id vehicula viverra. Nunc ultrices eros ut ultricies condimentum. Mauris risus lacus, blandit sit amet venenatis non, bibendum vitae dolor. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In non lorem sit amet elit placerat maximus. Pellentesque aliquam maximus risus, vel sed vehicula.

+ {close}
-

Work

- -

Adipiscing magna sed dolor elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices.

-

Nullam et orci eu lorem consequat tincidunt vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus pharetra. Pellentesque condimentum sem. In efficitur ligula tate urna. Maecenas laoreet massa vel lacinia pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus amet feugiat tempus.

+ {close}
-

About

- -

Lorem ipsum dolor sit amet, consectetur et adipiscing elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices. Aliquam libero et malesuada fames ac ante ipsum primis in faucibus. Cras viverra ligula sit amet ex mollis mattis lorem ipsum dolor sit amet.

+ {close}
-

Contact

-
-
- - -
-
- - -
-
- - -
-
    -
  • -
  • -
-
- + {close}
diff --git a/components/articles/About.js b/components/articles/About.js new file mode 100644 index 0000000..c5efe84 --- /dev/null +++ b/components/articles/About.js @@ -0,0 +1,13 @@ +import React from "react"; + +const About = () => { + return ( + <> +

About

+ +

Lorem ipsum dolor sit amet, consectetur et adipiscing elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices. Aliquam libero et malesuada fames ac ante ipsum primis in faucibus. Cras viverra ligula sit amet ex mollis mattis lorem ipsum dolor sit amet.

+ + ) +} + +export default About; \ No newline at end of file diff --git a/components/articles/Contact.js b/components/articles/Contact.js new file mode 100644 index 0000000..016a7fb --- /dev/null +++ b/components/articles/Contact.js @@ -0,0 +1,45 @@ +import React from "react"; +import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' +import {faTwitter, faFacebook, faInstagram, faGithub} from '@fortawesome/fontawesome-free-brands'; + +const Contact = () => { + return ( + <> +

Contact

+
+
+ + +
+
+ + +
+
+ + +
+ +
+ + + ) +} + +export default Contact; \ No newline at end of file diff --git a/components/articles/Intro.js b/components/articles/Intro.js new file mode 100644 index 0000000..63729f2 --- /dev/null +++ b/components/articles/Intro.js @@ -0,0 +1,14 @@ +import React from "react"; + +const Intro = () => { + return ( + <> +

Intro

+ +

Aenean ornare velit lacus, ac varius enim ullamcorper eu. Proin aliquam facilisis ante interdum congue. Integer mollis, nisl amet convallis, porttitor magna ullamcorper, amet egestas mauris. Ut magna finibus nisi nec lacinia. Nam maximus erat id euismod egestas. By the way, check out my awesome work.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis dapibus rutrum facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tristique libero eu nibh porttitor fermentum. Nullam venenatis erat id vehicula viverra. Nunc ultrices eros ut ultricies condimentum. Mauris risus lacus, blandit sit amet venenatis non, bibendum vitae dolor. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In non lorem sit amet elit placerat maximus. Pellentesque aliquam maximus risus, vel sed vehicula.

+ + ) +} + +export default Intro; \ No newline at end of file diff --git a/components/articles/Work.js b/components/articles/Work.js new file mode 100644 index 0000000..78a1aed --- /dev/null +++ b/components/articles/Work.js @@ -0,0 +1,14 @@ +import React from "react"; + +const Work = () => { + return ( + <> +

Work

+ +

Adipiscing magna sed dolor elit. Praesent eleifend dignissim arcu, at eleifend sapien imperdiet ac. Aliquam erat volutpat. Praesent urna nisi, fringila lorem et vehicula lacinia quam. Integer sollicitudin mauris nec lorem luctus ultrices.

+

Nullam et orci eu lorem consequat tincidunt vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus pharetra. Pellentesque condimentum sem. In efficitur ligula tate urna. Maecenas laoreet massa vel lacinia pellentesque lorem ipsum dolor. Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis libero. Mauris aliquet magna magna sed nunc rhoncus amet feugiat tempus.

+ + ) +} + +export default Work; \ No newline at end of file