|
4 | 4 | display: flex; |
5 | 5 | align-items: center; |
6 | 6 | justify-content: space-between; |
7 | | - background-color: #0a0a0a; /* Futuristic dark background */ |
| 7 | + background-color: #ffffff; /* Clean white background */ |
8 | 8 | 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 */ |
12 | 12 | } |
13 | 13 |
|
14 | 14 | .title-container { |
|
20 | 20 | font-size: 2rem; |
21 | 21 | font-weight: bold; |
22 | 22 | margin: 0; |
| 23 | + color: #333; |
23 | 24 | } |
24 | 25 |
|
25 | 26 | .page-subtitle { |
26 | 27 | font-size: 1rem; |
27 | | - color: #bbb; |
| 28 | + color: #666; |
28 | 29 | margin-top: 5px; |
29 | 30 | } |
30 | 31 |
|
31 | 32 | .image-container { |
32 | 33 | position: relative; |
33 | 34 | 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%; |
36 | 43 | overflow: hidden; |
37 | 44 | } |
38 | 45 |
|
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 { |
40 | 113 | position: relative; |
41 | 114 | width: 100%; |
42 | 115 | height: 100%; |
43 | | - clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10% 60%, 15% 70%, 5% 80%); |
| 116 | + overflow: hidden; |
44 | 117 | } |
45 | 118 |
|
46 | | -.image-effect img { |
| 119 | +.image-wrapper img { |
47 | 120 | width: 100%; |
48 | 121 | height: 100%; |
49 | 122 | object-fit: cover; |
50 | | - filter: contrast(120%) brightness(110%); |
51 | 123 | } |
52 | 124 |
|
53 | | -.image-effect::before { |
| 125 | +/* Pixel-break effect with pseudo-elements */ |
| 126 | +.image-wrapper::before { |
54 | 127 | content: ""; |
55 | 128 | 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" */ |
58 | 131 | width: 50px; |
59 | 132 | 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; |
64 | 136 | } |
65 | 137 |
|
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; |
71 | 148 | } |
72 | 149 |
|
73 | 150 | // Flexbox |
|
0 commit comments