Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PB138 - Film Database Group Project
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Havlíček
PB138 - Film Database Group Project
Commits
f9c0f137
There was an error fetching the commit references. Please try again later.
Commit
f9c0f137
authored
2 years ago
by
Tomáš Havlíček
Browse files
Options
Downloads
Patches
Plain Diff
feat: added tempalte for site appearance
parent
b02100d3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/App.tsx
+2
-31
2 additions, 31 deletions
frontend/src/App.tsx
frontend/src/components/NavigationBar.tsx
+11
-2
11 additions, 2 deletions
frontend/src/components/NavigationBar.tsx
frontend/src/styles/navigationbar.css
+30
-0
30 additions, 0 deletions
frontend/src/styles/navigationbar.css
with
43 additions
and
33 deletions
frontend/src/App.tsx
+
2
−
31
View file @
f9c0f137
import
{
useState
}
from
'
react
'
import
{
useState
}
from
'
react
'
import
logo
from
'
./logo.svg
'
import
logo
from
'
./logo.svg
'
import
'
./App.css
'
import
'
./App.css
'
import
{
MainPage
}
from
'
./components/MainPage
'
function
App
()
{
function
App
()
{
const
[
count
,
setCount
]
=
useState
(
0
)
const
[
count
,
setCount
]
=
useState
(
0
)
return
(
return
(
<
div
className
=
"App"
>
<
div
className
=
"App"
>
<
header
className
=
"App-header"
>
<
MainPage
/>
<
img
src
=
{
logo
}
className
=
"App-logo"
alt
=
"logo"
/>
<
p
>
Hello Vite + React!
</
p
>
<
p
>
<
button
type
=
"button"
onClick
=
{
()
=>
setCount
((
count
:
number
)
=>
count
+
1
)
}
>
count is:
{
count
}
</
button
>
</
p
>
<
p
>
Edit
<
code
>
App.tsx
</
code
>
and save to test HMR updates.
</
p
>
<
p
>
<
a
className
=
"App-link"
href
=
"https://reactjs.org"
target
=
"_blank"
rel
=
"noopener noreferrer"
>
Learn React
</
a
>
{
'
|
'
}
<
a
className
=
"App-link"
href
=
"https://vitejs.dev/guide/features.html"
target
=
"_blank"
rel
=
"noopener noreferrer"
>
Vite Docs
</
a
>
</
p
>
</
header
>
</
div
>
</
div
>
)
)
}
}
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/NavigationBar.tsx
+
11
−
2
View file @
f9c0f137
import
"
../styles/navigationbar.css
"
// on top of the screen at all times, links to each feature of site
// on top of the screen at all times, links to each feature of site
export
const
NavigationBar
=
()
=>
{
export
const
NavigationBar
=
()
=>
{
return
(<
div
className
=
"navigation-bar"
>
return
(<
div
className
=
"navigation-bar"
>
Here is navigation bar.
<
nav
>
<
label
htmlFor
=
"checkbox-demo"
>
<
ul
className
=
"menu demo"
>
<
li
><
a
href
=
"#"
>
Home
</
a
></
li
>
<
li
><
a
href
=
"#"
>
Search
</
a
></
li
>
<
li
><
a
href
=
"#"
>
Browse
</
a
></
li
>
<
li
><
a
href
=
"#"
>
About
</
a
></
li
>
</
ul
>
</
label
>
</
nav
>
</
div
>)
</
div
>)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
frontend/src/styles/navigationbar.css
0 → 100644
+
30
−
0
View file @
f9c0f137
nav
{
margin
:
50px
auto
;
max-width
:
700px
;
width
:
95%
;
font-family
:
'Roboto Condensed'
,
sans-serif
;
}
#checkbox1
,
.toggle
{
display
:
none
;
}
.menu
{
padding
:
0
;
margin
:
0
;
max-width
:
700px
;
height
:
50px
;
border-radius
:
5px
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-around
;
align-items
:
center
;
list-style-type
:
none
;
}
.menu
li
a
{
text-decoration
:
none
;
align-self
:
center
;
border-radius
:
5px
;
font-size
:
14px
;
padding
:
10px
15px
;
transition
:
background
.2s
linear
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment