Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI changes #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Binary file added data/space_indian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 44 additions & 43 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
<!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</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;500;600;700;800;900&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="content">
<h1 class="container__content__heading">ISRO 🚀 API</h1>
<p class="container__content__para">
Open Source API for Launched Spacecrafts & Rockets data of ISRO
</p>
<h2 class="container__content__h2">API End-Points</h2>
<ul>
<li>
Spacecrafts:
<img src="data/space_indian.png" alt="PSLV-C49">
<a href="/api/spacecrafts" target="_blank" rel="noopener noreferrer">/api/spacecrafts</a>
</li>
<li>
Launchers:
<img src="https://www.thestatesman.com/wp-content/uploads/2019/07/CHANDRAYAAN-2-1.jpg" alt="CHANDRAYAAN-2">
<a href="/api/launchers" target="_blank" rel="noopener noreferrer">/api/launchers</a>
</li>
<li>
Customer Satellites:
<img src="https://static.toiimg.com/photo/msid-70609128/70609128.jpg" alt="Customer">
<a href="/api/customer_satellites" target="_blank" rel="noopener noreferrer">/api/customer_satellites</a>
</li>
<li>
Centres:
<img src="https://resize.indiatvnews.com/en/resize/newbucket/1200_-/2020/06/isro-gslv-20181114-1593399635.jpg" alt="centers" />
<a href="/api/centres" target="_blank" rel="noopener noreferrer">/api/centres</a>
</li>
</ul>
<hr>
<h3 class="center-text">Contribute at <a href="https://github.com/isro/api">GitHub</a></h3>
</div>
</div>
</body>
</html>
130 changes: 100 additions & 30 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,105 @@
.container {
margin: auto 15%;
}
body {
font-family: "Poppins", "sans-serif";
color: white;
text-align: center;
margin: 0;
background: #121212;
}

.container {
max-width: 90%; /* Increase the max-width for better responsiveness */
margin: 0 auto;
padding: 20px;
border-radius: 10px;
color: white;

.content {
max-width: 650px;
color: #242424;
font-family:
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Open Sans",
"Helvetica Neue",
"sans-serif"
;
}
/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
/* background: #333; */
}

h1, h2, h3 {
font-weight: 600;
padding-bottom: 0.3em;
border-bottom: 1px solid #eaecef;
}
h1,p{
color: white;

li {
padding-bottom: 0.5em;
}
}

.content {
padding: 20px;
color: white;

a {
}

h1, h2, h3 {
font-weight: 600;
padding-bottom: 0.3em;
color: #fff;
}

ul {
display: flex;
flex-wrap: wrap;
justify-content: center; /* Center the list items */
list-style: none;
margin: 0;
padding: 0;
}

li {
padding: 0.5em;
display: flex;
flex-direction: column;
/* background: #222; */
justify-content: center;
align-items: center;
margin: 15px;
min-width: 45%; /* Adjust the minimum width for responsiveness */
border-radius: 10px;
box-shadow: 0px 0px 5px 0px rgba(152, 154, 155, 0.75);
text-align: center;
font-size: 24px;
padding: 15px;
font-weight: 600;
color: #fff;
}

li a {
text-decoration: none;
color: #06b8ee;
}

li:hover {
box-shadow: 0 0 10px 0 rgba(6, 133, 236, 0.75);
}

a {
text-decoration: none;
color: rgb(67, 124, 230);
}
color: #436fe6;
}

.center-text {
text-align: center;
margin-top: 45px;
color: #fff;
}

.container__content__heading,
.container__content__para,
.container__content__h2 {
text-align: center;
font-size: 45px;
color: #ffffff;
}

img {
max-width: 100%; /* Make images responsive within their containers */
max-height: 40vh;
object-fit: contain;
padding: 5px;
margin: 5px;
}

@media (min-width: 768px) {
img {
max-width: 400px; /* Adjust the max-width for larger screens */
}
}