214 lines
7.1 KiB
HTML
214 lines
7.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Page Enter Configuration</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 42rem;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.header svg {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
color: #d97706;
|
|
animation: spin 8s linear infinite;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.875rem;
|
|
font-weight: bold;
|
|
color: #92400e;
|
|
}
|
|
|
|
.form-container {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
backdrop-filter: blur(8px);
|
|
border-radius: 1rem;
|
|
box-shadow: 0 4px 6px rgba(217, 119, 6, 0.1);
|
|
padding: 2rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-container:hover {
|
|
box-shadow: 0 8px 12px rgba(217, 119, 6, 0.15);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: #92400e;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid #fbbf24;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
outline: none;
|
|
border-color: #d97706;
|
|
box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
background-color: #d97706;
|
|
color: white;
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #b45309;
|
|
}
|
|
|
|
.particles {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.particle {
|
|
position: absolute;
|
|
color: #fbbf24;
|
|
opacity: 0.3;
|
|
animation: float 5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translateY(0) rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: translateY(-20px) rotate(10deg);
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="particles" id="particles"></div>
|
|
|
|
<div class="container">
|
|
<div class="header">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/>
|
|
<circle cx="12" cy="12" r="3"/>
|
|
</svg>
|
|
<h1>Page Enter Configuration</h1>
|
|
</div>
|
|
|
|
<div class="form-container">
|
|
<form id="configForm">
|
|
<div class="form-group">
|
|
<label for="pageApi">Page Enter Api</label>
|
|
<input type="text" id="pageApi" placeholder="Enter page api configuration">
|
|
</div>
|
|
|
|
<button type="submit" id="save-button">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/>
|
|
<polyline points="17 21 17 13 7 13 7 21"/>
|
|
<polyline points="7 3 7 8 15 8"/>
|
|
</svg>
|
|
Save Configuration
|
|
</button>
|
|
</form>
|
|
<div id="save-result"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Create floating particles
|
|
function createParticles() {
|
|
const particles = document.getElementById('particles');
|
|
const particleCount = 20;
|
|
|
|
for (let i = 0; i < particleCount; i++) {
|
|
const particle = document.createElement('div');
|
|
particle.className = 'particle';
|
|
particle.innerHTML = `
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/>
|
|
<path d="M5 3v4"/>
|
|
<path d="M19 17v4"/>
|
|
<path d="M3 5h4"/>
|
|
<path d="M17 19h4"/>
|
|
</svg>
|
|
`;
|
|
|
|
const size = 10 + Math.random() * 20;
|
|
particle.style.width = `${size}px`;
|
|
particle.style.height = `${size}px`;
|
|
|
|
particle.style.left = `${Math.random() * 100}%`;
|
|
particle.style.top = `${Math.random() * 100}%`;
|
|
particle.style.animationDuration = `${5 + Math.random() * 5}s`;
|
|
particle.style.animationDelay = `${Math.random() * 5}s`;
|
|
|
|
particles.appendChild(particle);
|
|
}
|
|
}
|
|
|
|
// Initialize particles
|
|
createParticles();
|
|
|
|
// Form handling
|
|
|
|
</script>
|
|
<script src="./main.js" type="module"></script>
|
|
</body>
|
|
</html> |