feat: Add BentoGrid component to display personal interests on the About page and update Home page text and added framer animations

This commit is contained in:
2026-01-19 22:24:44 -06:00
parent 0054d35234
commit febe971d0c
4 changed files with 255 additions and 23 deletions

View File

@@ -0,0 +1,137 @@
.bento-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 250px);
gap: 20px;
width: 100%;
max-width: 1200px;
margin: 40px auto;
padding: 0 20px;
box-sizing: border-box;
}
.bento-item {
position: relative;
background: rgba(255, 255, 255, 0.05);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.1);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
justify-content: flex-end;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.bento-item:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
border-color: rgba(255, 255, 255, 0.2);
z-index: 10;
}
/* Background Image styling */
.bento-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
z-index: 1;
opacity: 0.6;
}
.bento-item:hover .bento-bg {
transform: scale(1.1);
opacity: 0.8;
}
/* Overlay gradient for readability */
.bento-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
z-index: 2;
}
.bento-content {
position: relative;
z-index: 3;
padding: 25px;
color: white;
}
.bento-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 8px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.bento-description {
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.85);
line-height: 1.4;
margin: 0;
}
/* Specific Item Spans */
.bento-large {
grid-column: span 2;
grid-row: span 2;
}
.bento-wide {
grid-column: span 2;
}
.bento-tall {
grid-row: span 2;
}
/* Responsive adjustments */
@media (max-width: 900px) {
.bento-grid-container {
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: 250px;
/* Use auto-rows to handle flexible height */
}
.bento-large {
grid-column: span 2;
grid-row: span 1;
/* Reset to standard height on tablet if needed, or keep tall */
}
.bento-tall {
grid-row: span 1;
}
}
@media (max-width: 600px) {
.bento-grid-container {
grid-template-columns: 1fr;
grid-template-rows: auto;
display: flex;
flex-direction: column;
height: auto;
}
.bento-item {
min-height: 250px;
}
.bento-large,
.bento-wide,
.bento-tall {
grid-column: span 1;
grid-row: span 1;
}
}