From bde299396dc07c83dc872af029d274e49181a1af Mon Sep 17 00:00:00 2001 From: franciszek Date: Sun, 3 Jan 2021 23:37:41 +0100 Subject: [PATCH] Added sass and basic styles --- package-lock.json | 9 +++ package.json | 1 + src/app.tsx | 16 +++++- src/styles/app.scss | 12 ++++ src/styles/reset.css | 129 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 166 insertions(+), 1 deletion(-) create mode 100644 src/styles/app.scss create mode 100644 src/styles/reset.css diff --git a/package-lock.json b/package-lock.json index dfe026f..0e1325e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index cd6476d..e8e6c8b 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react-dom": "^17.0.1" }, "devDependencies": { + "sass": "^1.32.0", "typescript": "^4.1.3" } } diff --git a/src/app.tsx b/src/app.tsx index b30d2c3..dee72b6 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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

Zgłaszańsko

; + return ( +
+
+

Photos

+
+
+

Map

+
+
+

Form

+
+
+ ); }; ReactDOM.render(, document.getElementById("root")); diff --git a/src/styles/app.scss b/src/styles/app.scss new file mode 100644 index 0000000..326339d --- /dev/null +++ b/src/styles/app.scss @@ -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; +} diff --git a/src/styles/reset.css b/src/styles/reset.css new file mode 100644 index 0000000..45a05ec --- /dev/null +++ b/src/styles/reset.css @@ -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; +}