diff --git a/frontend/src/App.css b/frontend/src/App.css index 74b5e05..9dbdad7 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1,38 +1,27 @@ -.App { - text-align: center; +@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); + +body { + margin: 0; + background-color: #D9D9D9; + color: rgba(0, 0, 0, 0.8); + font-size: 24px; + font-weight: 400; + font-family: 'Inter', sans-serif; + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 40px; } -.App-logo { - height: 40vmin; - pointer-events: none; +a { + color: #fff; + text-decoration: none; } -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } +a:hover { + color: #F5B14E; } -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} +a:active { + color: #F5B14E; +} \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a53698a..15a5ab6 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,25 +1,14 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; +import TopBar from './start-page/top-bar'; function App() { return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
-
+ <> + + + ); } diff --git a/frontend/src/start-page/event_emitter_eltex_loc-32px.png b/frontend/src/start-page/event_emitter_eltex_loc-32px.png new file mode 100644 index 0000000..3eb0281 Binary files /dev/null and b/frontend/src/start-page/event_emitter_eltex_loc-32px.png differ diff --git a/frontend/src/start-page/top-bar.css b/frontend/src/start-page/top-bar.css new file mode 100644 index 0000000..caa6d5c --- /dev/null +++ b/frontend/src/start-page/top-bar.css @@ -0,0 +1,76 @@ +/* .top .container_title .logo .event_emitter_eltex_loc */ + +.top { + display: flex; + flex-direction: row; + position: fixed; + z-index: 100500; + height: 80px; + background-color: #001826; + width: 100%; + overflow: hidden; + margin: 0; + padding: 0; + border: 0; + box-sizing: content-box; +} + +.container_title { + position: relative; + margin-left: 135px; + margin-right: 135px; + height: 100%; + width: 100%; + display: flex; + align-items: center; + flex-direction: row; + justify-content: space-between; +} + +.container_title { + height: 100%; + width: 100%; + margin-left: 100px; + margin-right: 100px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; +} + +.event_emitter_eltex_loc { + vertical-align: middle; + height: 32px; + cursor: pointer; + transition: width 0.5s, height 0.5s; +} + +.event_emitter_eltex_loc:hover { + /* height: 38px; */ + /* transform: scale(1.5); */ +} + +div.logo { + height: 38px; + width: 400px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; +} + +div.logo:hover { + transform: scale(1.1); +} + +a.logo { + color: #fff; +} + +a.logo:active { + color: #fff; +} + +a.logo span { + margin-left: 10px; +} \ No newline at end of file diff --git a/frontend/src/start-page/top-bar.tsx b/frontend/src/start-page/top-bar.tsx new file mode 100644 index 0000000..8b8ff8d --- /dev/null +++ b/frontend/src/start-page/top-bar.tsx @@ -0,0 +1,31 @@ +import React, { ReactElement } from 'react'; +import './top-bar.css'; +import LogoImg from './event_emitter_eltex_loc-32px.png'; + +export type TopBarProps = { + contact: string; + children: any; +}; + +const TopBar = (props: TopBarProps): ReactElement => { + return ( +
+
+
+ {/* a.logo */} + event_emitter_eltex_loc + redmine-issue-event-emitter + +
+ + {props.children} + +

#документация

+

#контакты

+

#блог

+
+
+ ); +}; + +export default TopBar;