Friday

so today i made a tiktok style back screen

this is my html i asked ai how to make something like this

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PC Style TikTok</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="video-container">
    <video class="video" src="video1.mp4" autoplay loop muted></video>

    <div class="overlay"></div>

    <div class="sidebar">
        <div>❤️</div>
        <div>💬</div>
        <div>🔗</div>
    </div>

    <div class="bottom-info">
        <h3>@blackscreenuser193</h3>
        <p>TikTok caption</p>
        <p class="sound">🎵 Original Sound - User</p>
    </div>
    <div class="search-container">
    <input class="search-box" type="text" placeholder="Search videos, users...">
</div>
</div>
</body>
</html>

and more my styles i had ai to help me alot


    body {
        margin: 0;
        background: #000;
        font-family: Arial, sans-serif;
        overflow: hidden;
    }

    .video-container {
        position: relative;
        height: 100vh;
        width: 100vw;
    }

    .video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }


    .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        pointer-events: none;
    }

    .sidebar {
        position: absolute;
        right: 25px;
        bottom: 150px;
        color: white;
        font-size: 32px;
        text-align: center;
        line-height: 55px;
        cursor: pointer;
    }

    .sidebar div:hover {
        transform: scale(1.2);
        transition: 0.2s;
    }

    .bottom-info {
        position: absolute;
        bottom: 30px;
        left: 20px;
        color: white;
        font-size: 18px;
    }

    .bottom-info h3 {
        margin: 0;
        font-size: 20px;
    }

    .sound {
        opacity: 0.8;
        font-size: 14px;
    }


.search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: #1a1a1a;
    color: white;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.search-box::placeholder {
    color: #888;
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top