Rework style

This commit is contained in:
2025-10-30 20:53:36 +01:00
parent 41cdb5837d
commit a56f774525
7 changed files with 218 additions and 51 deletions

BIN
html/assets/pfp.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@@ -7,32 +7,98 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/style.css">
<link rel="stylesheet" href="./styles/mobile.css">
<link rel="stylesheet" href="./styles/introduction.css">
<link rel="stylesheet" href="styles/projects.css">
<title>Naaturel</title>
</head>
<body>
<main>
<div class="container">
<div class="introduction">
<div class="introduction-box punched-card">
<div class="introduction-header">
<img src="./assets/pfp.jpg" alt="profile picture" class="profile-picture">
<div class="names">
<h2 class="surname">Naaturel</h2>
<h4 class="real-name">Laurent Crema</h4>
</div>
</div>
<hr/>
<div class="introduction-text">
<h2>Hello there!</h2>
<section>
<h3><span class="accentuated">About</span> me</h3>
<p>
I'm a full-stack software engineer who loves building efficient, reliable apps
and solving real-world problems through clean, scalable code.
</p>
</section>
<section id="introduction">
<div class="content">
<h1> Naaturel </h1>
<hr/>
<h2 class="typer"></h2>
<section>
<h3>My <span class="accentuated">background</span></h3>
<p>
Bla bla bla lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
</p>
</section>
<section>
<h3>My <span class="accentuated">skills</span></h3>
<p>
Java, C#, Python, JavaScript / TypeScript, Node.js, Vue, PostgreSQL, Docker.
</p>
</section>
<section>
<h3><span class="accentuated">Connect</span> with me</h3>
<p>
<a href="mailto:yourname@example.com">Email</a>
<a href="https://github.com/yourusername" target="_blank">GitHub</a>
<a href="https://linkedin.com/in/yourprofile" target="_blank">LinkedIn</a>
</p>
</section>
</div>
</div>
<footer>
<p>Scroll down to get started</p>
<div><img src="./assets/arrow.svg" alt="arrow"></div>
</footer>
</section>
</div>
<div class="projects">
<h1>Check out my live projects</h1>
<section id="projects">
<div class="card-list">
<div class="card punched-card">
<a href="https://unluckiest.naaturel.be">
<img src="./assets/unluckiest.png" class="thumbnail" alt="Unluckiest">
</a>
<hr/>
<div class="card-details">
<h3>Unluckiest</h3>
<p class="notice">
Art & design by <a href="https://linktr.ee/yanderechan133">@YandereDraws</a>
</p>
</div>
</div>
<div class="card punched-card">
<a href="https://letsmeet.naaturel.be">
<img src="./assets/letsmeet.png" class="thumbnail" alt="Let's Meet">
</a>
<hr/>
<div class="card-details">
<h3>Letsmeet</h3>
</div>
</div>
</div>
<!--<div class="card-list">
<a>
<div class="card">
<h2>My <span class="accentuated">projects</span></h2>
@@ -40,7 +106,6 @@
<p>Get a look at what I've worked on</p>
</div>
</a>
<a>
<div class="card">
<h2><span class="accentuated">About</span> me</h2>
@@ -56,8 +121,12 @@
<p>Get in touch with me</p>
</div>
</a>
</div>
</div>
</div>-->
<!--<footer>
<p>Scroll down to get started</p>
<div><img src="./assets/arrow.svg" alt="arrow"></div>
</footer>-->
<!--<div class="content">
<div >
@@ -82,8 +151,6 @@
</div>
</div>
</div>-->
</section>
</main>
@@ -93,7 +160,7 @@
import { Typer } from './scripts/Typer.js';
const target = document.getElementsByClassName('typer')[0];
const texts = ["Backend dev", "Frontend dev", "Fullstack software engineer"];
const texts = ["backend dev", "frontend dev", "fullstack software engineer"];
const typer = new Typer({target: target, texts: texts, typingDelay: 150, deletionDelay: 50});
typer.start();
</script>
@@ -102,9 +169,9 @@
<script type="module">
import {CardTilter} from "./scripts/CardTilter.js";
const cards = document.querySelectorAll('.card');
const cards = document.querySelectorAll('.introduction-box');
cards.forEach(card => { new CardTilter({card : card, tilt : 15, perspective : 650}) })
cards.forEach(card => { new CardTilter({card : card, tilt : 5, perspective : 950}) })
</script>

