From 523d71a762ee8e0af583b8b61110109bc257fe79 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Wed, 5 Jun 2024 06:54:11 +0000 Subject: [PATCH] Fix styles --- src/App.css | 80 ++++++++++++++++++++++++++++++++++------------------- src/App.js | 22 +++++++++++---- 2 files changed, 68 insertions(+), 34 deletions(-) diff --git a/src/App.css b/src/App.css index 9e22dcd..b8353fb 100644 --- a/src/App.css +++ b/src/App.css @@ -57,7 +57,7 @@ a:hover { } .promoBanner { - background-image: url(/images/background.svg), linear-gradient(45deg, #009688, #4db6ac)!important; + background-image: url(../public/images/background.svg), linear-gradient(45deg, #009688, #4db6ac) !important; background-repeat: repeat; background-size: 3.5rem, 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%); @@ -73,56 +73,78 @@ a:hover { /* -------------------------------------------------------------------------- */ .headerTitle { - background-color: transparent; - color: #FFFFFF; - font-weight: 600; + background-color: transparent; + color: #FFFFFF; + font-weight: 600; } .meetTheTeam ul { - list-style: none; - padding-left: 0; + list-style: none; + padding-left: 0; } .meetTheTeam ul img { - border-radius: 15%; - height: 48px; - width: 48px; + border-radius: 15%; + height: 48px; + width: 48px; } .meetTheTeam ul { - list-style: none; - padding-left: 0; + list-style: none; + padding-left: 0; } .meetTheTeam ul li { - margin-bottom: 3px; + margin-bottom: 3px; } .meetTheTeam ul li img { - margin-right: 15px; - border-radius: 48px; + margin-right: 15px; + border-radius: 48px; } .meetTheTeam ul code { - background-color: #e83e8c; - color: #FFFFFF; - font-family: inherit; - padding: 0.2rem 0.5rem; - position: relative; - margin-left: 6px; - display: inline-block; + background-color: #e83e8c; + color: #FFFFFF; + font-family: inherit; + padding: 0.2rem 0.5rem; + position: relative; + margin-left: 6px; + display: inline-block; } .meetTheTeam ul code:before { - content: ''; - border-right: 3px solid #E83E8C; - border-bottom: 3px solid transparent; - border-top: 3px solid transparent; - position: absolute; - top: calc(50% - 2px); - left: -3px; + content: ''; + border-right: 3px solid #E83E8C; + border-bottom: 3px solid transparent; + border-top: 3px solid transparent; + position: absolute; + top: calc(50% - 2px); + left: -3px; } .meetTheTeam h3 { - margin-bottom: 1rem; + margin-bottom: 1rem; } + +.navbar { + display: flex; + justify-content: center; + width: fit-content; + + .nav-button { + border-radius: 22px; + padding-left: 8px; + padding-right: 8px; + + > a { + color: white; + display: flex; + gap: 8px; + > img { + filter: invert(1); + } + } + } +} + diff --git a/src/App.js b/src/App.js index 64df6b5..1057cb0 100644 --- a/src/App.js +++ b/src/App.js @@ -25,7 +25,7 @@ function Members () { } return ( -
+

Main projects

  • Minecraft data : Language independent module providing minecraft data for minecraft clients, servers and libraries.
  • @@ -69,6 +69,17 @@ function Members () { ) } +function NavEntry ({ name, link, image }) { + return ( +
  • + + + {name} + +
  • + ) +} + export function App () { const [backgroundPosition, setBackgroundPosition] = useState('0 0, 0 0') @@ -85,17 +96,18 @@ export function App () { PrismarineJS -
    +

    PrismarineJS

    -

    Minecraft-compatible server, bot, and API. All written in JavaScript.

    +

    Minecraft-compatible server, bot, and API. All written in JavaScript.

    -
    +