services section with cyberpunk theme and animations
This commit is contained in:
parent
3505ce087f
commit
72cb78c3ff
11 changed files with 351 additions and 74 deletions
|
|
@ -1,26 +0,0 @@
|
|||
.services {
|
||||
padding: 5rem 3rem;
|
||||
// background-image: url("../../../public/images/grid-background-3.png");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
|
||||
h2 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 900;
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
padding: 1.5rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.cards {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
.service-card {
|
||||
background-color: #fff;
|
||||
border: 2px solid #000;
|
||||
border-radius: 1rem;
|
||||
padding: 2rem;
|
||||
box-shadow: 6px 6px 0 #000;
|
||||
flex: 1;
|
||||
|
||||
.icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #202020;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ $mobile-breakpoint: 1160px;
|
|||
background-color: rgba($dark-bg, 0.7);
|
||||
|
||||
&-text {
|
||||
font-size: 2rem;
|
||||
font-size: 1.2rem;
|
||||
color: white;
|
||||
letter-spacing: 2px;
|
||||
animation: neon-flicker 5s infinite alternate;
|
||||
|
|
|
|||
77
src/scss/components/_services.scss
Normal file
77
src/scss/components/_services.scss
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
// Services.scss
|
||||
$neon-pink: #ff2a6d;
|
||||
$neon-blue: #05d9e8;
|
||||
$neon-purple: #d300c5;
|
||||
$neon-yellow: #f7f500;
|
||||
$dark-bg: #0d0221;
|
||||
$cyber-black: #1a1a1a;
|
||||
|
||||
@keyframes gridMovement {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: 0 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.services {
|
||||
padding: 5rem 3rem;
|
||||
background-color: $dark-bg;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
// Grid background effect
|
||||
.grid-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: linear-gradient(
|
||||
rgba($neon-blue, 0.1) 1px,
|
||||
transparent 1px
|
||||
),
|
||||
linear-gradient(90deg, rgba($neon-blue, 0.1) 1px, transparent 1px);
|
||||
background-size: 25px 25px;
|
||||
z-index: 0;
|
||||
opacity: 0.3;
|
||||
pointer-events: none;
|
||||
animation: gridMovement 15s linear infinite;
|
||||
}
|
||||
|
||||
.services-heading {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
margin-bottom: 4rem;
|
||||
color: white;
|
||||
text-shadow: 0 0 10px rgba($neon-pink, 0.5);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
// Responsive font size
|
||||
@media (max-width: 768px) {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.cards-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 2rem;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
|
||||
// Stack cards on small screens
|
||||
@media (max-width: 768px) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
}
|
||||
115
src/scss/components/_servicesCard.scss
Normal file
115
src/scss/components/_servicesCard.scss
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
// ServicesCard.scss
|
||||
$neon-pink: #ff2a6d;
|
||||
$neon-blue: #05d9e8;
|
||||
$neon-purple: #d300c5;
|
||||
$neon-yellow: #f7f500;
|
||||
$dark-bg: #0d0221;
|
||||
$cyber-black: #1a1a1a;
|
||||
|
||||
@keyframes scanline {
|
||||
0% {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(100%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes borderGlow {
|
||||
0% {
|
||||
box-shadow: 0 0 5px $neon-pink;
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 15px $neon-pink, 0 0 25px $neon-pink;
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 5px $neon-pink;
|
||||
}
|
||||
}
|
||||
|
||||
.service-card {
|
||||
position: relative;
|
||||
background-color: $cyber-black;
|
||||
border-radius: 4px;
|
||||
padding: 2rem;
|
||||
color: white;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba($neon-pink, 0.5);
|
||||
box-shadow: 0 0 10px rgba($neon-pink, 0.3);
|
||||
width: 100%;
|
||||
|
||||
// The card border effect
|
||||
.card-border {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
|
||||
// Scanline effect
|
||||
.card-glow {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, transparent, $neon-pink, transparent);
|
||||
animation: scanline 2s linear infinite;
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
animation: borderGlow 1.5s infinite;
|
||||
border-color: $neon-pink;
|
||||
|
||||
.card-border {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.card-glow {
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
transition: color 0.3s ease, text-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: 1px;
|
||||
color: white;
|
||||
transition: color 0.3s ease, text-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.5rem;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.link {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
transition: color 0.3s ease;
|
||||
display: inline-block;
|
||||
letter-spacing: 0.5px;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
color: $neon-pink;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue