Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 56 additions & 43 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ISRO-API</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<div class="content">
<h1>ISRO 🚀 API</h1>
<p>Open Source API for Launched Spacecrafts & Rockets data of ISRO</p>
<h2>API End-Points</h2>
<ul>
<li>
Spacecrafts:
<a href="/api/spacecrafts" target="_blank" rel="noopener" rel="noreferrer">
/api/spacecrafts
</a>
</li>
<li>
Launchers:
<a href="/api/launchers" target="_blank" rel="noopener" rel="noreferrer">
/api/launchers
</a>
</li>
<li>
Customer Satellites:
<a href="/api/customer_satellites" target="_blank" rel="noopener" rel="noreferrer">
/api/customer_satellites
</a>
</li>
<li>
Centres:
<a href="/api/centres" target="_blank" rel="noopener" rel="noreferrer">
/api/centres
</a>
</li>
</ul>
<hr/>
<h3>Contribute at <a href="https://github.com/isro/api">GitHub</a></h3>
</div>
</div>
</body>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ISRO API - Explore Space Data</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<header class="header">
<h1>ISRO 🚀 API</h1>
<p>Your gateway to ISRO's space exploration data</p>
</header>
<main class="container">
<section class="api-endpoints">
<h2>API End-Points</h2>
<ul>
<li>
<strong>Spacecrafts:</strong>
<a href="/api/spacecrafts" target="_blank" rel="noreferrer">
/api/spacecrafts
</a>
</li>
<li>
<strong>Launchers:</strong>
<a href="/api/launchers" target="_blank" rel="noopener noreferrer">
/api/launchers
</a>
</li>
<li>
<strong>Customer Satellites:</strong>
<a href="/api/customer_satellites" target="_blank" rel="noopener noreferrer">
/api/customer_satellites
</a>
</li>
<li>
<strong>Centres:</strong>
<a href="/api/centres" target="_blank" rel="noopener noreferrer">
/api/centres
</a>
</li>
</ul>
</section>
<hr>
<section class="contribute">
<h3>Contribute</h3>
<p>Join the community and contribute to this open-source project:</p>
<a href="https://github.com/isro/api" target="_blank" class="button">View on GitHub</a>
</section>
</main>
<footer class="footer">
<p>&copy; <span id="currentYear"></span> ISRO API. Built by Space Enthusiasts.</p>
</footer>
<script>
// Fetch the current year and display it in the footer
document.getElementById('currentYear').textContent = new Date().getFullYear();
</script>
</body>
</html>
136 changes: 112 additions & 24 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,123 @@
.container {
margin: auto 15%;
body {
margin: 0;
padding: 0;
font-family: 'Roboto', 'Helvetica Neue', sans-serif;
color: #eaeaea;
background-color: #121212;
line-height: 1.6;
}

.content {
max-width: 650px;
color: #242424;
font-family:
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Open Sans",
"Helvetica Neue",
"sans-serif"
;

.header {
text-align: center;
padding: 2em 1em;
background: linear-gradient(135deg, #2a024b, #4a0c78);
color: #ffffff;
}

h1, h2, h3 {
font-weight: 600;
padding-bottom: 0.3em;
border-bottom: 1px solid #eaecef;
.header h1 {
font-size: 2.5rem;
margin-bottom: 0.5em;
}

li {
.header p {
font-size: 1.2rem;
margin: 0;
color: #d1c4e9;
}


.container {
max-width: 800px;
margin: 2em auto;
padding: 0 1em;
}


.api-endpoints h2 {
font-size: 1.8rem;
margin-bottom: 1em;
color: #eaeaea;
border-bottom: 2px solid #4a0c78;
padding-bottom: 0.5em;
}

a {
.api-endpoints ul {
list-style: none;
padding: 0;
}

.api-endpoints li {
margin: 0.5em 0;
padding: 0.5em;
border: 1px solid #333333;
border-radius: 5px;
background: #1e1e1e;
transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.api-endpoints li:hover {
box-shadow: 0 4px 15px rgba(74, 12, 120, 0.5);
transform: scale(1.02);
}

.api-endpoints a {
color: #b388ff;
text-decoration: none;
font-weight: bold;
}

.api-endpoints a:hover {
color: #d1c4e9;
text-decoration: underline;
}


.contribute {
text-align: center;
margin: 2em 0;
}

.contribute .button {
display: inline-block;
background: #4a0c78;
color: #ffffff;
padding: 0.8em 1.5em;
text-decoration: none;
color: rgb(67, 124, 230);
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.contribute .button:hover {
background: #b388ff;
transform: translateY(-3px);
}


.footer {
text-align: center;
padding: 1em;
background-color: #1e1e1e;
color: #b388ff;
font-size: 0.9rem;
}


@media (max-width: 768px) {
.header h1 {
font-size: 2rem;
}

.header p {
font-size: 1rem;
}

.api-endpoints h2 {
font-size: 1.5rem;
}

.container {
padding: 0 0.5em;
}
}