Skip to content

Commit 5022e51

Browse files
Update custom.scss
1 parent c850d09 commit 5022e51

1 file changed

Lines changed: 100 additions & 23 deletions

File tree

_sass/custom/custom.scss

Lines changed: 100 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
display: flex;
55
align-items: center;
66
justify-content: space-between;
7-
background-color: #0a0a0a; /* Futuristic dark background */
7+
background-color: #ffffff; /* Clean white background */
88
padding: 20px;
9-
border-radius: 8px;
10-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); /* Adds depth */
11-
color: #eee; /* Cyberpunk-themed text color */
9+
border: 1px solid #e0e0e0; /* Subtle border */
10+
border-radius: 8px; /* Optional: Rounded corners for a modern look */
11+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add depth */
1212
}
1313

1414
.title-container {
@@ -20,54 +20,131 @@
2020
font-size: 2rem;
2121
font-weight: bold;
2222
margin: 0;
23+
color: #333;
2324
}
2425

2526
.page-subtitle {
2627
font-size: 1rem;
27-
color: #bbb;
28+
color: #666;
2829
margin-top: 5px;
2930
}
3031

3132
.image-container {
3233
position: relative;
3334
flex-shrink: 0;
34-
width: 300px;
35-
height: 160px;
35+
width: 300px; /* Width for the image box */
36+
height: 160px; /* Fixed height for the image */
37+
}
38+
39+
.image-wrapper {
40+
position: relative;
41+
width: 100%;
42+
height: 100%;
3643
overflow: hidden;
3744
}
3845

39-
.image-effect {
46+
.image-wrapper img {
47+
width: 100%;
48+
height: 100%;
49+
object-fit: cover;
50+
}
51+
52+
/* Pixel-break effect with pseudo-elements */
53+
.image-wrapper::before {
54+
content: "";
55+
position: absolute;
56+
top: 20px; /* Adjust vertical placement of the effect */
57+
left: -30px; /* Extends beyond the box to "break away" */
58+
width: 50px;
59+
height: 50px;
60+
background-color: #333;
61+
clip-path: polygon(0 0, 100% 0, 50% 100%);
62+
z-index: 1;
63+
}
64+
65+
.image-wrapper::after {
66+
content: "";
67+
position: absolute;
68+
top: 60px; /* Offset for layered effect */
69+
left: -20px; /* Staggered horizontal offset */
70+
width: 30px;
71+
height: 30px;
72+
background-color: #aaa;
73+
clip-path: polygon(0 0, 100% 0, 50% 100%);
74+
z-index: 2;
75+
}
76+
.blog-header {
77+
display: flex;
78+
align-items: center;
79+
justify-content: space-between;
80+
background-color: #ffffff; /* Clean white background */
81+
padding: 20px;
82+
border: 1px solid #e0e0e0; /* Subtle border */
83+
border-radius: 8px; /* Optional: Rounded corners for a modern look */
84+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add depth */
85+
}
86+
87+
.title-container {
88+
flex: 1;
89+
padding-right: 20px;
90+
}
91+
92+
.page-title {
93+
font-size: 2rem;
94+
font-weight: bold;
95+
margin: 0;
96+
color: #333;
97+
}
98+
99+
.page-subtitle {
100+
font-size: 1rem;
101+
color: #666;
102+
margin-top: 5px;
103+
}
104+
105+
.image-container {
106+
position: relative;
107+
flex-shrink: 0;
108+
width: 300px; /* Width for the image box */
109+
height: 160px; /* Fixed height for the image */
110+
}
111+
112+
.image-wrapper {
40113
position: relative;
41114
width: 100%;
42115
height: 100%;
43-
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10% 60%, 15% 70%, 5% 80%);
116+
overflow: hidden;
44117
}
45118

46-
.image-effect img {
119+
.image-wrapper img {
47120
width: 100%;
48121
height: 100%;
49122
object-fit: cover;
50-
filter: contrast(120%) brightness(110%);
51123
}
52124

53-
.image-effect::before {
125+
/* Pixel-break effect with pseudo-elements */
126+
.image-wrapper::before {
54127
content: "";
55128
position: absolute;
56-
top: 0;
57-
left: -20px;
129+
top: 20px; /* Adjust vertical placement of the effect */
130+
left: -30px; /* Extends beyond the box to "break away" */
58131
width: 50px;
59132
height: 50px;
60-
background: linear-gradient(45deg, #ff00e6, #00e6ff);
61-
clip-path: polygon(0 0, 100% 0, 50% 100%, 0 50%);
62-
opacity: 0.8;
63-
animation: glitch 1.5s infinite;
133+
background-color: #333;
134+
clip-path: polygon(0 0, 100% 0, 50% 100%);
135+
z-index: 1;
64136
}
65137

66-
@keyframes glitch {
67-
0%, 100% { transform: translate(0, 0); }
68-
25% { transform: translate(-10px, 5px); }
69-
50% { transform: translate(-5px, -10px); }
70-
75% { transform: translate(-15px, -5px); }
138+
.image-wrapper::after {
139+
content: "";
140+
position: absolute;
141+
top: 60px; /* Offset for layered effect */
142+
left: -20px; /* Staggered horizontal offset */
143+
width: 30px;
144+
height: 30px;
145+
background-color: #aaa;
146+
clip-path: polygon(0 0, 100% 0, 50% 100%);
147+
z-index: 2;
71148
}
72149

73150
// Flexbox

0 commit comments

Comments
 (0)