From 2429e275ea2ffd624e9d028c0863d1a86e779b11 Mon Sep 17 00:00:00 2001 From: brunosimon Date: Tue, 29 Aug 2017 00:58:15 +0200 Subject: [PATCH] :sparkles: Site > Add landing --- site/src/components/landing/index.vue | 3 ++ site/src/components/landing/quotes.js | 46 +++++++++++++++++++++++ site/src/components/landing/script.js | 12 ++++++ site/src/components/landing/style.styl | 7 ++++ site/src/components/landing/template.html | 14 +++++++ site/src/components/project/script.js | 2 + site/src/components/project/template.html | 1 + 7 files changed, 85 insertions(+) create mode 100644 site/src/components/landing/index.vue create mode 100644 site/src/components/landing/quotes.js create mode 100644 site/src/components/landing/script.js create mode 100644 site/src/components/landing/style.styl create mode 100644 site/src/components/landing/template.html diff --git a/site/src/components/landing/index.vue b/site/src/components/landing/index.vue new file mode 100644 index 0000000..246515d --- /dev/null +++ b/site/src/components/landing/index.vue @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/site/src/components/landing/quotes.js b/site/src/components/landing/quotes.js new file mode 100644 index 0000000..e7dbb55 --- /dev/null +++ b/site/src/components/landing/quotes.js @@ -0,0 +1,46 @@ +export default +[ + 'Keep it simple!', + 'Keep it maintainable!', + 'Stick to one naming convention!', + 'Get your code reviewed by someone else!', + 'Get your code reviewed by someone better than you!', + 'Consistency is key!', + 'Simplicity is key!', + 'Use the right tools!', + 'Don\'t repeat yourself!', + 'Better refacter sooner than later!', + 'Did you test your code?', + 'Watch talks!', + 'Learn from people better than you!', + 'Is your code readable?', + 'The clearer your code, the fewer comments you need!', + 'Update your dependencies!', + 'Document your code!', + 'Have clear instructions in your README.md!', + 'Have your software tested by someone else!', + 'Be consistent in your commit messages!', + 'Don\'t invent new standards!', + 'Choose a styleguide and stick to it!', + 'CSS can be documented, too!', + 'Don\'t reinvent the wheel!', + 'Imagine coming back to your code after a year...', + 'Document your code for your future self!', + 'Ask questions!', + 'Always improve.', + 'Take a chance!', + 'Stay focused!', + 'Remove all distractions!', + 'Make good use of your time!', + 'Remember your goals!', + 'Know your priorities!', + + 'Comment you code', + 'Don\'t forget to save', + 'Use versionning tools', + 'Take time to set up an environment that suits you', + 'Automates every redundant tasks', + 'Do not forget to thank those who helped you', + 'Choose the coding language that suits the project, not your current knowledge', + 'Experiment!' +] \ No newline at end of file diff --git a/site/src/components/landing/script.js b/site/src/components/landing/script.js new file mode 100644 index 0000000..2a290df --- /dev/null +++ b/site/src/components/landing/script.js @@ -0,0 +1,12 @@ +import quotes from './quotes' + +export default +{ + name: 'landing', + + computed: + { + quote: () => quotes[Math.floor(quotes.length * Math.random())], + url: () => window.location.href + } +} \ No newline at end of file diff --git a/site/src/components/landing/style.styl b/site/src/components/landing/style.styl new file mode 100644 index 0000000..0ecc9d7 --- /dev/null +++ b/site/src/components/landing/style.styl @@ -0,0 +1,7 @@ +.landing + position absolute + top 0 + right 0 + width 75% + height 100% + background rgba(0, 255, 0, 0.3) diff --git a/site/src/components/landing/template.html b/site/src/components/landing/template.html new file mode 100644 index 0000000..c4b6d36 --- /dev/null +++ b/site/src/components/landing/template.html @@ -0,0 +1,14 @@ +
+
+ Welcome to keppler! +
+
+ Here you can browse the presenter's code in real time. +
+
+ "{{ quote }}" +
+
+ {{ url }} +
+
\ No newline at end of file diff --git a/site/src/components/project/script.js b/site/src/components/project/script.js index 5d05603..aee101a 100644 --- a/site/src/components/project/script.js +++ b/site/src/components/project/script.js @@ -1,5 +1,6 @@ import FilesTree from '@/components/files-tree' import File from '@/components/file' +import Landing from '@/components/landing' import Chat from '@/components/chat' import Alert from '@/components/alert' @@ -11,6 +12,7 @@ export default { FilesTree, File, + Landing, Chat, Alert }, diff --git a/site/src/components/project/template.html b/site/src/components/project/template.html index 68e09e3..71bb2ed 100644 --- a/site/src/components/project/template.html +++ b/site/src/components/project/template.html @@ -3,6 +3,7 @@ + \ No newline at end of file