Social Media Friends Suggestions - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Social Media Friends Suggestions</title> <style> body { font-family: 'Arial', sans-serif; background: #f0f2f5; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .suggestions-container { background: #fff; border-radius: 15px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); width: 400px; overflow: hidden; position: relative; } .suggestions-header { background: linear-gradient(135deg, #6e8efb, #a777e3); color: #fff; padding: 20px; text-align: center; font-size: 1.5em; position: relative; } .suggestions-header::after { content: '🌟'; position: absolute; font-size: 2em; right: 20px; top: 20px; animation: rotateStar 3s linear infinite; } @keyframes rotateStar { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .friend-card { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; transition: background 0.3s; } .friend-card:hover { background: #f9f9f9; } .friend-card img { border-radius: 50%; width: 50px; height: 50px; margin-right: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .friend-info { flex: 1; } .friend-info h4 { margin: 0; font-size: 1.2em; color: #333; } .friend-info p { margin: 5px 0 0; color: #777; font-size: 0.9em; } .add-friend-btn { background: #6e8efb; border: none; color: #fff; padding: 8px 15px; border-radius: 50px; cursor: pointer; transition: background 0.3s, transform 0.3s; display: flex; align-items: center; } .add-friend-btn:hover { background: #a777e3; transform: scale(1.05); } .add-friend-btn i { margin-right: 8px; font-size: 1.2em; } .emoji-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5em; opacity: 0.1; animation: floatEmoji 5s ease-in-out infinite; } @keyframes floatEmoji { 0% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-20px); } 100% { transform: translate(-50%, -50%) translateY(0); } } </style> </head> <body> <div class="suggestions-container"> <div class="suggestions-header"> Friends Suggestions </div> <div class="friend-card"> <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Friend 1"> <div class="friend-info"> <h4>John Doe</h4> <p>3 mutual friends</p> </div> <button class="add-friend-btn"><i class="fas fa-user-plus"></i> Add</button> </div> <div class="friend-card"> <img src="https://randomuser.me/api/portraits/women/2.jpg" alt="Friend 2"> <div class="friend-info"> <h4>Jane Smith</h4> <p>5 mutual friends</p> </div> <button class="add-friend-btn"><i class="fas fa-user-plus"></i> Add</button> </div> <div class="friend-card"> <img src="https://randomuser.me/api/portraits/men/3.jpg" alt="Friend 3"> <div class="friend-info"> <h4>Michael Brown</h4> <p>2 mutual friends</p> </div> <button class="add-friend-btn"><i class="fas fa-user-plus"></i> Add</button> </div> <div class="emoji-bg">😊</div> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>