JSFiddle - React, Tailwind, and code Playground

by the wazz

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Demo Fokus</title>
</head>
<body>
    <div class="wrapper">
       <div class="monitor-box">
            <div id="chat1" class="speech-bubble-kiri cht">
                <p class="chat-text">Hai ๐Ÿ‘‹</p>
            </div>
            <div id="chat2" class="speech-bubble-kanan cht">
                <p class="chat-text">Hai juga ๐Ÿฅฐ</p>
            </div>
            <div id="chat3" class="speech-bubble-kiri cht">
                <p class="chat-text">Lagi ngapain?</p>
            </div>
            <div id="chat4" class="speech-bubble-kanan cht">
                <p class="chat-text">Mikirin kamu</p>
            </div>
            <div id="chat5" class="speech-bubble-kiri cht">
                <p class="chat-text">Aww, so sweet ๐Ÿค—๐Ÿ’•</p>
            </div>
            <div class="chat-button">
                <button id="btn-chat">SEND</button>
            </div>
        </div>
    </div>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
    <script src="script.js"></script>
</body>
</html>

CSS

html, body {
    /*background-image: url(https://api.time.com/wp-content/uploads/2020/11/GettyImages-1207834649.jpg);*/
    overflow-y: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}

.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.bg-img {
    position: absolute;
    width: 80%;
}

.monitor-box {
    backdrop-filter: blur(10px);
    width: 720px;
    height: 500px;
    border: 10px solid black;
    border-radius: 20px;
    margin-top: 5%;
}

.chat-text {
    margin-left: 5%;
    padding-top: 4%;
}

.speech-bubble-kiri {
	position: relative;
	background: white;
	border-radius: 20px;
    width: 50%;
    height: 10%;
    margin: 5%;
}

.speech-bubble-kiri:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 0;
	height: 0;
	border: 15px solid transparent;
	border-top-color: white;
	border-bottom: 0;
	border-left: 0;
	margin-left: -7.5px;
	margin-bottom: -15px;
}

.speech-bubble-kanan {
	position: relative;
	background: white;
	border-radius: 20px;
    width: 50%;
    height: 10%;
    margin-left: auto;
    margin-right: 5%;
}

.speech-bubble-kanan:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 90%;
	width: 0;
	height: 0;
	border: 15px solid transparent;
	border-top-color: white;
	border-bottom: 0;
    border-right: 0;
	margin-left: -7.5px;
	margin-bottom: -15px;
}

.chat-button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: -20px;
}

#btn-chat {
    background-color:yellowgreen;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 1.5em;
    cursor: pointer;
    transition: all .2s ease-in-out;
    position: fixed;
}

#btn-chat:hover {
    transform: scale(1.1);
}

.o {
    width: 100%;
    height: 100%;
}

JavaScript

$('.cht').hide();
$('#btn-chat').click(function () {
    $('.cht:hidden:first').show();
});