From d94584f0522ba524c3bbfb0b2a7091c3f707e9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20L=C3=BCbeck?= Date: Fri, 28 Dec 2018 22:16:19 +0100 Subject: [PATCH 1/2] fixed #4 --- public/stylesheets/style.css | 4 ++++ views/layout.pug | 2 +- views/layout2.pug | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 3ac5a45..5af5722 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -55,4 +55,8 @@ button{ z-index: 9999999; grid-row-gap: 5px; background-color: whitesmoke; +} + +#github-icon{ + text-align: center; } \ No newline at end of file diff --git a/views/layout.pug b/views/layout.pug index 5caab6e..88b2632 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -23,7 +23,7 @@ html button.reset_view.btn.btn-outline-info.btn-sm Reset view button.post_details.btn.btn-outline-danger.btn-sm Post details a.btn.btn-outline-primary.btn-sm(href='/tutorial') Create a tutorial - a(href='https://github.com/arunkumar413/Code-Ground' target="_blank" ) + a#github-icon(href='https://github.com/arunkumar413/Code-Ground' target="_blank" ) i.fab.fa-github.fa-2x i.fas.fa-sun.btn.btn-link i.fas.fa-moon.btn.btn-link diff --git a/views/layout2.pug b/views/layout2.pug index a2f437e..b6ca2ed 100644 --- a/views/layout2.pug +++ b/views/layout2.pug @@ -27,7 +27,7 @@ html a.btn.btn-outline-primary.btn-sm(href='/tutorial') Create a tutorial -var h = '/out/' + data.doc._id; a.btn.btn-outline-primary.btn-sm(href=h target='_blank') Output in new tab - a(href='https://github.com/arunkumar413/Code-Ground' target="_blank") + a#github-icon(href='https://github.com/arunkumar413/Code-Ground' target="_blank") i.fab.fa-github.fa-2x i.fas.fa-sun.btn.btn-link i.fas.fa-moon.btn.btn-link From 9c7262139c88da945a0c6965a80d15db381c67d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20L=C3=BCbeck?= Date: Fri, 28 Dec 2018 22:16:39 +0100 Subject: [PATCH 2/2] fixed #5 --- views/editor.pug | 3 +++ views/editor2.pug | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/views/editor.pug b/views/editor.pug index 5f09dee..fe543d8 100644 --- a/views/editor.pug +++ b/views/editor.pug @@ -2,10 +2,13 @@ extends layout block content .editors .html + span HTML pre#html_editor .css + span CSS pre#css_editor .js + span JS pre#js_editor diff --git a/views/editor2.pug b/views/editor2.pug index a8a8e47..f1a9cd5 100644 --- a/views/editor2.pug +++ b/views/editor2.pug @@ -2,11 +2,13 @@ extends layout2 block content .editors .html - span HTML + span HTML pre#html_editor #{data.doc.html} .css + span CSS pre#css_editor #{data.doc.css} .js + span JS pre#js_editor #{data.doc.js} - var s = '/out/'+ data.doc._id iframe(id ='frame' src=s) \ No newline at end of file