- Added FadeInSection component to About and Projects pages for animations.
- Updated About page to use `window.scrollTo` for smooth scrolling. - Created Contact page with sections for "Kontakt" and "Impressum." - Integrated Ionicons into Contact page. - Added support for external images in Next.js config. - Added `@ionic/react` and `ionicons` dependencies. - Styled Contact page with custom CSS rules.
This commit is contained in:
+19
-16
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useState } from "react";
|
||||
import Image from "next/image";
|
||||
import FadeInSection from "@/app/components/FadeInSection";
|
||||
|
||||
const projectData = [
|
||||
{
|
||||
@@ -46,22 +47,24 @@ export default function ProjectsPage() {
|
||||
|
||||
return (
|
||||
<div className="projectContainer">
|
||||
<div className={`projectCard ${fade ? "fade-out" : "fade-in"}`}>
|
||||
<h2 className="projectTitle">{project.title}</h2>
|
||||
<Image
|
||||
src={project.image}
|
||||
alt={project.title}
|
||||
width={600}
|
||||
height={400}
|
||||
className="projectImage"
|
||||
/>
|
||||
<p className="projectDescription">{project.description}</p>
|
||||
<a href={project.link} target="_blank" rel="noopener noreferrer">
|
||||
<button className="learnMoreButton" style={{ marginTop: "1.5rem" }}>
|
||||
View Project
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
<FadeInSection>
|
||||
<div className={`projectCard ${fade ? "fade-out" : "fade-in"}`}>
|
||||
<h2 className="projectTitle">{project.title}</h2>
|
||||
<Image
|
||||
src={project.image}
|
||||
alt={project.title}
|
||||
width={600}
|
||||
height={400}
|
||||
className="projectImage"
|
||||
/>
|
||||
<p className="projectDescription">{project.description}</p>
|
||||
<a href={project.link} target="_blank" rel="noopener noreferrer">
|
||||
<button className="learnMoreButton" style={{ marginTop: "1.5rem" }}>
|
||||
View Project
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</FadeInSection>
|
||||
<div className="projectNavigation">
|
||||
<button onClick={() => handleNavigation("prev")} className="arrowButton">
|
||||
←
|
||||
|
||||
Reference in New Issue
Block a user