Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

adjust layout and show login buttons

goenning1c7dfc2fd670
diff --git a/public/css/main.css b/public/css/main.css
index 005658edc..5387fe457 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -1,9 +1,5 @@
-#new-idea {
- margin-top: 20px;
-}
-
-#new-idea button {
- margin-top: 20px;
+#new-idea-input {
+ margin-bottom: 20px;
}
.ideas-list {
diff --git a/public/js/main.js b/public/js/main.js
index d89eec26d..cbc0cedab 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -14,8 +14,8 @@ document.addEventListener("DOMContentLoaded", function() {
$(this).addClass("loading");
});
- var input = document.querySelector("#new-idea input");
- var submit = document.querySelector("#new-idea button");
+ var input = document.querySelector("#new-idea-input");
+ var submit = document.querySelector("#new-idea-submit");
submit.style.display = 'none';
diff --git a/views/index.html b/views/index.html
index b7102f50e..01a18128a 100644
--- a/views/index.html
+++ b/views/index.html
@@ -7,17 +7,38 @@
<h1 class="ui header">Welcome to our feedback forum</h1>
</div>
- <div id="new-idea" class="ui container">
+ <div class="ui container">
<h3>I want ...</h3>
<div class="ui fluid input">
- <input type="text" placeholder="Enter your idea, new feature or suggestion here ...">
+ <input id="new-idea-input" type="text" placeholder="Enter your idea, new feature or suggestion here ..." />
+ </div>
+
+ <div id="new-idea-submit" class="ui grid">
+ <div class="four wide column">
+ {{if not .Claims }}
+ <p>Please log in before posting an idea...</p>
+ <div class="ui list">
+ <div class="item">
+ <a href="{{ .AuthEndpoint }}/oauth/facebook?redirect={{ .CurrentUrl }}" class="ui fluid facebook button">
+ <i class="facebook icon"></i>
+ Sign in with Facebook
+ </a>
+ </div>
+ <div class="item">
+ <a href="{{ .AuthEndpoint }}/oauth/google?redirect={{ .CurrentUrl }}" class="ui fluid google plus button">
+ <i class="google icon"></i>
+ Sign in with Google
+ </a>
+ </div>
+ </div>
+ {{ else }}
+ <button class="ui positive button">
+ Submit Idea
+ </button>
+ {{ end }}
+ </div>
</div>
- <p>
- <button class="ui positive button">
- Submit Idea
- </button>
- </p>
</div>
<div class="ui container ideas-list">