Skip to content

Commit b4393fc

Browse files
Added new SCSS modules for layout, animations, colors, typography, and utilities.
1 parent 387ed19 commit b4393fc

File tree

5 files changed

+127
-0
lines changed

5 files changed

+127
-0
lines changed

assets/css/animations.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// animations.scss
2+
3+
@import 'variables';
4+
5+
@keyframes fadeInUp {
6+
0% {
7+
opacity: 0;
8+
transform: translateY(20px);
9+
}
10+
100% {
11+
opacity: 1;
12+
transform: translateY(0);
13+
}
14+
}
15+
16+
.fade-in-up {
17+
animation: fadeInUp 0.6s ease-out;
18+
}
19+
20+
@keyframes pulse {
21+
0%, 100% {
22+
transform: scale(1);
23+
}
24+
50% {
25+
transform: scale(1.05);
26+
}
27+
}
28+
29+
.pulse {
30+
animation: pulse 1.5s infinite;
31+
}

assets/css/cards.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// cards.scss
2+
3+
@import 'variables';
4+
@import 'mixins';
5+
6+
.card {
7+
background: #fff;
8+
border: 1px solid $border-color;
9+
border-radius: $border-radius;
10+
padding: $spacing-unit * 2;
11+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
12+
@include transition();
13+
14+
&:hover {
15+
transform: translateY(-4px);
16+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
17+
}
18+
19+
.card-title {
20+
font-family: $heading-font;
21+
font-size: 1.2rem;
22+
margin-bottom: $spacing-unit;
23+
color: $primary-color;
24+
}
25+
26+
.card-content {
27+
color: $text-color;
28+
font-size: 0.95rem;
29+
}
30+
}

assets/css/layout.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// layout.scss
2+
3+
@import 'variables';
4+
@import 'mixins';
5+
6+
.container {
7+
width: 90%;
8+
max-width: 1200px;
9+
margin: 0 auto;
10+
}
11+
12+
.section {
13+
padding: $spacing-unit * 4 0;
14+
}
15+
16+
.grid {
17+
display: grid;
18+
gap: $spacing-unit * 2;
19+
20+
@include respond(tablet) {
21+
grid-template-columns: 1fr 1fr;
22+
}
23+
24+
@include respond(mobile) {
25+
grid-template-columns: 1fr;
26+
}
27+
}

assets/css/mixins.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// mixins.scss
2+
3+
// Center items with flexbox
4+
@mixin flex-center {
5+
display: flex;
6+
align-items: center;
7+
justify-content: center;
8+
}
9+
10+
// Apply smooth transition
11+
@mixin transition($property: all) {
12+
transition: $property $transition-speed ease-in-out;
13+
}
14+
15+
// Responsive breakpoint
16+
@mixin respond($breakpoint) {
17+
@if $breakpoint == mobile {
18+
@media (max-width: 600px) { @content; }
19+
} @else if $breakpoint == tablet {
20+
@media (max-width: 900px) { @content; }
21+
}
22+
}

assets/css/variables.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// variables.scss
2+
3+
// 🎨 Color palette
4+
$primary-color: #1e90ff;
5+
$secondary-color: #ff6f61;
6+
$background-color: #f4f7fa;
7+
$text-color: #222;
8+
$border-color: #e2e8f0;
9+
10+
// 🖋️ Typography
11+
$font-stack: 'Poppins', sans-serif;
12+
$heading-font: 'Montserrat', sans-serif;
13+
14+
// 📏 Spacing and sizing
15+
$spacing-unit: 8px;
16+
$border-radius: 8px;
17+
$transition-speed: 0.3s;

0 commit comments

Comments
 (0)