revamped: whole UI

This commit is contained in:
2026-03-18 18:41:04 +01:00
parent 1d08d197dc
commit 1cf10672fa
44 changed files with 655 additions and 542 deletions

View File

@@ -1,11 +1,15 @@
import { motion } from 'framer-motion';
import '@/css/Home.css';
import Card from '@/components/Card';
const Home = () => {
return (
<div className="min-vh-100" style={{ background: 'linear-gradient(to bottom right, #f8f9fa, #dee2e6)' }}>
<main className="container-fluid">
<div className="home-container">
<main className="container py-5">
<AboutSection />
<hr className="custom-hr" />
<ProjectsSection />
<hr className="custom-hr" />
<InterestsSection />
</main>
</div>
@@ -14,111 +18,122 @@ const Home = () => {
const AboutSection = () => {
return (
<section className="py-5 bg-light">
<div className="container">
<div className="row align-items-center">
<motion.div
className="col-md-6 mb-4 mb-md-0"
initial={{ opacity: 0, x: -50 }}
whileInView={{ opacity: 1, x: 0 }}
transition={{ duration: 0.6 }}
viewport={{ once: true }}
>
<div className="rounded-circle overflow-hidden mx-auto shadow-lg" style={{ width: '300px', height: '300px' }}>
<section className="py-4">
<div className="row align-items-center">
<motion.div
className="col-md-5 mb-4 mb-md-0 d-flex justify-content-center"
initial={{ opacity: 0, scale: 0.8 }}
whileInView={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.8 }}
viewport={{ once: true }}
>
<div className="position-relative">
<div className="position-absolute top-50 start-50 translate-middle rounded-circle"
style={{ width: '300px', height: '300px', background: 'var(--primary-color)', filter: 'blur(60px)', opacity: 0.15 }}></div>
<div className="rounded-circle overflow-hidden shadow-lg border border-3 border-danger" style={{ width: '280px', height: '280px' }}>
<motion.img
src="https://git.miarma.net/avatars/2fba8e2d4e39fffec3bbfe128df0cb9934ccf9b49fd6d310244c6b6209739425?size=512"
alt="Avatar"
className="w-100 h-100 object-cover"
whileHover={{ scale: 1.05 }}
transition={{ duration: 0.3 }}
whileHover={{ scale: 1.1, rotate: 5 }}
/>
</div>
</motion.div>
<motion.div
className="col-md-6"
initial={{ opacity: 0, x: 50 }}
whileInView={{ opacity: 1, x: 0 }}
transition={{ duration: 0.6 }}
viewport={{ once: true }}
>
<h2 className="h3 fw-bold mb-3">Sobre </h2>
<p className="text-muted mb-4">
Soy un estudiante de Ingeniería de Computadores en la Universidad de Sevilla, en mi cuarto año.
Actualmente me dedico a linux, redes, microcontroladores y webdev. Por aquí abajo dejo con lo que suelo trastear:
</p>
<div className="d-flex flex-wrap gap-2">
{['C', 'Rust', 'Java', 'JS (Vanilla + React)', 'Python', 'DB', 'Linux', 'HDL'].map((skill) => (
<motion.span
key={skill}
className="badge px-3 py-2"
whileHover={{ scale: 1.1 }}
transition={{ duration: 0.2 }}
>
{skill}
</motion.span>
))}
</div>
</motion.div>
</div>
</div>
</section>
);
};
</div>
</motion.div>
const InterestsSection = () => {
return (
<section className="py-5 bg-light">
<div className="container">
<h2 className="h3 fw-bold mb-4 text-center">Intereses</h2>
<div className="row g-3">
{['Informática', 'Electrónica', 'Videojuegos', 'Música', 'Animanga', 'Ciberseguridad'].map((interest, index) => (
<motion.div
key={interest}
className="col-md-4 col-6"
initial={{ opacity: 0, scale: 0.9 }}
whileInView={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.5, delay: index * 0.1 }}
viewport={{ once: true }}
>
<div className="text-center p-3 bg-white rounded shadow">
{interest}
</div>
</motion.div>
))}
</div>
<motion.div
className="col-md-7 mt-4 mt-md-0"
initial={{ opacity: 0, x: 30 }}
whileInView={{ opacity: 1, x: 0 }}
transition={{ duration: 0.6 }}
viewport={{ once: true }}
>
<h2 className="section-title">SOBRE </h2>
<p className="lead opacity-75 mb-4">
Estudiante de 4º de <strong>Ingeniería de Computadores</strong> en la US.
Suelo trastear con Linux, redes, electrónica y webdev.
</p>
<div className="d-flex flex-wrap gap-2">
{['C', 'Rust', 'Java', 'JS', 'React', 'Python', 'Linux', 'HDL'].map((skill) => (
<motion.span
key={skill}
className="badge skill-badge px-3 py-2"
whileHover={{ y: -3, backgroundColor: 'var(--primary-color)', color: '#000' }}
>
{skill}
</motion.span>
))}
</div>
</motion.div>
</div>
</section>
);
};
const ProjectsSection = () => {
const projects = [
{ title: 'miarma-backend', desc: 'Backend Spring que alimenta todos mis servicios', tech: 'Java/Spring' },
{ title: 'riscv-ac', desc: 'Implementación HDL del procesador RISC-V. Arquitectura pura.', tech: 'Verilog/VHDL' },
{ title: 'contaminus', desc: 'Proyecto Hack4Change 24/25. Fullstack + IoT.', tech: 'React/Python/IoT' },
];
return (
<section className="py-5">
<div className="container">
<h2 className="h3 fw-bold mb-4 text-center">Mis Proyectos Favoritos</h2>
<div className="row g-4">
{[
{ title: 'miarma-backend', desc: 'Backend Spring que alimenta todos mis servicios' },
{ title: 'riscv-ac', desc: 'Implementación HDL del procesador RISC-V de la asignatura AC' },
{ title: 'contaminus', desc: 'Proyecto presentado al hackathon Hack4Change 24/25 de la ETSII (aunque el jurado no nos echase mucha cuenta...). Mezcla frontend, backend e IoT.' },
].map((project, index) => (
<motion.div
key={project.title}
className="col-md-4"
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, delay: index * 0.2 }}
viewport={{ once: true }}
<section>
<h2 className="section-title">MIS PROYECTOS FAVORITOS</h2>
<div className="row g-4">
{projects.map((project, index) => (
<motion.div
key={project.title}
className="col-md-4 d-flex"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ delay: index * 0.1 }}
viewport={{ once: true }}
>
<a
href={`https://git.miarma.net/Gallardo7761/${project.title}`}
className="text-decoration-none w-100 d-flex"
target="_blank"
rel="noopener noreferrer"
>
<div className="card h-100 shadow-sm">
<div className="card-body">
<h5 className="card-title">{project.title}</h5>
<p className="card-text">{project.desc}</p>
<Card
title={project.title}
status={project.tech}
styleMode="override"
className="w-100"
>
<div className="card-content py-2">
<p className="opacity-75" style={{ fontSize: '0.95rem' }}>
{project.desc}
</p>
</div>
</div>
</motion.div>
))}
</div>
</Card>
</a>
</motion.div>
))}
</div>
</section>
);
};
const InterestsSection = () => {
const interests = ['Informática', 'Electrónica', 'Videojuegos', 'Música', 'Animanga', 'Ciberseguridad'];
return (
<section>
<h2 className="section-title">INTERESES</h2>
<div className="row g-3">
{interests.map((interest, i) => (
<motion.div
key={i}
className="col-md-4 col-6"
whileHover={{ scale: 1.02 }}
>
<div className="interest-item rounded shadow-sm h-100 d-flex align-items-center">
<span>{interest}</span>
</div>
</motion.div>
))}
</div>
</section>
);