JSFiddle - React, Tailwind, and code Playground

by codemeasandwich

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Browser Mockup</title>
    <style>
        body {
            background-color: #50c4b7;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            font-family: Arial, sans-serif;
        }

        .browser {
            width: 800px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .browser-header {
            height: 20px;
            background-color: #f1f1f1;
            display: flex;
            align-items: center;
            padding: 0 10px;
            box-sizing: border-box;
            justify-content: space-between;
        }

        .browser-header .title-bar {
            display: flex;
            align-items: center;
            flex-grow: 1;
            justify-content: center;
            font-size: 12px;
            color: #555;
        }

        .browser-header .buttons {
            display: flex;
            gap: 8px;
        }

        .browser-header .button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .button-red {
            background-color: #ff5f57;
        }

        .button-yellow {
            background-color: #ffbd2e;
        }

        .button-green {
            background-color: #28c840;
        }

        .browser-toolbar {
            height: 40px;
            background-color: #f1f1f1;
            display: flex;
            align-items: center;
            padding: 0 10px;
            box-sizing: border-box;
        }

        .browser-toolbar .nav-buttons {
            display: flex;
            gap: 10px;
            margin-right: 20px;
        }

        .nav-button {
            width:...