initial version

This commit is contained in:
parsa aghaei committed 2024-09-22 10:52:53 +03:30
1 parent a2926561e5
commit acbf36024e
158 files changed
+1362 -118

No files matched your search

+228 -14
View File
@@ -2,26 +2,240 @@
@tailwind components;
@tailwind utilities;
:root {
--background: #ffffff;
--foreground: #171717;
* {
margin: 0;
padding: 0;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
html {
scroll-behavior: smooth;
}
.scroll-watcher {
height: 10px;
position: fixed;
top: 0;
z-index: 1000;
background-color: #fd6f00;
width: 100%;
scale: 0 1;
animation: scroll-watcher linear;
animation-timeline: scroll();
transform-origin: left;
}
.service,
.project {
scale: 0.5;
opacity: 0.1;
animation: fade-in linear forwards;
animation-timeline: view();
animation-range: 250px 500px;
}
@keyframes scroll-watcher {
to {
scale: 1 1;
}
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
@keyframes fade-in {
to {
scale: 1;
opacity: 1;
}
}
@layer utilities {
.text-balance {
text-wrap: balance;
.progress {
animation: progress linear forwards;
animation-timeline: view();
animation-range: 25px 150px;
}
@keyframes progress {
from {
width: 0px;
}
}
#back-to-top {
opacity: 0;
scale: 0;
z-index: 1000;
animation: back-to-top linear forwards;
animation-timeline: scroll();
animation-range: 400px 550px;
}
@keyframes back-to-top {
to {
opacity: 0.9;
scale: 1;
}
}
/* #header {
animation: stick-to-top linear forwards;
animation-timeline: scroll();
animation-range: 67px 100px;
}
@keyframes stick-to-top {
to {
position: fixed;
top: 0;
}
} */
.img-container {
position: relative;
width: 538px;
height: 617px;
}
.top-half-circle {
position: absolute;
width: 538px;
height: 269px;
bottom: 269px;
border: 10px solid #fd6f00;
border-bottom: 10px solid transparent;
border-top-left-radius: 269px;
border-top-right-radius: 269px;
z-index: 0;
animation: top-half 1.5s ease-out;
}
.top-half-circle img {
position: absolute;
bottom: -269px;
z-index: +5;
}
.bottom-half-circle {
position: absolute;
bottom: 0;
width: 538px;
height: 269px;
border: 10px solid #fd6f00;
border-top: 10px solid transparent;
border-bottom-left-radius: 269px;
border-bottom-right-radius: 269px;
overflow: hidden;
z-index: 6;
animation: bottom-half 2s infinite linear;
}
.bottom-half-circle img {
position: absolute;
bottom: 0px;
z-index: 0;
}
@keyframes top-half {
0% {
bottom: -1000px;
}
}
@keyframes bottom-half {
0% {
transform: rotate(-6deg);
}
25% {
transform: rotate(0deg);
}
50% {
transform: rotate(6deg);
}
75% {
transform: rotate(0deg);
}
100% {
transform: rotate(-6deg);
}
}
.aboutme-image {
position: relative;
background: rgba(255, 255, 255, 0.6);
animation: 5s water linear infinite;
}
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
.aboutme-image::after,
.aboutme-image::before {
content: "";
position: absolute;
height: 100%;
width: 100%;
top: 50%;
left: 50%;
translate: -50% -50%;
background-image: conic-gradient(
from var(--angle),
#ff0095,
#fd6f00,
#00ff99,
#fd6f00,
#006aff,
#fd6f00,
#ff0095
);
z-index: -1;
padding: 3px;
border-top-left-radius: 25%;
border-top-right-radius: 25%;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
animation: 3s spin linear infinite;
}
.aboutme-image::before {
filter: blur(1.5rem);
opacity: 0.5;
}
.aboutme-image {
width: 500px;
height: 500px;
border-radius: 50%;
overflow: hidden;
}
@keyframes spin {
0% {
--angle: 0deg;
scale: 1;
}
50% {
--angle: 180deg;
scale: 1.1;
}
100% {
--angle: 360deg;
scale: 1;
}
}
@keyframes water {
0% {
border-radius: 25% 46% 25% 25% / 25% 50% 25% 25%;
}
25% {
border-radius: 59% 33% 56% 25% / 55% 38% 26% 25%;
}
40% {
border-radius: 53% 41% 63% 25% / 46% 53% 36% 25%;
}
60% {
border-radius: 41% 40% 66% 25% / 38% 47% 47% 34%;
}
75% {
border-radius: 35% 33% 61% 28% / 25% 59% 30% 68%;
}
100% {
border-radius: 25% 46% 25% 25% / 25% 50% 25% 25%;
}
}