Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hw92
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Болатов Ален
hw92
Commits
4b326081
Commit
4b326081
authored
Apr 03, 2023
by
Рахметова Альбина
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created Layout
parent
07e301c0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
120 additions
and
4 deletions
+120
-4
App.css
frontend/src/App.css
+4
-0
App.tsx
frontend/src/App.tsx
+10
-4
logo.jpg
frontend/src/assets/logo.jpg
+0
-0
logo.png
frontend/src/assets/logo.png
+0
-0
Header.tsx
frontend/src/components/Header/Header.tsx
+22
-0
Layout.css
frontend/src/components/Layout/Layout.css
+4
-0
Layout.tsx
frontend/src/components/Layout/Layout.tsx
+20
-0
Logo.css
frontend/src/components/Logo/Logo.css
+4
-0
Logo.tsx
frontend/src/components/Logo/Logo.tsx
+15
-0
Navbar.css
frontend/src/components/Navbar/Navbar.css
+10
-0
Navbar.tsx
frontend/src/components/Navbar/Navbar.tsx
+31
-0
No files found.
frontend/src/App.css
0 → 100644
View file @
4b326081
.container
{
max-width
:
980px
;
display
:
flex
;
}
\ No newline at end of file
frontend/src/App.tsx
View file @
4b326081
import
{
Container
}
from
"@mui/material"
import
{
Route
,
Routes
}
from
"react-router-dom"
import
Layout
from
"./components/Layout/Layout"
import
'./App.css'
const
App
=
()
=>
{
return
(
<
Container
className=
"App"
>
Start
</
Container
>
//@ts-ignore
<
Layout
>
<
Routes
>
<
Route
path=
{
'/'
}
element=
{
<
h1
>
HOME
</
h1
>
}
/>
</
Routes
>
</
Layout
>
)
}
export
default
App
frontend/src/assets/logo.jpg
0 → 100644
View file @
4b326081
32.4 KB
frontend/src/assets/logo.png
0 → 100644
View file @
4b326081
19.5 KB
frontend/src/components/Header/Header.tsx
0 → 100644
View file @
4b326081
import
React
,
{
FunctionComponent
,
ReactElement
}
from
"react"
;
import
Logo
from
"../Logo/Logo"
;
import
Navbar
from
"../Navbar/Navbar"
;
// import './Header.css'
const
Header
:
FunctionComponent
=
():
ReactElement
=>
{
return
(
<
header
className=
"header"
>
<
div
className=
"container header_container"
>
<
div
className=
"logo_block"
>
<
Logo
/>
</
div
>
<
div
className=
"nav_block"
>
<
Navbar
/>
</
div
>
</
div
>
</
header
>
)
}
export
default
Header
\ No newline at end of file
frontend/src/components/Layout/Layout.css
0 → 100644
View file @
4b326081
.sidebar
{
margin
:
80px
30px
;
}
\ No newline at end of file
frontend/src/components/Layout/Layout.tsx
0 → 100644
View file @
4b326081
import
React
,
{
FunctionComponent
,
ReactElement
}
from
"react"
;
import
Navbar
from
"../Navbar/Navbar"
;
import
Logo
from
"../Logo/Logo"
;
import
'./Layout.css'
//@ts-ignore
const
Layout
:
FunctionComponent
=
({
children
}):
ReactElement
=>
{
return
(
<
div
className=
"container aside_container"
>
<
div
className=
"sidebar"
>
<
Logo
/>
<
Navbar
/>
</
div
>
<
main
>
{
children
}
</
main
>
</
div
>
)
}
export
default
Layout
\ No newline at end of file
frontend/src/components/Logo/Logo.css
0 → 100644
View file @
4b326081
.logo_img
{
width
:
150px
;
height
:
auto
}
\ No newline at end of file
frontend/src/components/Logo/Logo.tsx
0 → 100644
View file @
4b326081
import
React
,
{
FunctionComponent
,
ReactElement
}
from
"react"
;
import
{
Link
}
from
"react-router-dom"
;
import
'./Logo.css'
import
logo
from
'../../assets/logo.png'
const
Logo
:
FunctionComponent
=
():
ReactElement
=>
{
return
(
<
Link
className=
"logo"
to=
{
'/'
}
>
<
img
className=
"logo_img"
src=
{
logo
}
alt=
"logo"
/>
</
Link
>
)
}
export
default
Logo
\ No newline at end of file
frontend/src/components/Navbar/Navbar.css
0 → 100644
View file @
4b326081
.nav_item
{
list-style-type
:
none
;
margin-bottom
:
20px
;
}
.nav_link
{
text-decoration
:
none
;
font-size
:
25px
;
color
:
black
;
}
\ No newline at end of file
frontend/src/components/Navbar/Navbar.tsx
0 → 100644
View file @
4b326081
import
React
,
{
FunctionComponent
,
ReactElement
}
from
"react"
;
import
{
NavLink
}
from
"react-router-dom"
;
import
'./Navbar.css'
const
Navbar
:
FunctionComponent
=
():
ReactElement
=>
{
return
(
<
div
className=
"container"
>
<
ul
className=
"nav_items"
>
<
li
className=
"nav_item"
>
<
NavLink
to=
{
'/'
}
className=
{
'nav_link'
}
>
Home
</
NavLink
>
</
li
>
<
li
className=
"nav_item"
>
<
NavLink
to=
{
'/'
}
className=
{
'nav_link'
}
>
News
</
NavLink
>
</
li
>
<
li
className=
"nav_item"
>
<
NavLink
to=
{
'/add-news'
}
className=
{
'nav_link'
}
>
Add-Post
</
NavLink
>
</
li
>
<
li
className=
"nav_item"
>
<
NavLink
to=
{
'/'
}
className=
{
'nav_link'
}
>
Blog
</
NavLink
>
</
li
>
<
li
className=
"nav_item"
>
<
NavLink
to=
{
'/'
}
className=
{
'nav_link'
}
>
Messages
</
NavLink
>
</
li
>
</
ul
>
</
div
>
)
}
export
default
Navbar
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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