Leonard Schulz (Arbeit) 2 yıl önce
ebeveyn
işleme
257c7a3bff

+ 23 - 0
backend_nodejs/.gitignore

@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*

+ 1 - 1
backend_nodejs/wbs_rechner_express.js

@@ -230,5 +230,5 @@ app.get('/types', (req, res) => {
     res.send(types);
 });
 
-const port = process.env.PORT || 3000;
+const port = process.env.PORT || 3100;
 app.listen(port, () => console.log(`Server läuft auf Port ${port}...`));

+ 1 - 1
fontend_angular/wbs-rechner-angular/src/app/wbs.service.ts

@@ -13,7 +13,7 @@ import { WBS } from './wbs.interface';
 
 
 export class WbsService {
- private baseUrl = 'http://localhost:3000';
+ private baseUrl = 'http://localhost:3100';
 
 
     constructor(private http: HttpClient) {}

+ 103 - 23
frontend_react/wbs-rechner-react/src/App.css

@@ -1,38 +1,118 @@
-.App {
-  text-align: center;
+@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
+
+/** Main Colors **/
+:root {
+  --background-color: white;
+  --main-color: black;
+  --highlight-color: #49a1f8;
+  --light-highlight-color: #9bc9f1;
 }
 
-.App-logo {
-  height: 40vmin;
-  pointer-events: none;
+input, select {
+  -ms-box-sizing:content-box;
+  -moz-box-sizing:content-box;
+  -webkit-box-sizing:content-box; 
+  box-sizing:content-box;
 }
 
-@media (prefers-reduced-motion: no-preference) {
-  .App-logo {
-    animation: App-logo-spin infinite 20s linear;
-  }
+body {
+  background-color: var(--background-color);
+  color: var(--main-color);
+  font-family: "Roboto", sans-serif;
+  font-weight: 400;
+  font-style: normal;
+}
+
+h2 {
+  margin: 0px;
 }
 
-.App-header {
-  background-color: #282c34;
-  min-height: 100vh;
+
+.label-container {
   display: flex;
-  flex-direction: column;
   align-items: center;
-  justify-content: center;
-  font-size: calc(10px + 2vmin);
-  color: white;
+}
+.label_box {
+  border-top: 2px solid var(--highlight-color);
+}
+.label_box:first-child {
+  border: none;
+}
+
+.label-container label {
+  width: 400px;
+  text-align: left;
+  background-color: var(--light-highlight-color);
+
+  border-bottom: 1px solid var(--light-highlight-color);
+  padding: 3px;
+  font-weight: bold;
+}
+
+.label-container span, input, select, a {
+  text-align: right;
+  width: 300px;
+  padding: 3px;
+  border: none;
+  border-bottom: 1px solid var(--light-highlight-color);
+}
+
+
+/* Checkbox Design */
+input[type="checkbox"] {
+  width: 20px;
+  height: 20px;
+  border-radius: 4px;
+  appearance: none;
+  -webkit-appearance: none;
+  -moz-appearance: none;
+  outline: none;
+  border: 2px solid black;
+  background-color: white;
+}
+
+input[type="checkbox"]:checked {
+  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="none" d="M0 0h24v24H0z" /%3E%3Cpath d="M5.5 13.6l2.7 2.7L16.8 8l1.4 1.4-9.5 9.5L3 12.3z" fill="black" /%3E%3C/svg%3E');
+  background-repeat: no-repeat;
+  background-position: center;
+  background-size: 19px 19px;
+}
+
+.calculateButton {
+  min-width: 400px;
+  font-weight: bolder;
+  border: 2px solid black;
+  cursor: pointer;
+  font-size: 15px;
+  margin: 3px;
+  background-color: var(--highlight-color);
+}
+
+.plus-button:hover {
+  color: var(--light-highlight-color);
 }
 
-.App-link {
-  color: #61dafb;
+.delete-button {
+  color: red;
 }
 
-@keyframes App-logo-spin {
-  from {
-    transform: rotate(0deg);
+.plus-button:hover {
+  color: darkred;
+}
+
+/* Responsive Table Design */
+@media only screen and (max-width: 800px) {
+
+  .label-container label {
+    width: 49%;
   }
-  to {
-    transform: rotate(360deg);
+
+  .calculateButton {
+    width: 49%;
+  }
+
+  .label-container span, input, select, a {
+    width: 49%;
   }
 }
+

+ 2 - 15
frontend_react/wbs-rechner-react/src/App.js

@@ -1,23 +1,10 @@
-import logo from './logo.svg';
+
 import './App.css';
 
 function App() {
   return (
     <div className="App">
-      <header className="App-header">
-        <img src={logo} className="App-logo" alt="logo" />
-        <p>
-          Edit <code>src/App.js</code> and save to reload.
-        </p>
-        <a
-          className="App-link"
-          href="https://reactjs.org"
-          target="_blank"
-          rel="noopener noreferrer"
-        >
-          Learn React
-        </a>
-      </header>
+      <h1>WBS Rechner</h1>
     </div>
   );
 }

+ 0 - 13
frontend_react/wbs-rechner-react/src/index.css

@@ -1,13 +0,0 @@
-body {
-  margin: 0;
-  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
-    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
-    sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-code {
-  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
-    monospace;
-}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
frontend_react/wbs-rechner-react/src/logo.svg


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor