First Changes

This commit is contained in:
IM23a-spirgif
2025-02-27 13:00:46 +01:00
parent 78582f79ed
commit ef96210279
7 changed files with 147 additions and 105 deletions
+69 -17
View File
@@ -1,24 +1,76 @@
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
:root {
--background: #ffffff;
--foreground: #171717;
.header {
text-align: center;
margin-bottom: 2rem;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
.title {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
.intro {
font-size: 1.25rem;
color: #666;
}
.section {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 2rem;
}
/* Section where text is on the left */
.textLeft {
flex: 1;
padding: 1rem;
}
/* Section where image is on the right */
.imageRight {
flex: 1;
padding: 1rem;
}
/* Section where image is on the left */
.imageLeft {
flex: 1;
padding: 1rem;
}
/* Section where button is on the right */
.buttonRight {
flex: 1;
padding: 1rem;
display: flex;
justify-content: flex-end;
}
/* Ensure images are responsive */
.imageLeft img,
.imageRight img {
width: 100%;
height: auto;
border-radius: 8px;
}
.learnMoreButton {
padding: 0.75rem 1.5rem;
font-size: 1rem;
background-color: #0070f3;
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}
.learnMoreButton:hover {
background-color: #005bb5;
}
+38 -88
View File
@@ -2,100 +2,50 @@ import Image from "next/image";
export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
src/app/page.js
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>
<div className="min-h-screen bg-gray-50 flex flex-col items-center justify-center px-4 py-12">
{/* Header with title and introduction */}
<header className="text-center mb-16">
<h1 className="text-5xl font-bold mb-4">My Portfolio</h1>
<p className="text-xl text-gray-600">
Welcome to my personal portfolio. I am passionate about creating beautiful and efficient web experiences.
</p>
</header>
<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
{/* Section 1: Text on left, image on right */}
<section className="flex flex-col md:flex-row items-center mb-16 w-full max-w-5xl">
<div className="md:w-1/2 p-4">
<p className="text-lg text-gray-700">
I specialize in building responsive, dynamic web applications that deliver exceptional user experiences.
</p>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<div className="md:w-1/2 p-4 flex justify-center">
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
src="/project1.jpg" // Replace with your image path
alt="Project showcase"
width={500}
height={300}
className="rounded-lg shadow-lg"
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
</div>
</section>
{/* Section 2: Image on left, button on right */}
<section className="flex flex-col md:flex-row items-center w-full max-w-5xl">
<div className="md:w-1/2 p-4 flex justify-center">
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
src="/project2.jpg" // Replace with your image path
alt="Another project"
width={500}
height={300}
className="rounded-lg shadow-lg"
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
</div>
<div className="md:w-1/2 p-4 flex justify-center">
<button className="px-8 py-4 bg-blue-600 text-white text-lg rounded-lg hover:bg-blue-700 transition">
Learn More
</button>
</div>
</section>
</div>
);
}