This commit is contained in:
2026-03-09 06:13:04 +05:45
commit 168d71f8c1
2 changed files with 251 additions and 0 deletions

141
css.css Normal file
View File

@@ -0,0 +1,141 @@
body {
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #fff;
font-family: Arial, sans-serif;
min-height: 100vh;
}
.main-card {
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 20px;
backdrop-filter: blur(8px);
box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.section-title {
font-weight: bold;
font-size: 1.2rem;
color: #facc15;
margin-bottom: 15px;
}
.chart-wrapper {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.astro-circle {
position: relative;
width: 520px;
height: 520px;
border-radius: 50%;
border: 4px solid #facc15;
background: radial-gradient(circle, #1e293b 40%, #0f172a 100%);
overflow: hidden;
}
.segment-line {
position: absolute;
width: 2px;
height: 50%;
background: rgba(255,255,255,0.5);
top: 0;
left: 50%;
transform-origin: bottom center;
}
.segment-number {
position: absolute;
font-weight: bold;
color: #fff;
background: rgba(250, 204, 21, 0.15);
border: 1px solid rgba(250, 204, 21, 0.5);
padding: 4px 8px;
border-radius: 20px;
font-size: 14px;
transform: translate(-50%, -50%);
}
.earth-center {
position: absolute;
width: 140px;
height: 140px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
background: #0b1220;
border: 4px solid #38bdf8;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}
.earth-center img {
width: 100%;
height: 100%;
object-fit: cover;
}
.info-box {
min-height: 130px;
border-radius: 15px;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.08);
padding: 20px;
}
.form-label {
color: #e2e8f0;
}
.form-control, .form-select {
background-color: rgba(255,255,255,0.08);
color: #fff;
border: 1px solid rgba(255,255,255,0.15);
}
.form-control:focus, .form-select:focus {
background-color: rgba(255,255,255,0.12);
color: #fff;
box-shadow: none;
border-color: #facc15;
}
.form-control::placeholder {
color: #cbd5e1;
}
.btn-custom {
background: #facc15;
color: #111827;
font-weight: bold;
border: none;
}
.btn-custom:hover {
background: #eab308;
color: #111827;
}
@media (max-width: 768px) {
.astro-circle {
width: 340px;
height: 340px;
}
.earth-center {
width: 95px;
height: 95px;
}
.segment-number {
font-size: 12px;
padding: 3px 6px;
}
}

110
index.php Normal file
View File

@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prajwal's Astro Analysis</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="css.css" rel="stylesheet">
<style>
</style>
</head>
<body>
<div class="container py-5">
<div class="text-center mb-5">
<h1 class="fw-bold text-warning">Prajwal's Astro Analysis</h1>
<p class="text-light">Analyze planetary positioning, nakshatra, and horoscope from selected date, time, and location.</p>
</div>
<div class="main-card p-4 p-md-5">
<div class="row g-4 align-items-start">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-4">
<label class="form-label">Select Date</label>
<input type="date" class="form-control" id="datePicker">
</div>
<div class="col-lg-4">
<label class="form-label">Select Time</label>
<input type="time" class="form-control" id="timePicker">
</div>
<div class="col-lg-4">
<label class="form-label">Select Location</label>
<select class="form-select" id="locationSelector">
<option selected disabled>Choose location</option>
<option>Kathmandu</option>
<option>Pokhara</option>
<option>Lalitpur</option>
<option>Bhaktapur</option>
<option>Biratnagar</option>
<option>Chitwan</option>
<option>Butwal</option>
</select>
</div>
</div>
<button class="btn btn-custom w-100 mt-2">Analyze</button>
</div>
<div class="col-lg-12">
<div class="row g-3 mb-4">
<div class="info-box">
<div class="section-title">Geocentric Positioning of Planets</div>
</div>
<div class="chart-wrapper">
<div class="astro-circle" id="astroCircle">
<div class="earth-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg" alt="Earth">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
const astroCircle = document.getElementById("astroCircle");
const centerX = 260;
const centerY = 260;
const radius = 220;
for (let i = 0; i < 12; i++) {
const angleDeg = i * 30;
const angleRad = (angleDeg - 90) * Math.PI / 180;
// segment lines
const line = document.createElement("div");
line.classList.add("segment-line");
line.style.transform = `translateX(-50%) rotate(${angleDeg}deg)`;
astroCircle.appendChild(line);
// segment number positions
const number = document.createElement("div");
number.classList.add("segment-number");
number.innerText = i + 1;
const numberRadius = radius - 25;
const x = centerX + numberRadius * Math.cos(angleRad);
const y = centerY + numberRadius * Math.sin(angleRad);
number.style.left = `${x}px`;
number.style.top = `${y}px`;
astroCircle.appendChild(number);
}
</script>
</body>
</html>