Adjust the top navigation bar so that it is centered above and below

pull/166/head
ran 3 years ago
parent 6f92d61381
commit a2726ae287

@ -165,7 +165,7 @@ export function WelcomeAppBar({pageNumber, setPageNumber, gameInfo, toggleImpres
const [navOpen, setNavOpen] = React.useState(false) const [navOpen, setNavOpen] = React.useState(false)
return <div className="app-bar"> return <div className="app-bar">
<div> <div className='app-bar-left'>
<Button inverted="false" title="back to games selection" to="/"> <Button inverted="false" title="back to games selection" to="/">
<FontAwesomeIcon icon={faArrowLeft} />&nbsp;<FontAwesomeIcon icon={faGlobe} /> <FontAwesomeIcon icon={faArrowLeft} />&nbsp;<FontAwesomeIcon icon={faGlobe} />
</Button> </Button>
@ -237,7 +237,7 @@ export function LevelAppBar({isLoading, levelTitle, toggleImpressum, pageNumber=
</> : </> :
<> <>
{/* DESKTOP VERSION */} {/* DESKTOP VERSION */}
<div> <div className='app-bar-left'>
<HomeButton isDropdown={false} /> <HomeButton isDropdown={false} />
<span className="app-bar-title">{worldTitle && `World: ${worldTitle}`}</span> <span className="app-bar-title">{worldTitle && `World: ${worldTitle}`}</span>
</div> </div>

@ -105,11 +105,17 @@ em {
position: relative; position: relative;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center;
padding: 1.1em; padding: 1.1em;
filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
z-index: 2; z-index: 2;
} }
.app-bar > .app-bar-left{
display: flex;
align-items: center;
}
.app-bar-title, .app-bar-subtitle { .app-bar-title, .app-bar-subtitle {
color: white; color: white;
font-weight: 500; font-weight: 500;

Loading…
Cancel
Save