diff --git a/assets/spaceships/spaceship.png b/assets/spaceships/spaceship.png index acc67df..304c958 100644 Binary files a/assets/spaceships/spaceship.png and b/assets/spaceships/spaceship.png differ diff --git a/css/ship.css b/css/ship.css index a257d18..4015026 100644 --- a/css/ship.css +++ b/css/ship.css @@ -7,16 +7,14 @@ } .block-ships{ display:flex; - justify-content: center; - align-items: center; + flex-direction: column; color: white; font-size:large; -} -.ships{ - display: flex; - flex-direction: column; - flex-wrap: wrap; text-align: center; + padding-top: 80px; + max-width: 1000px; + position: relative; + margin: auto; } button{ color: white; @@ -34,6 +32,7 @@ button:hover{ background-color:aqua ; transition: 1s; } + .ships>*{ flex: 100px; } @@ -43,4 +42,46 @@ button:hover{ body{ background-image: url("/assets/spaceships/hangar.png"); background-size: cover; +} + +.ships-list { + display: none; +} + +/* Next & previous buttons */ +.prev, .next { + cursor: pointer; + position: absolute; + top: 50%; + width: auto; + margin-top: -22px; + padding: 16px; + color: white; + font-weight: bold; + font-size: 18px; + transition: 0.6s ease; + border-radius: 0 3px 3px 0; + user-select: none; +} + +/* Position the "next button" to the right */ +.next { + right: 0; + border-radius: 3px 0 0 3px; +} + +/* On hover, add a black background color with a little bit see-through */ +.prev:hover, .next:hover { + background-color: rgba(0,0,0,0.8); +} + +/* Fading animation */ +.fade { + animation-name: fade; + animation-duration: 1.5s; +} + +@keyframes fade { + from {opacity: .4} + to {opacity: 1} } \ No newline at end of file diff --git a/html/templates/ship/ship.html b/html/templates/ship/ship.html index 98c2dec..1a406af 100644 --- a/html/templates/ship/ship.html +++ b/html/templates/ship/ship.html @@ -4,14 +4,16 @@ + + +