Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Commits
b5f4e7e0
Commit
b5f4e7e0
authored
May 13, 2024
by
Weiser
Browse files
update
parent
d407b718
Changes
4
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/navbar4.js
View file @
b5f4e7e0
...
...
@@ -23,8 +23,8 @@ const Navbar4 = (props) => {
<
/span
>
<
span
className
=
"
thq-link thq-body-small
"
onClick
=
{()
=>
(
window
.
location
.
href
=
"
/about
"
)}
>
{
props
.
link2
}
<
/span
>
<
span
className
=
"
thq-link thq-body-small
"
onClick
=
{()
=>
(
window
.
location
.
href
=
"
/
contac
t
"
)}
>
{
props
.
link3
}
<
/span
>
<
span
className
=
"
thq-link thq-body-small
"
onClick
=
{()
=>
(
window
.
location
.
href
=
"
/
weatherforecas
t
"
)}
>
{
props
.
link3
}
<
/span
>
<
span
className
=
"
thq-link thq-body-small
"
onClick
=
{()
=>
(
window
.
location
.
href
=
"
/data
"
)}
...
...
@@ -35,7 +35,6 @@ const Navbar4 = (props) => {
onClick
=
{()
=>
(
window
.
location
.
href
=
"
/historicalweather
"
)}
>
{
props
.
link5
}
<
/span
>
<
/nav
>
<
div
className
=
"
navbar4-buttons
"
>
<
button
className
=
"
thq-button-filled
"
>
{
props
.
action1
}
<
/button
>
<
button
className
=
"
thq-button-outline
"
>
{
props
.
action2
}
<
/button
>
<
/div
>
<
/div
>
...
...
@@ -47,14 +46,13 @@ const Navbar4 = (props) => {
Navbar4
.
defaultProps
=
{
link5
:
"
Historical weather
"
,
link4
:
"
Current Weather
"
,
link3
:
"
Contac
t
"
,
link3
:
"
Weather forecas
t
"
,
link2
:
"
About
"
,
link1
:
"
Home
"
,
logoAlt
:
"
Weather App
"
,
logoSrc
:
"
https://aheioqhobo.cloudimg.io/v7/_playground-bucket-v2.teleporthq.io_/84ec08e8-34e9-42c7-9445-d2806d156403/fac575ac-7a41-484f-b7ac-875042de11f8?org_if_sml=1&force_format=original
"
,
action2
:
"
/about
"
,
action1
:
"
/
"
,
action2
:
"
Dark Mode
"
,
imageSrc
:
"
23887698-7562-4cff-bf5f-d07a1767f79b
"
,
imageAlt
:
"
image
"
,
imageSrc1
:
"
23887698-7562-4cff-bf5f-d07a1767f79b
"
,
...
...
frontend/src/index.js
View file @
b5f4e7e0
...
...
@@ -11,9 +11,9 @@ import "./style.css";
import
Home
from
"
./views/home
"
;
import
Data
from
"
./views/data
"
;
import
About
from
"
./views/about
"
;
import
Contact
from
"
./views/contact
"
;
import
NotFound
from
"
./views/not-found
"
;
import
Historicalweather
from
"
./views/historicalweather
"
;
import
Weatherforecast
from
"
./views/weatherforecast
"
;
const
App
=
()
=>
{
return
(
...
...
@@ -21,8 +21,8 @@ const App = () => {
<
Switch
>
<
Route
component
=
{
Home
}
exact
path
=
"
/
"
/>
<
Route
component
=
{
About
}
exact
path
=
"
/about
"
/>
<
Route
component
=
{
Contact
}
exact
path
=
"
/contact
"
/>
<
Route
component
=
{
Data
}
exact
path
=
"
/data
"
/>
<
Route
component
=
{
Weatherforecast
}
exact
path
=
"
/weatherforecast
"
/>
<
Route
component
=
{
Historicalweather
}
exact
path
=
"
/historicalweather
"
/>
<
Route
component
=
{
NotFound
}
path
=
"
**
"
/>
<
Redirect
to
=
"
**
"
/>
...
...
frontend/src/views/
contac
t.css
→
frontend/src/views/
weatherforecas
t.css
View file @
b5f4e7e0
File moved
frontend/src/views/
contac
t.js
→
frontend/src/views/
weatherforecas
t.js
View file @
b5f4e7e0
...
...
@@ -4,7 +4,7 @@ import Navbar4 from "../components/navbar4";
import
Footer15
from
"
../components/footer15
"
;
import
"
./home.css
"
;
const
Contac
t
=
(
props
)
=>
{
const
Weatherforecas
t
=
(
props
)
=>
{
//JS Code
return
(
...
...
@@ -20,4 +20,4 @@ const Contact = (props) => {
);
};
export
default
Contact
;
\ No newline at end of file
export
default
Weatherforecast
;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment