Skip to content

Commit

Permalink
Create tiles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardik-S authored Nov 14, 2024
1 parent ad9654a commit 9fb6130
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions css/tiles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/* tiles.css */
.tile-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}

.tile {
perspective: 1000px;
cursor: pointer;
}

.tile-inner {
position: relative;
width: 100%;
height: 150px;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
}

.tile:hover .tile-inner {
transform: rotateY(180deg);
}

.tile-front, .tile-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
font-weight: bold;
border-radius: 8px;
padding: 1rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tile-front {
background-color: #6ea727;
color: white;
}

.tile-back {
background-color: #3e4d42;
color: #fff;
transform: rotateY(180deg);
}

0 comments on commit 9fb6130

Please sign in to comment.