Eingabefeld, Listenansicht erstellt

Eingabefeld fertig + Listenansicht
This commit is contained in:
Manuel Prodinger
2022-03-30 11:26:31 +02:00
parent 73efc44960
commit 00268ebbd2
7 changed files with 34 additions and 9 deletions
+5
View File
@@ -5396,6 +5396,11 @@
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz",
"integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==" "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w=="
}, },
"font-awesome": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz",
"integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM="
},
"fork-ts-checker-webpack-plugin": { "fork-ts-checker-webpack-plugin": {
"version": "6.5.0", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.0.tgz", "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.0.tgz",
+1
View File
@@ -6,6 +6,7 @@
"@testing-library/jest-dom": "^5.16.2", "@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4", "@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",
"font-awesome": "^4.7.0",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-scripts": "5.0.0", "react-scripts": "5.0.0",
+3
View File
@@ -2,8 +2,11 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");
.App { .App {
text-align: center; text-align: center;
font-family: qicksand, arial;
} }
.App-logo { .App-logo {
+3 -2
View File
@@ -1,9 +1,10 @@
import Eingabefelder from "./Components/eingabefelder"; import Eingabefeld from "./Components/eingabefeld";
import "../node_modules/font-awesome/css/font-awesome.min.css";
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
<Eingabefelder label="test" placeholder="password" /> <Eingabefeld label="Name" isPassword={false} placeholder="&#xf007;" />
<p className="from-green-50">tets</p> <p className="from-green-50">tets</p>
</div> </div>
); );
@@ -5,8 +5,10 @@ function Eingabefeld(props) {
return ( return (
<div> <div>
<label>{props.label}</label> <label>{props.label}</label>
<br />
<input <input
className="form-control className="form-control
border-radius: 5px
block block
w-220 w-220
h-35 h-35
@@ -15,11 +17,11 @@ function Eingabefeld(props) {
text-base text-base
font-normal font-normal
border border-solid border-gray-300 border border-solid border-gray-300
rounded rounded"
focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none"
onChange={(e) => setPollName(e.target.value)} onChange={(e) => setPollName(e.target.value)}
value={usepollName} value={usepollName}
placeholder={props.placeholder} placeholder={props.placeholder}
type={props.isPassword ? "password" : "text"}
/> />
</div> </div>
); );
+11
View File
@@ -0,0 +1,11 @@
import React, { useState } from "react";
function Liste(props) {
return (
<div>
<Label></Label>
</div>
);
}
export default Liste;
+7 -5
View File
@@ -4,14 +4,16 @@
body { body {
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', "Droid Sans", "Helvetica Neue", sans-serif;
sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
code { code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
monospace; }
input {
font-family: FontAwesome;
} }