From f583f2f746d0d370cb2ace0f9afbba822febf5c7 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Thu, 21 Aug 2025 14:29:42 +0200 Subject: [PATCH] add of a base for singleProject component and style --- src/components/SingleProject.jsx | 25 +++++++++++++++++++++ src/styles/SingleProject.css | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 src/components/SingleProject.jsx create mode 100644 src/styles/SingleProject.css diff --git a/src/components/SingleProject.jsx b/src/components/SingleProject.jsx new file mode 100644 index 0000000..997d8ed --- /dev/null +++ b/src/components/SingleProject.jsx @@ -0,0 +1,25 @@ +import SkillCard from './SkillCard'; +import "../styles/SingleProject.css"; +function SingleProject({image, title, description, skills}) { + return ( +
+
+ {image} +
+
+

{title}

+

+ {description} +

+
    + {skills.map(skill => ( +
  • + ))} +
+
+
+ ) +} + + +export default SingleProject \ No newline at end of file diff --git a/src/styles/SingleProject.css b/src/styles/SingleProject.css new file mode 100644 index 0000000..22d7401 --- /dev/null +++ b/src/styles/SingleProject.css @@ -0,0 +1,38 @@ +.single-project { + display: flex; + width: 80%; + justify-self: center; + margin-bottom: 4%; +} + +.single-project-left{ + width: 60%; + margin-right: 2%; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + height: 400px; + img{ + width: 100%; + height: auto; + object-fit: contain; + display: block; + } +} + +.single-project-right{ + width: 40%; + margin-left: 2%; +} + +.single-project-skills-list{ + display: flex; + align-items: center; + flex-wrap: wrap; + list-style: none; + padding: 0; + li{ + margin: 0.5% 1%; + } +} \ No newline at end of file