<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Info Card Buttons</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="card-container">
<div class="card blog">
<h2>Codezillaye</h2>
<h4>Blog Writer</h4>
<p>Codezillaye is a passionate blogger who writes about tech and lifestyle.</p>
<button class="btn">Read More</button>
</div>
<div class="card news">
<h2>Codezillaye</h2>
<h4>News Reporter</h4>
<p>Codezillaye covers the latest news from around the world.</p>
<button class="btn">Read More</button>
</div>
<div class="card educational">
<h2>Codezillaye</h2>
<h4>Educational Consultant</h4>
<p>Codezillaye provides expert advice on educational resources and methods.</p>
<button class="btn">Read More</button>
</div>
<div class="card healthy">
<h2>Codezillaye</h2>
<h4>Health Coach</h4>
<p>Codezillaye offers tips and guidance on maintaining a healthy lifestyle.</p>
<button class="btn">Read More</button>
</div>
<div class="card political">
<h2>Codezillaye</h2>
<h4>Political Analyst</h4>
<p>Laura analyzes and reports on the latest political events.</p>
<button class="btn">Read More</button>
</div>
<div class="card technology">
<h2>Codezillaye</h2>
<h4>Tech Enthusiast</h4>
<p>Codezillaye explores and reviews the latest advancements in technology.</p>
<button class="btn">Read More</button>
</div>
</div>
</body>
</html>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 250px;
padding: 20px;
text-align: center;
transition: transform 0.2s;
}
.card:hover {
transform: translateY(-10px);
}
h2 {
margin: 0;
font-size: 24px;
color: #333;
}
h4 {
margin: 10px 0;
font-size: 18px;
color: #777;
}
p {
font-size: 14px;
color: #555;
}
.btn {
padding: 10px 20px;
margin-top: 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
color: #fff;
transition: background-color 0.3s ease;
}
.blog {
border-left: 5px solid #ff6f61;
}
.blog .btn {
background-color: #ff6f61;
}
.blog .btn:hover {
background-color: #e65c54;
}
.news {
border-left: 5px solid #4a90e2;
}
.news .btn {
background-color: #4a90e2;
}
.news .btn:hover {
background-color: #3b78c2;
}
.educational {
border-left: 5px solid #50e3c2;
}
.educational .btn {
background-color: #50e3c2;
}
.educational .btn:hover {
background-color: #3ec9a5;
}
.healthy {
border-left: 5px solid #7ed321;
}
.healthy .btn {
background-color: #7ed321;
}
.healthy .btn:hover {
background-color: #68b21b;
}
.political {
border-left: 5px solid #f5a623;
}
.political .btn {
background-color: #f5a623;
}
.political .btn:hover {
background-color: #d68e1d;
}
.technology {
border-left: 5px solid #9013fe;
}
.technology .btn {
background-color: #9013fe;
}
.technology .btn:hover {
background-color: #9013fe0f}