Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/pages/ErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
import React from "react";
import { Link } from "react-router-dom";
import "../styles/ErrorPage.css";
import FuzzyText from "../components/FuzzyText/FuzzyText.jsx";

const ErrorPage = () => {
return (
<div className="error-page">
<FuzzyText
baseIntensity={0.2}
hoverIntensity={0.4}
enableHover={true}
fontWeight={900}
color="#ffffff"
>
404
</FuzzyText>
<h1 className="error-title">404</h1>
<p>Oops! La pagina che stai cercando non esiste.</p>
<Link to="/" className="back-button">
Torna alla Home
Expand Down
115 changes: 11 additions & 104 deletions src/styles/ErrorPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
color: white;
text-align: center;
padding: clamp(1rem, 3vw, 2rem);
padding: clamp(1.4rem, 4vw, 3rem);
gap: clamp(1.5rem, 4vw, 2.5rem);
}

.error-page canvas {
max-width: 100%;
height: auto;
display: block;
.error-title {
font-size: clamp(7.4rem, 19vw, 12rem);
font-weight: 800;
margin: 0;
color: #fff;
text-shadow: 0 0 50px rgba(102, 126, 234, 0.3);
}

.error-page p {
Expand All @@ -23,6 +25,7 @@
max-width: 600px;
line-height: 1.5;
margin: 0;
text-align: center;
}

.back-button {
Expand All @@ -31,12 +34,12 @@
border: 2px solid rgba(255, 255, 255, 0.3);
color: white;
text-decoration: none;
border-radius: clamp(6px, 1vw, 12px);
transition: all 0.3s ease;
font-size: clamp(0.9rem, 2vw, 1.2rem);
border-radius: 10px;
font-size: clamp(0.9rem, 2.1vw, 1.2rem);
font-weight: 500;
display: inline-block;
min-width: 140px;
transition: all 0.3s ease;
}

.back-button:hover {
Expand All @@ -45,99 +48,3 @@
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design - seguendo i breakpoint della LandingPage */
@media (max-width: 1024px) {
.error-page {
padding: clamp(1.5rem, 4vw, 2.5rem);
gap: clamp(2rem, 5vw, 3rem);
}

.error-page canvas {
min-width: 200px;
min-height: 120px;
}
}

@media (max-width: 768px) {
.error-page {
padding: clamp(1rem, 3vw, 2rem);
gap: clamp(2rem, 5vw, 3rem);
}

.error-page canvas {
min-width: 180px;
min-height: 100px;
}

.error-page p {
font-size: clamp(0.95rem, 3vw, 1.2rem);
max-width: 500px;
}

.back-button {
padding: clamp(0.7rem, 2.5vw, 0.9rem) clamp(1.2rem, 5vw, 1.8rem);
font-size: clamp(0.85rem, 2.5vw, 1.1rem);
min-width: 120px;
}
}

@media (max-width: 600px) {
.error-page {
padding: clamp(0.8rem, 2.5vw, 1.5rem);
gap: clamp(1.8rem, 4vw, 2.5rem);
}

.error-page canvas {
min-width: 160px;
min-height: 90px;
}

.error-page p {
font-size: clamp(0.9rem, 3.5vw, 1.1rem);
max-width: 400px;
padding: 0 10px;
}

.back-button {
padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 4vw, 1.5rem);
font-size: clamp(0.8rem, 3vw, 1rem);
min-width: 100px;
border-radius: 6px;
}
}

@media (max-width: 480px) {
.error-page {
padding: clamp(0.5rem, 2vw, 1rem);
gap: clamp(1.5rem, 4vw, 2rem);
min-height: 100vh;
min-height: 100svh; /* Supporto per Safari mobile */
}

.error-page canvas {
min-width: 140px;
min-height: 80px;
width: 60vw !important;
max-width: 250px;
}

.error-page p {
font-size: clamp(0.85rem, 4vw, 1rem);
max-width: 300px;
padding: 0 5px;
line-height: 1.4;
}

.back-button {
padding: clamp(0.5rem, 2vw, 0.7rem) clamp(0.8rem, 3vw, 1.2rem);
font-size: clamp(0.75rem, 3.5vw, 0.9rem);
min-width: 90px;
border-radius: 5px;
}

.back-button:hover {
transform: translateY(-1px);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
}
Loading