Activity 7
Activity 7
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Profile Card</title>
<style>
body {
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
.card {
width: 320px;
background-color: white;
border-radius: 15px;
overflow: hidden;
padding: 10px;
margin: 20px;
text-align: center;
}
.profile-image {
background-color: #4CAF50;
padding: 20px;
border-radius: 10px;
margin-bottom: 10px;
.profile-image img {
border-radius: 50%;
width: 100px;
height: 100px;
.info-section {
padding: 15px;
border-radius: 10px;
margin-bottom: 10px;
.name {
background-color: #2196F3;
color: white;
.description {
background-color: #FFEB3B;
.contact {
background-color: #9C27B0;
color: white;
.social {
background-color: #FF5722;
display: flex;
justify-content: center;
gap: 10px;
padding: 10px;
border-radius: 10px;
.social-btn {
background-color: white;
border: none;
color: #FF5722;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
.social-btn:hover {
background-color: #FFC107;
color: white;
}
</style>
</head>
<body>
<div class="card">
<div class="profile-image">
<img
src="https://th.bing.com/th/id/OIP.sbRjMD2zaP12rWg1bR1PDAHaHa?rs=1&pid=ImgDetMain"
alt="Profile Image">
</div>
<h2>John Doe</h2>
</div>
<p>Passionate about creating innovative web solutions that enhance user experience and
functionality. Experienced in HTML, CSS, JavaScript, and responsive design.</p>
</div>
<p>Email: [email protected]</p>
</div>
</div>
</div>
<script>
document.querySelector('.twitter').addEventListener('click', function() {
window.open('https://twitter.com/', '_blank');
});
document.querySelector('.linkedin').addEventListener('click', function() {
window.open('https://linkedin.com/', '_blank');
});
</script>
</body>
</html>