JSFiddle - React, Tailwind, and code Playground
by dshilkret
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document Tile</title>
<style>
.tile-container {
width: 150px;
height: 200px;
padding: 0;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
background: white;
font-family: Arial, sans-serif;
overflow: hidden;
}
.tile-header {
width: 100%;
background-color: #f2f2f2;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.tile-icon {
width: 30px;
height: 30px;
}
.tile-body {
width: 100%;
background-color: white;
padding: 10px;
text-align: center;
flex-grow: 1;
}
.tile-title {
font-size: 14px;
color: teal;
font-weight: bold;
}
</style>
</head>
<body>
<div class="tile-container">
<div class="tile-header">
<img src="file-icon.png" alt="File Icon" class="tile-icon">
</div>
<div class="tile-body">
<div class="tile-title">DocInt List SP Client</div>
</div>
</div>
</body>
</html>