crawler / ui /style.css
cruelface's picture
Deploy web crawler
0dd9d3c
Raw History Blame Contribute Delete
5.52 kB
:root {
--bg-color: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--accent: #3b82f6;
--accent-hover: #2563eb;
--danger: #ef4444;
--danger-hover: #dc2626;
--success: #10b981;
--warning: #f59e0b;
--border: rgba(255, 255, 255, 0.1);
color-scheme: dark;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-color);
background-image: radial-gradient(circle at top right, #1e3a8a 0%, transparent 40%),
radial-gradient(circle at bottom left, #0f172a 0%, transparent 40%);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
}
.app-container {
max-width: 1000px;
margin: 0 auto;
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
}
.app-header {
text-align: center;
margin-bottom: 20px;
}
.app-header h1 {
font-weight: 700;
font-size: 24px;
background: linear-gradient(to right, #60a5fa, #a78bfa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.tab-btn {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 10px 20px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
position: relative;
}
.tab-btn.active {
color: var(--accent);
border-bottom: 2px solid var(--accent);
}
.tab-btn:hover:not(.active) {
color: var(--text-primary);
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
border-radius: 10px;
padding: 0 6px;
font-size: 12px;
font-weight: 700;
margin-left: 8px;
color: #fff;
background: var(--danger);
}
.badge.hidden {
display: none;
}
.badge.success {
background: var(--success);
}
.tab-content {
display: none;
flex: 1;
flex-direction: column;
overflow: hidden;
gap: 20px;
}
.tab-content.active {
display: flex;
}
.glass {
background: var(--card-bg);
backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
}
.input-group {
margin-bottom: 15px;
}
.input-group.row {
display: flex;
gap: 15px;
}
.input-group.row .col {
flex: 1;
}
label {
display: block;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}
input, select {
width: 100%;
padding: 12px;
border-radius: 8px;
border: 1px solid var(--border);
background: #1e293b;
color: var(--text-primary);
font-family: inherit;
font-size: 14px;
transition: all 0.3s;
appearance: none;
-webkit-appearance: none;
}
select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 16px;
padding-right: 40px;
}
input:focus, select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
option {
background-color: #1e293b;
color: var(--text-primary);
}
.actions {
display: flex;
gap: 10px;
margin-top: 20px;
}
.btn {
padding: 10px 24px;
border-radius: 8px;
border: none;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background: var(--accent);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.btn-danger {
background: var(--danger);
color: white;
}
.btn-danger:hover:not(:disabled) {
background: var(--danger-hover);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.status-panel {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.status-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 14px;
font-weight: 500;
}
.progress-bar-container {
height: 6px;
background: rgba(255,255,255,0.1);
border-radius: 3px;
margin-bottom: 15px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: var(--accent);
width: 0%;
transition: width 0.3s;
}
.log-container {
flex: 1;
overflow-y: auto;
font-family: monospace;
font-size: 13px;
background: rgba(0,0,0,0.3);
border-radius: 8px;
padding: 10px;
border: 1px solid var(--border);
white-space: pre-wrap;
word-break: break-all;
user-select: text;
-webkit-user-select: text;
}
.info-card {
flex: none;
}
.search-results-panel {
flex: 1;
}
.result-item {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.result-title {
color: var(--accent);
font-weight: 600;
margin-bottom: 5px;
}
.result-url {
color: var(--success);
font-size: 12px;
margin-bottom: 5px;
}
a.result-url {
text-decoration: none;
display: inline-block;
}
a.result-url:hover {
text-decoration: underline;
}
.result-snippet {
color: var(--text-secondary);
}