Minimalist 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>Minimalist Friends Suggestions</title> <style> body { font-family: 'Arial', sans-serif; background: #f7f7f7; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; color: #333; } .suggestions-container { background: #fff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 350px; overflow: hidden; border: 1px solid #ddd; } .suggestions-header { background: #007bff; color: #fff; padding: 20px; text-align: center; font-size: 1.2em; font-weight: bold; } .friend-card { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #eee; transition: background 0.3s; } .friend-card:hover { background: #f0f0f0; } .friend-card img { border-radius: 50%; width: 40px; height: 40px; margin-right: 10px; } .friend-info { flex: 1; } .friend-info h4 { margin: 0; font-size: 1em; color: #333; } .friend-info p { margin: 5px 0 0; color: #777; font-size: 0.85em; } .add-friend-btn { background: #007bff; border: none; color: #fff; padding: 5px 10px; border-radius: 20px; cursor: pointer; transition: background 0.3s, transform 0.3s; display: flex; align-items: center; font-size: 0.85em; } .add-friend-btn:hover { background: #0056b3; transform: scale(1.05); } .add-friend-btn i { margin-right: 5px; font-size: 1em; } </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/13.jpg" alt="Friend 1"> <div class="friend-info"> <h4>John Doe</h4> <p>2 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/14.jpg" alt="Friend 2"> <div class="friend-info"> <h4>Jane Smith</h4> <p>4 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/15.jpg" alt="Friend 3"> <div class="friend-info"> <h4>Michael Johnson</h4> <p>3 mutual friends</p> </div> <button class="add-friend-btn"><i class="fas fa-user-plus"></i> Add</button> </div> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>