Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmetBozkir authored Dec 17, 2023
0 parents commit ab41e37
Show file tree
Hide file tree
Showing 2 changed files with 409 additions and 0 deletions.
251 changes: 251 additions & 0 deletions detail.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

:root {
--black: #373737;
--sect1: #ff9900;
--sect2: #2196f3;
--sect3: #e63232;
--sect4: #8bc34a;
--sect5: #8946ff;
}

img {
border-radius: 50%;
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
padding: 0;
transition: all 0.5s ease 0s;
font-family: "Varela Round", cursive;
}

body:after {
content: "I would be very grateful if you give me feedback about the page.";
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
color: var(--black);
font-size: 1rem;
padding: 20px 0;
}

header {
width: 100%;
}

nav {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 65px;
background: linear-gradient(0deg, #fff0 0px, var(--black) 1px 100%);
text-align: center;
display: flex;
transition: all 0.5s ease 0s;
}

nav a {
color: #fff;
text-decoration: none;
padding: 16px 10px;
position: relative;
z-index: 1;
width: 100%;
font-size: 1.6rem;
border: 2px solid #000;
border-top-width: 0px;
border-bottom-width: 4px;
}

nav a:first-child {
border-left-width: 0;
}

nav a:last-child {
border-right-width: 0;
}

nav a:hover {
background: linear-gradient(90deg, var(--clr) 0 50%, var(--black) 0 100%);
background-size: 200%;
background-position: 100% 0;
animation: colorize 0.5s ease 0s;
animation-fill-mode: forwards;
transition: all 0.5s ease 0s;
}

@keyframes colorize {
100% {
background-position: 0 0;
}
}

nav a:nth-child(1):hover {
--clr: var(--sect1);
}
nav a:nth-child(2):hover {
--clr: var(--sect2);
}
nav a:nth-child(3):hover {
--clr: var(--sect3);
}
nav a:nth-child(4):hover {
--clr: var(--sect4);
}
nav a:nth-child(5):hover {
--clr: var(--sect5);
}

nav:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 20vw;
width: 20%;
height: 100%;
z-index: -1;
background: linear-gradient(
90deg,
var(--sect1) 0 calc(20vw - 3px),
var(--sect2) 0 calc(40vw - 6px),
var(--sect3) 0 calc(60vw - 10px),
var(--sect4) 0 calc(80vw - 13px),
var(--sect5) 0 100vw
);
animation: progress linear;
animation-timeline: scroll(root);
}

@keyframes progress {
100% {
width: 100%;
}
}

section {
height: 100vh;
justify-content: center;
align-items: center;
font-size: 4rem;
color: #fff;
padding-top: 30px;
border-bottom: 4px solid #000;
display: flex;
flex-wrap: wrap;
align-content: center;
}

section h2,
section p {
margin: 0;
width: 100%;
text-align: center;
}

section p {
font-size: 1.25rem;
}

#pro {
background-color: var(--sect1);
}

#skl {
background-color: var(--sect2);
}

#emp1 {
background-color: var(--sect3);
}

#emp2 {
background-color: var(--sect4);
}

#cnnct {
background-color: var(--sect5);
}

.scroller {
position: fixed;
width: 30px;
height: 50px;
background: radial-gradient(ellipse at 50% 33%, #fff0 0 3px, #fff 4px 100%);
top: calc(50vh - 15px);
right: 20px;
border-radius: 20px;
}

.scroller:before {
content: "";
position: absolute;
width: 30px;
height: 50px;
background: radial-gradient(circle at 50% 33%, #fff0 0 6px, #fff 7px 100%);
border-radius: 20px 20px;
left: 0;
bottom: 0;
}

.scroller span {
position: absolute;
height: 30px;
border-left: 5px dotted #fff;
top: -50px;
left: 13px;
}

.scroller span + span {
top: inherit;
top: 70px;
}

.scroller span:before {
content: "";
position: absolute;
width: 8px;
height: 8px;
border: 4px solid #fff;
border-color: #fff #fff #fff0 #fff0;
border-radius: 4px;
transform: rotate(-45deg);
left: -11px;
top: -13px;
}

.scroller span + span:before {
border-color: #fff0 #fff0 #fff #fff;
top: 28px;
}

.scroller:after {
content: "Scroll";
position: absolute;
left: -5rem;
font-size: 1.65rem;
bottom: 0.5rem;
color: #fff;
font-weight: bold;
}

@media screen and (max-width: 580px) {
nav a {
font-size: 1.25rem;
line-height: 2rem;
}
.scroller:after {
content: "";
}
}
Loading

0 comments on commit ab41e37

Please sign in to comment.