Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Added welcome screen #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client/src/components/Home/Home.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<template>
<div class="main">
<sidebar />
<editor />
<welcome />
</div>
</template>

<script>
import Editor from './components/Editor';
import Sidebar from './components/Sidebar';
import WelcomeScreen from './components/WelcomeScreen';

export default {
name: 'Home',
components: {
editor: Editor,
sidebar: Sidebar,
welcome: WelcomeScreen,
},
};
</script>
Expand Down
51 changes: 51 additions & 0 deletions client/src/components/Home/components/Panda.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<template>
<div class="container">
<div class="panda">
{{`
__________¶¶_¶¶__¶¶_¶¶_¶
_________¶¶_¶¶_¶¶_¶¶_¶¶¶
_____¶¶¶¶¶____________¶¶¶¶¶¶¶
___¶¶¶¶¶_______________¶¶¶¶¶¶¶
__¶¶¶¶¶__________________¶¶¶¶¶¶
__¶¶¶¶____________________¶¶¶¶
___¶¶______________________¶¶¶
___¶________________________¶¶¶¶
__¶¶_____¶¶¶______¶¶________¶¶¶¶¶¶¶
__¶_____¶¶¶¶_____¶¶¶¶¶______¶¶¶¶¶¶_¶
__¶____¶¶¶¶¶____¶¶¶¶¶¶¶¶____¶¶¶¶¶¶__¶
__¶¶__¶¶¶¶¶______¶¶¶¶¶¶¶___¶¶¶¶¶¶¶___¶
___¶__¶¶¶__________¶¶¶¶___¶¶¶¶¶¶¶¶¶___¶
___¶¶____________________¶¶¶¶¶¶¶¶¶¶___¶¶¶
___¶¶¶_____¶¶¶¶¶¶_______¶¶¶¶¶¶¶¶¶¶¶___¶¶¶¶
___¶¶¶¶¶___¶¶¶¶¶¶_____¶¶¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶
___¶¶¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶¶¶
___¶¶¶¶¶¶¶¶__¶¶¶___¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶_¶¶¶¶¶¶¶¶¶
____¶¶¶¶¶¶¶¶¶¶¶¶__¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶
____¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶ ¶¶¶¶¶¶¶¶¶¶
____¶¶¶¶¶¶¶¶¶_¶¶¶¶¶¶¶_¶¶¶¶¶¶¶¶¶¶¶ ¶¶¶¶¶¶¶¶
__¶¶¶¶¶¶¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶ ¶¶¶¶¶
__¶¶¶¶¶¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶
___¶¶¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶¶
___________________¶¶¶¶¶¶¶¶¶¶¶
___________________¶¶¶¶¶¶¶¶¶¶`}}
</div>
</div>
</template>

<script>
export default {
name: 'Panda',
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang='scss' scoped>
div.container {
width: 420px;
margin: 0 auto;
margin-top: -60px;
.panda {
text-align: left;
}
}
</style>
50 changes: 50 additions & 0 deletions client/src/components/Home/components/WelcomeScreen.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<template>
<div class="welcome-screen">
<div class="welcome-text">
<h1>Welcome to the Panda Code Editor</h1>
<panda />
<p>The Panda code editor is a project born from the Chingu Voyage 2.
Our MVP features were to provide VS code type clone,
by implementing our own text editor from scratch.
It also has a full automated test fleet and auto deployment.
Check out the code at https://github.com/chingu-voyage4/Bears-Team-7</p>
<div>Built with love by Alyssa and Matt ❤️</div>
</div>
</div>
</template>

<script>
import Panda from './Panda';

export default {
name: 'WelcomeScreen',
components: {
panda: Panda,
},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang='scss' scoped>
.welcome-screen {
background-color: $editor-background;
color: $editor-fontColor;
height: 100%;
white-space: pre;
font-size: 16px;
text-align: center;
padding-left: 60px;
padding-top: 15px;
overflow: scroll;
:focus {
outline: 0;
}
.welcome-text {
max-width: 700px;
margin: 0 auto;
}
}
p {
margin: 0;
}
</style>