Skip to content

Commit

Permalink
fix project display if none
Browse files Browse the repository at this point in the history
  • Loading branch information
Cemus committed Nov 7, 2023
1 parent 1203603 commit 9966a3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CV Creator</title>
<script type="module" crossorigin src="./assets/index-55187eca.js"></script>
<link rel="stylesheet" href="./assets/index-e9117bf5.css">
<script type="module" crossorigin src="./assets/index-c80c888e.js"></script>
<link rel="stylesheet" href="./assets/index-11d4cd51.css">
</head>
<body>
<div id="root"></div>
Expand Down
14 changes: 8 additions & 6 deletions src/components/DisplayCV.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,14 @@ export default function DisplayCV(props) {
<p className="cv--description">{props.description}</p>
</div>
)}
<div>
<h3 className="cv--title">
{props.language === "french" ? "Projets" : "Projects"}
</h3>
<div className="cv--project-container">{projectsRenderer}</div>
</div>
{props.projects.length > 0 && (
<div>
<h3 className="cv--title">
{props.language === "french" ? "Projets" : "Projects"}
</h3>
<div className="cv--project-container">{projectsRenderer}</div>
</div>
)}

<div>
<h3 className="cv--title">
Expand Down

0 comments on commit 9966a3e

Please sign in to comment.