From 6494f04d2528b35871a40ffbc44eab4ea919f511 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 15 Jul 2018 11:06:53 +0200 Subject: [PATCH] Added structure and some stylings to CreateServer component --- src/common/MenuLayout.js | 7 ++++--- src/servers/CreateServer.js | 38 +++++++++++++++++++++++++++++++++-- src/servers/CreateServer.scss | 11 ++++++++++ src/utils/base.scss | 10 +++++++++ 4 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 src/servers/CreateServer.scss diff --git a/src/common/MenuLayout.js b/src/common/MenuLayout.js index 253a4cdd..f0f6cdff 100644 --- a/src/common/MenuLayout.js +++ b/src/common/MenuLayout.js @@ -9,9 +9,10 @@ export default function MenuLayout() {
-
diff --git a/src/servers/CreateServer.js b/src/servers/CreateServer.js index ecf5da64..bdc98240 100644 --- a/src/servers/CreateServer.js +++ b/src/servers/CreateServer.js @@ -1,7 +1,41 @@ import React from 'react'; +import { connect } from 'react-redux'; + +import './CreateServer.scss'; + +export const CreateServer = () => { + const submit = e => e.preventDefault(); -export default () => { return ( -
Create server
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
); }; + +export default connect()(CreateServer); diff --git a/src/servers/CreateServer.scss b/src/servers/CreateServer.scss new file mode 100644 index 00000000..8f9ef042 --- /dev/null +++ b/src/servers/CreateServer.scss @@ -0,0 +1,11 @@ +@import "../utils/base"; + +.create-server { + padding: 40px 20px; +} + +.create-server__label { + @media (min-width: $mdMin) { + text-align: right; + } +} diff --git a/src/utils/base.scss b/src/utils/base.scss index 551c41a2..e867449d 100644 --- a/src/utils/base.scss +++ b/src/utils/base.scss @@ -1,4 +1,14 @@ +// Breakpoints +$xsMax: 575px; +$smMin: 576px; +$smMax: 577px; +$mdMin: 768px; +$mdMax: 991px; +$lgMin: 992px; +$lgMax: 1199px; +$xlgMin: 1200px; + // Colors $mainColor: #4696e5;