From 892469bedb5a93d37f8d3d774bdb3d918589e234 Mon Sep 17 00:00:00 2001
From: Minzkraut
Date: Thu, 17 Mar 2022 01:44:56 +0100
Subject: [PATCH] Split app into components Moved each component and its styles
into their own files
---
src/App.vue | 3 +-
src/components/Commands.vue | 44 +++++++++++++++
src/components/Designer.vue | 105 +++---------------------------------
src/components/Preview.vue | 40 ++++++++++++++
src/styles/commands.scss | 27 ++++++++++
src/styles/generic.scss | 34 ++++++++++++
src/styles/specifics.scss | 28 ----------
7 files changed, 154 insertions(+), 127 deletions(-)
create mode 100644 src/components/Commands.vue
create mode 100644 src/components/Preview.vue
create mode 100644 src/styles/commands.scss
create mode 100644 src/styles/generic.scss
diff --git a/src/App.vue b/src/App.vue
index e0086eb..fdcb379 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -59,7 +59,8 @@ export default {
}),
};
-
\ No newline at end of file
diff --git a/src/components/Designer.vue b/src/components/Designer.vue
index 7415866..cbe0690 100644
--- a/src/components/Designer.vue
+++ b/src/components/Designer.vue
@@ -9,34 +9,7 @@
-
-
Preview
-
-
-
-
-

-
-
-
+
Background
-
-
Commands
-
- Background
-
/editprofile background {{backgroundColor.substring(1,7)}}
-
-
Copy
-
-
- Panels
-
/editprofile theme {{panelColor.substring(1,7)}}
-
-
Copy
-
-
+
-
diff --git a/src/components/Preview.vue b/src/components/Preview.vue
new file mode 100644
index 0000000..4b6f78c
--- /dev/null
+++ b/src/components/Preview.vue
@@ -0,0 +1,40 @@
+
+
+
Preview
+
+
+
+
+

+
+
+
+
+
+
+
+
diff --git a/src/styles/commands.scss b/src/styles/commands.scss
new file mode 100644
index 0000000..96d2339
--- /dev/null
+++ b/src/styles/commands.scss
@@ -0,0 +1,27 @@
+#commands {
+ min-width: 300px;
+ flex-grow: 1;
+ align-self: flex-start;
+
+ .command {
+ position: relative;
+ margin: 20px;
+ }
+
+ button {
+ position: absolute;
+ right: 0px;
+ bottom: 6px;
+ height: 45px;
+ }
+
+ .code {
+ background-color: #0a0a0a;
+ border-radius: 5px;
+ padding: 11px;
+ width: 100%;
+ display: inline-block;
+ margin: 5px 0;
+ font-family: monospace;
+ }
+}
\ No newline at end of file
diff --git a/src/styles/generic.scss b/src/styles/generic.scss
new file mode 100644
index 0000000..639a0d2
--- /dev/null
+++ b/src/styles/generic.scss
@@ -0,0 +1,34 @@
+.flex-container {
+ max-width: 100%;
+ width: 100%;
+ display: inline-flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-evenly;
+ margin-bottom: 25px;
+ }
+
+ .flex-item {
+ max-width: 100%;
+ margin: 0 15px;
+ }
+
+ h3 {
+ margin: 25px 0 0;
+ text-align: center;
+ }
+
+ ul {
+ list-style-type: none;
+ padding: 0;
+ }
+
+ li {
+ display: inline-block;
+ margin: 0 10px;
+ }
+
+ a {
+ color: #42b983;
+ }
\ No newline at end of file
diff --git a/src/styles/specifics.scss b/src/styles/specifics.scss
index 400728f..810b328 100644
--- a/src/styles/specifics.scss
+++ b/src/styles/specifics.scss
@@ -17,32 +17,4 @@
width: 100%;
padding: 25px 0;
}
-}
-
-#commands {
- min-width: 300px;
- flex-grow: 1;
- align-self: flex-start;
-
- .command {
- position: relative;
- margin: 20px;
- }
-
- button {
- position: absolute;
- right: 0px;
- bottom: 6px;
- height: 45px;
- }
-
- .code {
- background-color: #0a0a0a;
- border-radius: 5px;
- padding: 11px;
- width: 100%;
- display: inline-block;
- margin: 5px 0;
- font-family: monospace;
- }
}
\ No newline at end of file