Skip to content

Commit

Permalink
added background image for earth and resized all planets
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristoGrab committed Feb 9, 2023
1 parent 4d64c12 commit 302dc8d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 49 deletions.
Binary file added public/earth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BrowserRouter, Route, Routes } from "react-router-dom";
import './App.css';
import Navigation from './components/Navigation';
import Viewport from './components/Viewport';
import InfoCard from "./components/InfoCard";
Expand Down
19 changes: 10 additions & 9 deletions src/components/Planet/Planet.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
.earth {
height: 360px;
width: 360px;
background: blue;
background-image: url('../../../public/earth.png');
background-position: 270px 450px;
}

.mars {
Expand All @@ -35,26 +36,26 @@
}

.jupiter {
height: 500px;
width: 500px;
height: 460px;
width: 460px;
background: linear-gradient(to top right, black, white, orange);
}

.saturn {
height: 500px;
width: 500px;
height: 445px;
width: 445px;
background: red;
}

.uranus {
height: 500px;
width: 500px;
height: 425px;
width: 425px;
background: red;
}

.neptune {
height: 500px;
width: 500px;
height: 400px;
width: 400px;
background: red;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Viewport/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Viewport = () => {

return (
<div className="main-page-container">
<div className="title">Solarium v0.3</div>
<div className="title">Solarium v0.4</div>
<div className="creator">Made by Christo Grabowski</div>
<Sun />
</div>
Expand Down

0 comments on commit 302dc8d

Please sign in to comment.