First commit

This commit is contained in:
Jorge Vargas 2025-03-10 18:11:13 -06:00
commit 5daf2dc6b9
17 changed files with 5649 additions and 0 deletions

176
src/pages/index.astro Normal file
View file

@ -0,0 +1,176 @@
---
import Downloader from '../components/Downloader'
---
<head>
<title>Khinsider Downloader</title>
</head>
<style is:global>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #1a1a1a;
color: #e0e0e0;
}
.search-container {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.search-box {
flex: 1;
padding: 12px;
font-size: 16px;
border: 1px solid #333;
border-radius: 4px;
background-color: #2d2d2d;
color: #e0e0e0;
}
.search-btn {
padding: 12px 24px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s;
}
.search-btn:hover {
background-color: #0056b3;
}
.search-meta {
margin-bottom: 15px;
color: #858585;
font-size: 0.9em;
}
.result-count {
font-weight: 500;
color: #e0e0e0;
}
.loader {
border: 4px solid #333;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.error {
color: #ff6b6b;
padding: 10px;
margin: 10px 0;
border: 1px solid #ff6b6b;
border-radius: 4px;
background-color: #2d0000;
display: none;
}
.results {
background-color: #2d2d2d;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.album {
padding: 15px;
border-bottom: 1px solid #333;
cursor: pointer;
transition: background 0.2s;
}
.album:hover {
background-color: #333;
}
.track {
display: flex;
align-items: center;
padding: 12px 15px;
border-bottom: 1px solid #333;
}
.track-name {
flex: 1;
margin-right: 15px;
color: #e0e0e0;
}
.format-tag {
background-color: #4a4a4a;
color: white;
padding: 3px 8px;
border-radius: 4px;
font-size: 0.85em;
margin-right: 10px;
}
.download-btn {
background-color: #28a745;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s;
}
.download-btn:hover {
background-color: #218838;
}
.back-btn {
background: none;
border: none;
color: #007bff;
cursor: pointer;
padding: 10px 0;
#margin-bottom: 15px;
margin: 0 15px 15px 15px;
display: block;
}
.no-results {
padding: 20px;
text-align: center;
color: #858585;
}
.album-title {
font-weight: 500;
margin-bottom: 4px;
color: #e0e0e0;
}
.album-meta {
display: flex;
gap: 12px;
font-size: 0.9em;
color: #858585;
}
.meta-item {
padding: 2px 8px;
background: #333;
border-radius: 4px;
}
.track-formats {
display: flex;
gap: 8px;
}
.download-btn.flac {
background-color: #6f42c1;
}
.download-btn.flac:hover {
background-color: #563d7c;
}
.results h3 {
padding: 0 15px;
margin: 0 0 15px 0;
font-size: 1.1em;
}
</style>
<body>
<h1>Khinsider Downloader</h1>
<Downloader client:only='react' />
<div class='error'></div>
</body>