Do not question the css it will be fixed on a later occasion lmao Patrick don't be mad and merge
This commit is contained in:
parent
35af22fa68
commit
9b951ea6ca
14 changed files with 432 additions and 6 deletions
31
app/luca/Luca.css
Normal file
31
app/luca/Luca.css
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* Luca.css */
|
||||
.programmer-space {
|
||||
padding: 20px;
|
||||
margin: 10px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.luca {
|
||||
background-color: #4a90e2; /* Blue */
|
||||
}
|
||||
|
||||
.click-button {
|
||||
padding: 10px 20px;
|
||||
margin-top: 10px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background-color: #fff;
|
||||
color: #4a90e2;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.click-button:hover {
|
||||
background-color: #e3e3e3;
|
||||
}
|
||||
|
||||
.lorem-ipsum {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
}
|
37
app/luca/Luca.tsx
Normal file
37
app/luca/Luca.tsx
Normal file
|
@ -0,0 +1,37 @@
|
|||
// Luca.tsx
|
||||
"use client";
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import './Luca.css'; // Import specific styles for Luca
|
||||
|
||||
const Luca = () => {
|
||||
// State to keep track of the number of clicks
|
||||
const [clickCount, setClickCount] = useState(0);
|
||||
|
||||
// Function to handle button click
|
||||
const handleClick = () => {
|
||||
setClickCount(clickCount + 1);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="programmer-space luca">
|
||||
<h2>Luca's Space</h2>
|
||||
<p>Welcome, Luca! This is your programming space.</p>
|
||||
|
||||
{/* Button to count clicks */}
|
||||
<button onClick={handleClick} className="click-button">
|
||||
Click me
|
||||
</button>
|
||||
<p>You've clicked the button {clickCount} times!</p>
|
||||
|
||||
{/* Lorem Ipsum text */}
|
||||
<div className="lorem-ipsum">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Luca;
|
Loading…
Add table
Add a link
Reference in a new issue