small changes

This commit is contained in:
LixayTF 2023-09-20 15:09:49 +02:00
parent 1bc21ced4b
commit 4ff17da8c5
2 changed files with 123 additions and 46 deletions

View File

@ -1,38 +1,66 @@
.App {
text-align: center;
.container{
margin-left: 355px;
margin-right: 355px;
padding: 75px;
padding-top: 70px !important;
position: relative;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
.row {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
justify-content: space-between;
gap: 10%;
margin-bottom: 2vh;
}
.App-link {
color: #61dafb;
.column {
flex: 1;
margin-right: 10px;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.column:last-child {
margin-right: 0;
}
.col{
height: 100% !important;
}
input.no-margin{
margin: 0 !important;
}
input[type="text"] {
width: 100%;
height: 2vh;
padding: 10px;
margin-bottom: 10px;
border-radius: 17px;
border: none;
background-color: #F3F3F3;
color: black;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
width: 50%;
border-radius: 17px;
}
button:hover {
background-color: #0056b3;
}
textarea {
width: 100%;
height: 200px;
padding: 10px;
border-radius: 17px;
border: none;
background-color: #F3F3F3;
color: black;
}

View File

@ -1,24 +1,73 @@
import logo from './logo.svg';
import './App.css';
import { useState } from 'react';
function App() {
const [datasetQuarry, setDatasetQuarry] = useState('');
const [tableQuarry, setTableQuarry] = useState('');
const [columns, setColumns] = useState('');
const [results, setResults] = useState('');
const handleButtonClick = () => {
setResults('Tutaj możesz umieścić swoje wyniki.');
};
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>
<div className="container">
<div className="row">
<div className="column">
<input
type="text"
placeholder="Dataset quarry"
value={datasetQuarry}
onChange={(e) => setDatasetQuarry(e.target.value)}
/>
<input
type="text"
placeholder="Table quarry"
value={tableQuarry}
onChange={(e) => setTableQuarry(e.target.value)}
/>
</div>
<div className="column">
<input
className="col"
type="text"
placeholder="Columns"
value={columns}
onChange={(e) => setColumns(e.target.value)}
/>
</div>
</div>
<div className="row">
<button type="button" onClick={handleButtonClick}>
Przycisk
</button>
</div>
<div className="row">
<textarea
placeholder="Resoults"
value={results}
onChange={(e) => setResults(e.target.value)}
></textarea>
</div>
</div>
// <div className="container">
// <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>
// </div>
);
}