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

Layout improvements #5

Merged
merged 3 commits into from
Sep 3, 2019
Merged
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
2 changes: 1 addition & 1 deletion app/components/coaching.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default Component.extend({
submit() {
$.ajax({
type: "POST",
url: "https://api.nextrelease.io/release-coach/",
url: "https://api.nextrelease.io/app/release-coach/",
data: JSON.stringify({
email: console.log(this.get('email')),
markdown: console.log(this.get('textarea')),
Expand Down
17 changes: 17 additions & 0 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,20 @@
textarea.form-control {
height: 400px;
}

.wrapper {
display: flex;
width: 100%;
}

#sidebar {
width: 250px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #7386D5;
color: #fff;
transition: all 0.3s;
}
102 changes: 50 additions & 52 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,61 +1,59 @@
<div class="container">
<div class="row align-items-center">
<div class="row align-items-center">
<h1 class="display-4">
Welcome to <span class="text-primary">Release Note Coach</span>.
Welcome to <span class="text-primary">Release Note Coach</span>.
</h1>
<p class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
Free online tool to help you create release notes based on best practices, making them readable and pretty.
</p>
<p class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
Free online tool to help you create release notes based on best practices, making them readable and pretty.
</p>
</div>
<div class="row align-items-center">
<div class="col-12">
{{ alert }}
</div>
<div class="row align-items-center">
<div class="col-12">
{{ alert }}
</div>
<div class="col-12">
{{ coaching }}
</div>
<div class="col-12">
{{ coaching }}
</div>
<div class="row align-items-center">
<div class="col-md-4 col-sm-12">
<p>
Supported Release Note Formats
</p>
<ul>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/bullet_list.md">Bullet List</a></li>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/line_category.md">Line Based Categorization</a></li>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/section_categories.md">Section Based Categorization</a></li>
</ul>
</div>
<div class="col-md-4 col-sm-12">
<p>
Coaching Based on Best Practices
</p>
<ul>
<li><a href="https://keepachangelog.com/en/1.0.0/">Keep A Changelog</a></li>
<li><a href="https://slackhq.com/a-little-thing-about-release-notes">Slack: A Little Thing About Release Notes</a></li>
<li><a href="https://semver.org/">Semantic Versioning</a></li>
</ul>
</div>
<div class="col-md-4 col-sm-12">
<p>
Automatic Feedback on All Your Releases
</p>
<ul>
<li><a href="https://github.com/marketplace/nextrelease-io">GitHub Marketplace: Next Release</a></li>
<li><a href="https://www.nextrelease.io/">NextRelease.io</a></li>
</ul>
<br />
</div>
</div>
<div class="row align-items-center">
<div class="col-md-4 col-sm-12">
<p>
Supported Release Note Formats
</p>
<ul>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/bullet_list.md">Bullet List</a></li>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/line_category.md">Line Based Categorization</a></li>
<li><a href="https://github.com/nextreleaseio/narwhal-note-coach/blob/master/docs/supported_formats/section_categories.md">Section Based Categorization</a></li>
</ul>
</div>
<div>
<p class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
Like it? Share it!
</p>
<div class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
{{fa-icon 'twitter' prefix="fab" size="3x"}}
{{fa-icon 'facebook' prefix="fab" size="3x"}}
{{fa-icon 'reddit-alien' prefix="fab" size="3x"}}
</div>
<div class="col-md-4 col-sm-12">
<p>
Coaching Based on Best Practices
</p>
<ul>
<li><a href="https://keepachangelog.com/en/1.0.0/">Keep A Changelog</a></li>
<li><a href="https://slackhq.com/a-little-thing-about-release-notes">Slack: A Little Thing About Release Notes</a></li>
<li><a href="https://semver.org/">Semantic Versioning</a></li>
</ul>
</div>
<div class="col-md-4 col-sm-12">
<p>
Automatic Feedback on All Your Releases
</p>
<ul>
<li><a href="https://github.com/marketplace/nextrelease-io">GitHub Marketplace: Next Release</a></li>
<li><a href="https://www.nextrelease.io/">NextRelease.io</a></li>
</ul>
<br />
</div>
</div>
<div>
<p class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
Like it? Share it!
</p>
<div class="lead text-center text-md-center text-muted mb-6 mb-lg-8">
<a href="https://twitter.com/intent/tweet?text=Just+stepped+up+my+release+note+game+with+the+notes+coach%21+Check+it+out+at+https%3A%2F%2Fnextrelease.io%2Fcoach">{{fa-icon "twitter" prefix="fab" size="3x"}}</a>
</div>
</div>
</div>
{{outlet}}
10 changes: 10 additions & 0 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ module.exports = function(environment) {
Date: false
}
},
contentSecurityPolicy: {
'script-src': "'self' 'unsafe-inline'",
'connect-src':
"'self' https://*.nextrelease.io https://*.herokuapp.com http://localhost:* https://app.getsentry.com",
'default-src': "'none'",
'style-src': "'self' 'unsafe-inline' https://fonts.googleapis.com",
'font-src': "'self' fonts.gstatic.com",
'img-src': "'self' *.gravatar.com *.wp.com data:",
'media-src': "'self'"
},

APP: {
// Here you can pass flags/options to your application instance
Expand Down
Loading