JSFiddle - React, Tailwind, and code Playground

by Sergey khorev

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Styled Button</title>
    <style>
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 15vh;
            padding: 0 10px; /* Отступы по бокам для контейнера */
        }
        .profile-card {
            display: flex;
            align-items: center;
            background: #131313;
            padding: 10px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            width: 100%; /* Карточка занимает всю ширину контейнера */
            max-width: calc(100% - 20px); /* Учитываем отступы по бокам */
            box-sizing: border-box; /* Включаем padding и border в ширину элемента */
        }
        .avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #ccc; /* цвет для аватара */
            margin-right: 15px;
        }
        .info {
            display: flex;
            flex-direction: column;
        }
        .username-task {
            font-weight: bold;
            font-size: 14px;
            color: #fff;
        }
        .tokens {
            font-size: 0.9em;
            color: #666;
        }
        .tag {
            margin-left: auto;
            color: #ffffff;
        }
        .styled-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            border: 2px solid #ffffff;
            border-radius: 8px;
            background: transparent;
            color: #ffffff;
            font-size: 16px;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            outline: none;
            transition: background 0.3s, color 0.3s;
        }
       ...