Added sass and basic styles

master
franciszek 4 years ago
parent 5eff436c79
commit bde299396d

9
package-lock.json generated

@ -5561,6 +5561,15 @@
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"sass": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.32.0.tgz",
"integrity": "sha512-fhyqEbMIycQA4blrz/C0pYhv2o4x2y6FYYAH0CshBw3DXh5D5wyERgxw0ptdau1orc/GhNrhF7DFN2etyOCEng==",
"dev": true,
"requires": {
"chokidar": ">=2.0.0 <4.0.0"
}
},
"sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",

@ -32,6 +32,7 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"sass": "^1.32.0",
"typescript": "^4.1.3"
}
}

@ -1,8 +1,22 @@
import * as React from "react";
import * as ReactDOM from "react-dom";
import "./styles/reset.css";
import "./styles/app.scss";
const App = () => {
return <h1>Zgłaszańsko</h1>;
return (
<div className="container">
<section className="container__section">
<h2>Photos</h2>
</section>
<section className="container__section">
<h2>Map</h2>
</section>
<section className="container__section">
<h2>Form</h2>
</section>
</div>
);
};
ReactDOM.render(<App />, document.getElementById("root"));

@ -0,0 +1,12 @@
.container {
width: 100%;
height: 100vh;
display: flex;
flex-wrap: wrap;
}
.container__section {
flex: 1;
border: 1px solid black;
min-width: 450px;
min-height: 400px;
}

@ -0,0 +1,129 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
Loading…
Cancel
Save