This commit is contained in:
2025-01-15 13:40:51 +01:00
parent 8f82df884a
commit c8eaef7c36
6 changed files with 44 additions and 3 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/my_portfolio.iml" filepath="$PROJECT_DIR$/.idea/my_portfolio.iml" />
</modules>
</component>
</project>

12
.idea/my_portfolio.iml generated Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@@ -3,6 +3,7 @@
import { useParams, useRouter } from "next/navigation"; import { useParams, useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import Link from "next/link"; import Link from "next/link";
import Image from "next/image";
interface Project { interface Project {
id: string; id: string;
@@ -56,7 +57,7 @@ export default function ProjectDetail() {
<h1 className="text-4xl font-bold text-gray-800 dark:text-white"> <h1 className="text-4xl font-bold text-gray-800 dark:text-white">
{project.title} {project.title}
</h1> </h1>
<img <Image
src={project.image} src={project.image}
alt={project.title} alt={project.title}
className="mt-4 w-full max-w-md rounded shadow" className="mt-4 w-full max-w-md rounded shadow"
@@ -65,10 +66,10 @@ export default function ProjectDetail() {
{project.description} {project.description}
</p> </p>
<Link <Link
href={project.link} href={`/`}
className="mt-4 inline-block text-blue-500 hover:underline" className="mt-4 inline-block text-blue-500 hover:underline"
> >
Visit Project Go back Home
</Link> </Link>
</div> </div>
); );