more adjustments
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
"react-scripts": "5.0.0",
|
"react-scripts": "5.0.0",
|
||||||
"sass": "^1.49.0",
|
"sass": "^1.49.0",
|
||||||
"sass-loader": "^12.4.0",
|
"sass-loader": "^12.4.0",
|
||||||
|
"snippets": "https://git.harting.dev/vikingowl/snippets.git",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
17
src/App.css
17
src/App.css
@@ -0,0 +1,17 @@
|
|||||||
|
.navbar {
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
margin-top: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
height: 80px;
|
||||||
|
padding-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover {
|
||||||
|
color: var(--bs-secondary) !important;
|
||||||
|
text-shadow: 0 0 1px var(--bs-secondary), 0 0 1px var(--bs-secondary);
|
||||||
|
}
|
||||||
|
@@ -18,7 +18,9 @@ function App() {
|
|||||||
<Routing/>
|
<Routing/>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer className="footer mt-auto bg-light pt-4 pb-2">
|
<footer className="mt-auto">
|
||||||
|
{/*Kontakt hier*/}
|
||||||
|
|
||||||
<Footer/>
|
<Footer/>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@@ -2,12 +2,14 @@ import React from 'react'
|
|||||||
|
|
||||||
export const Footer = () => {
|
export const Footer = () => {
|
||||||
return (
|
return (
|
||||||
<div className='container d-flex justify-content-between'>
|
<div className='bg-dark footer'>
|
||||||
<p>© COPYRIGHT</p>
|
<div className='container d-flex justify-content-between text-white'>
|
||||||
|
<p>© COPYRIGHT</p>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
LINKS
|
LINKS
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
@@ -1,9 +1,51 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import {NavLink} from "react-router-dom";
|
||||||
|
import {bootstrapNavCloser, setImage} from "snippets";
|
||||||
|
|
||||||
export const Nav = () => {
|
export const Nav = () => {
|
||||||
|
bootstrapNavCloser()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<nav
|
||||||
NAV
|
className="navbar navbar-light navbar-expand-md bg-primary fixed-top"
|
||||||
</div>
|
>
|
||||||
|
<div className="container">
|
||||||
|
<NavLink className="navbar-brand" to="/">
|
||||||
|
<img
|
||||||
|
src={setImage('/logo.png', '/static/media/images')}
|
||||||
|
alt="Logo"
|
||||||
|
style={{
|
||||||
|
width: '60px',
|
||||||
|
overflow: 'hidden'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<button className="navbar-toggler" type="button" data-bs-toggle="collapse"
|
||||||
|
data-bs-target="#mainNav" aria-controls="mainNav"
|
||||||
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span className="navbar-toggler-icon"/>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div className="collapse navbar-collapse navbar-nav" id="mainNav">
|
||||||
|
<ul className="navbar-nav ms-auto">
|
||||||
|
<li className="nav-item">
|
||||||
|
<NavLink
|
||||||
|
to="/"
|
||||||
|
className={isActive => "nav-link" + (!isActive ? ' unselected' : '')}
|
||||||
|
aria-current="page"
|
||||||
|
style={({isActive}) => ({
|
||||||
|
color: isActive ? 'var(--bs-secondary)' : '',
|
||||||
|
textShadow: isActive ? '0 0 1px var(--bs-secondary), 0 0 1px var(--bs-secondary)' : '',
|
||||||
|
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
Home
|
||||||
|
</NavLink>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
)
|
)
|
||||||
}
|
}
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
|
|
||||||
export const Home = () => {
|
export const Home = () => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className='container pt-4'>
|
||||||
HOME
|
HOME
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
|
|
||||||
export const NotFound = () => {
|
export const NotFound = () => {
|
||||||
return (
|
return (
|
||||||
<div className='container'>
|
<div className='container pt-4'>
|
||||||
<h2>Site not found</h2>
|
<h2>Site not found</h2>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@@ -9685,6 +9685,7 @@ __metadata:
|
|||||||
react-scripts: 5.0.0
|
react-scripts: 5.0.0
|
||||||
sass: ^1.49.0
|
sass: ^1.49.0
|
||||||
sass-loader: ^12.4.0
|
sass-loader: ^12.4.0
|
||||||
|
snippets: "https://git.harting.dev/vikingowl/snippets.git"
|
||||||
web-vitals: ^2.1.4
|
web-vitals: ^2.1.4
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
@@ -10547,6 +10548,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"snippets@https://git.harting.dev/vikingowl/snippets.git":
|
||||||
|
version: 1.0.0
|
||||||
|
resolution: "snippets@https://git.harting.dev/vikingowl/snippets.git#commit=b3b79103bd07da1296bd6315a756d7672675665b"
|
||||||
|
checksum: 289cf8dd4f2277291101e3c5b5820aa1930d99a524fbc3f03506f0da886b39e36a417c7037c21ebc1d77ebd67b6865cb81b2a88740ed6844a728a774a8907a4b
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"sockjs@npm:^0.3.21":
|
"sockjs@npm:^0.3.21":
|
||||||
version: 0.3.24
|
version: 0.3.24
|
||||||
resolution: "sockjs@npm:0.3.24"
|
resolution: "sockjs@npm:0.3.24"
|
||||||
|
Reference in New Issue
Block a user