View File

@@ -39,7 +39,7 @@ export class CardTilter {
};
transform(rotationX, rotationY) {
this.card.style.transform = `translateY(-10px) perspective(${this.perspective}px) rotateX(${rotationX}deg) rotateY(${rotationY}deg) scale(1.05)`;
this.card.style.transform = `translateY(-5px) perspective(${this.perspective}px) rotateX(${rotationX}deg) rotateY(${rotationY}deg) scale(1.02)`;
}
reset(){

0
html/styles/desktop.css Normal file
View File

View File

@@ -1,26 +1,99 @@
#introduction .content {
flex: 5;
width: 25%;
.introduction {
display: flex;
align-items: center;
justify-content: center;
width: 40%;
height: 100%;
}
#introduction footer {
flex : 1;
transition: transform 0.5s ease-in-out;
.introduction-box {
min-width: 350px;
min-height: 350px;
padding: 25px 35px 35px 35px;
background: white;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
overflow: scroll;
}
footer:hover{
transform: translateY(-20px);
}
hr {
.introduction-box hr {
width: 100%;
margin-bottom: 25px;
margin-top: 10px;
}
.introduction-header
{
display: flex;
flex-direction: row;
align-items: center;
gap: 25px;
}
.names
{
line-height: 16px;
}
.real-name
{
opacity: 0.7;
}
.profile-picture
{
width: 100px;
aspect-ratio: 1/1;
border: solid 1px rgba(0, 0, 0, 0.3);
border-radius: 50%;
}
.introduction-text {
font-size: 1.1rem;
line-height: 1.25rem;
}
.greetings
{
font-size: 3.5rem;
}
.typer::after {
content: '|';
animation: blink 800ms infinite;
}
.projects
{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 60%;
}
.punched-card
{
mask-image: radial-gradient(circle 25px at calc(100% - 0px) calc(0% + 0px), transparent 99%, black 100%);
mask-repeat: no-repeat;
mask-position: top right;
mask-composite: exclude;
}
.thumbnail
{
width: 250px;
border : solid 1px black;
}
.card-list
{
display: flex;
@@ -28,39 +101,45 @@ hr {
justify-content: start;
gap: 15px;
min-width: 375px;
height: 75%;
overflow: scroll;
padding: 0 20px 0 20px;
padding: 20px;
}
.card {
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
align-items: start;
height: 350px;
width: 275px;
padding: 15px;
background: white;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
padding: 15px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform;
}
.card:hover {
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.card p
{
opacity: 0.65;
.card-details {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
width: 100%;
}
.card .notice
{
opacity: 0.65;
font-size: 0.75rem;
}
@keyframes blink {
from { opacity: 0; }

18
html/styles/mobile.css Normal file
View File

@@ -0,0 +1,18 @@
@media (max-width: 801px) {
.container {
flex-direction: column;
justify-content: center;
align-items: center;
}
.introduction
{
width: 100%;
}
.introduction-box
{
height: 100%;
}
}

View File

@@ -1,5 +1,5 @@
:root {
--primary-color: #3dae15;
--primary-color: #5f9a13;
}
::-webkit-scrollbar {
@@ -7,7 +7,8 @@
}
* {
font-family: 'Fira Code', 'PT sans', sans-serif;
font-family: 'Roboto', 'PT sans', sans-serif;
box-sizing: border-box;
color: #333;
}
@@ -17,7 +18,7 @@ html, body {
width: 100dvw;
}
html, body, main, section, section div, footer {
html, body, main, footer {
display: flex;
flex-direction: column;
align-items: center;
@@ -44,18 +45,20 @@ main {
margin : 5px;
}
section {
.container {
display: flex;
flex-direction: row;
height: 100%;
min-height: 100%;
width: 100%;
scroll-snap-align: start;
padding : 15px;
}
ul li{
list-style-type: none;
hr {
width: 50%;
}
ul li a {
a {
text-decoration: none;
}