-React ui tested
This commit is contained in:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 40 KiB |
@@ -4,7 +4,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
background: var(--code-bg);
|
background: var(--code-bg);
|
||||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
||||||
height: 30px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar h1 {
|
.navbar h1 {
|
||||||
@@ -24,11 +24,40 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
width: 60px;
|
width: 55px;
|
||||||
height: 60px;
|
height: 55px;
|
||||||
float: right;
|
float: right;
|
||||||
align-items: right;
|
align-items: right;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-top: -15px;
|
margin-top: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
padding: 16px;
|
||||||
|
color: gray;
|
||||||
|
background: var(--code-bg);
|
||||||
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
||||||
|
height: 100%;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar h1 {
|
||||||
|
font-size: 16px;
|
||||||
|
letter-spacing: -1.68px;
|
||||||
|
margin: 4px 10px 0 0;
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar h2 {
|
||||||
|
font-size: 14px;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
margin: 8px 16px 0 0;
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import './App.css'
|
import './App.css'
|
||||||
import NavBar from './components/NavBar.jsx'
|
import NavBar from './components/NavBar.jsx'
|
||||||
|
import LangSideBar from './components/LangSideBar.jsx'
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<div><NavBar /></div>
|
<div><NavBar /></div>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<div className="sidebar"></div>
|
<div><LangSideBar /></div>
|
||||||
<div className="main"></div>
|
<div className="main"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import { useState } from 'react'
|
||||||
|
import Language from './Language';
|
||||||
|
|
||||||
|
const LangSideBar = () => {
|
||||||
|
return (
|
||||||
|
<nav className="sidebar">
|
||||||
|
<div>
|
||||||
|
<h1>Available Languages:</h1>
|
||||||
|
</div>
|
||||||
|
<div className="side-links">
|
||||||
|
<Language languageid={1}/>
|
||||||
|
<Language languageid={2}/>
|
||||||
|
<Language languageid={3}/>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LangSideBar;
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
import UseFetch from './tools/UseFetch';
|
import { useState } from 'react'
|
||||||
|
//import UseFetch from './tools/UseFetch';
|
||||||
function Language ({ languageid }) {
|
|
||||||
|
|
||||||
|
const Language = ({ languageid }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="treeElement">
|
||||||
<h2>Language Komponent</h2>
|
<h2>Language ${languageid}</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import scpqLogo from '../assets/SimplyCPQ_logo.svg';
|
import scpqLogo from '../assets/SimplyCPQ_Logo.svg';
|
||||||
|
|
||||||
const NavBar = () => {
|
const NavBar = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -50,8 +50,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
|
|||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "client",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user