JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>selene.ext</title>
<style>
.hidden {
display: none;
}
.draggable {
position: absolute;
z-index: 9999;
cursor: move;
}
#popup {
position: fixed;
top: 50%;
left: 20%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.5);
border: 1px solid #ddd;
border-radius: 3px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
opacity: 1;
}
.popup-content {
text-align: center;
}
.popup-content h2 {
font-size: 15px;
margin-bottom: 15px;
color: #fff;
}
.popup-content input {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 4px;
}
.popup-content button {
padding: 10px 20px;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
#promptsPopup {
position: fixed;
top: 50%;
right: 20px;
transform: translate(0, -50%);
background-color: rgba(0, 0, 0, 0.8);
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
max-height: 300px;
overflow-y: auto;
z-index: 9999;
}
.prompts-content {
text-align: center;
}
.prompts-content h2 {
font-size: 24px;
margin-bottom: 10px;
color: #fff;
}
.prompts-list-container {
max-height: 200px;
overflow-y: auto;
margin-bottom: 10px;
}
.prompts-content ul {
list-style: none;
padding: 0;
margin: 0;
}
.prompts-content li {
font-size: 16px;
margin-bottom: 10px;
color: #fff;
}
.prompts-content button {
padding: 5px 10px;
color: #fff;
border: none;
border-radius: 4px;
...