diff --git a/.env.demo b/.env.demo index 5b99ff8..171c6ce 100644 --- a/.env.demo +++ b/.env.demo @@ -6,4 +6,4 @@ VITE_PUBLIC_KEY= # Environment Variables for NASA API call. -VITE_API_KEY= \ No newline at end of file +VITE_API_KEY=DEMO_KEY # use Demo Key only for development. \ No newline at end of file diff --git a/README.md b/README.md index b490d8e..1c2369b 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,16 @@ npm install ``` -4. **Start the Server:** Start the server: +4. **Add Environment Variables:** Create a `.env` file and add Environment Variables as mentioned in `.env.demo` file. + + +5. **Start the Server:** Start the server: ```bash npm run dev ``` -5. **Local Host:** Access the project on your local host at: +6. **Local Host:** Access the project on your local host at: ```bash http://localhost:5173/ diff --git a/src/App.css b/src/App.css index a7580fd..d112885 100644 --- a/src/App.css +++ b/src/App.css @@ -13,6 +13,7 @@ -webkit-text-fill-color: transparent; font-size: 4rem; font-weight: bold; + border-top: 20dvh solid transparent; } .ip { @@ -28,7 +29,6 @@ justify-content: center; outline:none; border: none; - /* background-color: red; */ } .date_input { @@ -113,7 +113,7 @@ border-style: solid; border-width: 1px; display: flex; - justify-content: center; + justify-content: space-evenly; align-items: center; } @@ -466,3 +466,22 @@ color: inherit; cursor: pointer; } + +#close-btn{ + position: relative; + bottom: 250px; +} +#close-btn button{ + padding: 5px 15px; + font-size: 1rem; + border-radius: 10px; + font-weight: bold; + color: #40019a; + border: none; +} + +#close-btn button:hover{ + color: white; + background: #40019a; + box-shadow: 0 0 10px white; +} \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 4954ce5..43ae695 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -4,9 +4,11 @@ import Navbar from './components/Navbar/Navbar.jsx' import Footer from './components/Footer/Footer.jsx' import Toast from "./components/Toast/Toast.jsx" import BackGround from './components/BackGround/BackGround.jsx' +import ScrollToTop from './components/ScrollToTop/ScrollToTop.jsx' import PreLoader from './components/PreLoader/PreLoader.jsx' import { useState } from 'react' + function App() { const [isPreLoading, setIsPreLoading] = useState(true) @@ -18,6 +20,7 @@ function App() { +