sbkwgh vor 8 Jahren
Ursprung
Commit
0a0dc6ebcb
1 geänderte Dateien mit 76 neuen und 3 gelöschten Zeilen
  1. 76 3
      src/components/routes/Start.vue

+ 76 - 3
src/components/routes/Start.vue

@@ -1,17 +1,90 @@
 <template>
-	<div class='route_container'>
+	<div class='route_container route_container--fullscreen'>
+		<div v-show='panel === 1'>
+			<div class='h1'>Hi.</div>
+			<p class='explanation'>
+				First create your admin account for the forum.
+			</p>
+			<div>
+				<fancy-input v-model='username' width='100%' placeholder='Username'></fancy-input>
+				<fancy-input v-model='password' width='100%' placeholder='Password' type='password'></fancy-input>
+				<fancy-input v-model='confirmPassword' width='100%' placeholder='Confirm password' type='password'></fancy-input>
+				<button style='width: 100%;' class='button button--green' @click='createAccount'>Create account</button>
+			</div>
+		</div>
+		<div v-show='panel === 2'>
+			<div class='h1'>A few settings</div>
+			<p class='explanation'>
+				You can change these later on the admin page
+			</p>
+			<div>
+				<fancy-input v-model='forumName' width='100%' placeholder='Forum name'></fancy-input>
+				<p class='p--small'>These are like 'sub-forums'. Separate them with commas (e.g. books, technology, cars)</p>
+				<fancy-input v-model='categories' width='100%' placeholder='Categories'></fancy-input>
+				<p class='p--small'>What is your forum about?</p>
+				<fancy-textarea v-model='forumDescription' width='100%' placeholder='Forum description'></fancy-textarea>
+				<button style='width: 100%;' class='button button--green'>Finish</button>
+			</div>
+		</div>
 	</div>
 </template>
 
 <script>
+	import FancyInput from '../FancyInput'
+	import FancyTextarea from '../FancyTextarea'
+
 	export default {
 		name: 'start',
-		components: {},
+		data () {
+			return {
+				username: '',
+				password: '',
+				confirmPassword: '',
+				forumName: '',
+				forumDescription: '',
+				categories: '',
+				panel: 1
+			}
+		},
+		components: {
+			FancyInput,
+			FancyTextarea
+		},
 		computed: {},
-		methods: {}
+		methods: {
+			createAccount () {
+				this.panel = 2
+			}
+		}
 	}
 </script>
 
 <style lang='scss' scoped>
 	@import '../../assets/scss/variables.scss';
+
+	.route_container--fullscreen {
+		position: fixed;
+		top: 0;
+		margin: 0;
+		z-index: 10;
+		left: 0;
+		height: 100%;
+		padding: 0;
+		width: 100%;
+		background-color: #fff;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+	}
+
+	.explanation {
+		font-size: 1.25rem;
+		width: 25rem;
+	}
+
+	.p--small {
+		margin: 0.5rem 0;
+		width: 25rem;
+	}
+
 </style>