Jelajahi Sumber

Remove Contact Page and Closes #46

Yoginth 6 tahun lalu
induk
melakukan
979c4517a7

+ 0 - 1
cmd/web.go

@@ -305,7 +305,6 @@ func runWeb(c *cli.Context) error {
 	m.Get("/security", ignSignIn, pages.Security)
 	m.Get("/verified", ignSignIn, pages.Verified)
 	m.Get("/help", ignSignIn, pages.Help)
-	m.Get("/contact", ignSignIn, pages.Contact)
 
 	// ***** END: Pages *****
 

+ 0 - 24
public/less/_pages.less

@@ -104,25 +104,6 @@
     margin-bottom: 3em;
 }
 
-.contact {
-    padding-left: 5%;
-    padding-right: 5%;
-
-    label {
-        color: @white-100 !important;
-    }
-
-    .color {
-        color: @white-100 !important;
-        background: @primary-light !important;
-    }
-
-    .desc {
-        margin-top: 0 !important;
-        color: #e4e4e4;
-    }
-}
-
 // Mobile
 @media (max-width: 1020px) {
     .pages {
@@ -131,11 +112,6 @@
             max-width: calc(100% - @20);
         }
     }
-    .contact {
-        .desc {
-            display: none;
-        }
-    }
     .pages-small {
         &.head, .box-head {
             font-size: 25px !important;

+ 1 - 1
public/robots.txt

@@ -1,4 +1,4 @@
-# If you would like to crawl Gitote contact us at support@gitote.in.
+# If you would like to crawl Gitote contact us at me@yoginth.com.
 
 #
 #

+ 0 - 10
routes/pages/pages.go

@@ -26,9 +26,6 @@ const (
 	// BrandTPL page template
 	BrandTPL = "pages/brand"
 
-	// ContactTPL page template
-	ContactTPL = "pages/contact"
-
 	// ContributeTPL page template
 	ContributeTPL = "pages/contribute"
 
@@ -106,10 +103,3 @@ func Help(c *context.Context) {
 
 	c.HTML(200, HelpTPL)
 }
-
-// Contact shows contact page
-func Contact(c *context.Context) {
-	c.Data["Title"] = "Contact"
-
-	c.HTML(200, ContactTPL)
-}

+ 0 - 3
templates/base/info_bar.tmpl

@@ -46,9 +46,6 @@
                 <a href="https://help.gitote.in">
                     <span class="infobar align hide-mobile">Docs</span>
                 </a>
-                <a href="{{AppURL}}contact">
-                    <span class="infobar">Support</span>
-                </a>
             </div>
         </div>
     </div>

+ 1 - 2
templates/pages/about.tmpl

@@ -50,8 +50,7 @@
 
         <h2>Contacting Gitote</h2>
         <p class="pages-small">
-            You can reach us for support or any other questions via our <a href="/contact">contact form</a> or at 
-            <a href="mailto://support@gitote.in">support@gitote.in</a>.
+            You can reach us for support on <a href="mailto://me@yoginth.com">me@yoginth.com</a>.
         </p>
     </div>
     {{template "base/footer" .}}

+ 0 - 49
templates/pages/contact.tmpl

@@ -1,49 +0,0 @@
-<div class="pages bg">
-    {{template "base/head" .}}
-    <div class="pages head">
-        <p class="text">💬 Contact Gitote 💬</p>
-    </div>
-    <div class="pages body">
-        <form class="ui form contact">
-            <div class="statuscontact"></div>
-            <div class="field">
-                <label>How can we help?</label>
-                <div class="ui fluid selection dropdown color">
-                    <input type="hidden" name="user">
-                    <i class="dropdown icon"></i>
-                    <div class="default text">Select type</div>
-                    <div class="menu">
-                        <div class="item" data-value="help">Get Help with Gitote</div>
-                        <div class="item" data-value="abuse">Report Abuse</div>
-                        <div class="item" data-value="content">Report Content</div>
-                        <div class="item" data-value="dmca">Copyright claims (DMCA)</div>
-                        <div class="item" data-value="privacy">Privacy concerns</div>
-                    </div>
-                </div>
-            </div>
-            <div class="field">
-                <label>Name</label>
-                <input class="color" value="{{.LoggedUser.FullName}}" type="text" placeholder="Your Name">
-            </div>
-            <div class="field">
-                <label>Email</label>
-                <input class="color" value="{{.LoggedUser.Email}}" type="email" placeholder="Email">
-            </div>
-            <div class="field">
-                <label>Subject</label>
-                <input class="color" type="text" placeholder="Enter the Purpose">
-            </div>
-            <div class="field">
-                <label>Enter the message</label>
-                <textarea class="color"></textarea>
-            </div>
-            <p class="ui left desc">
-                Gitote Support can only provide assistance for the Gitote platform.
-                <br/>
-                For project-specific support, check the project’s README file.
-            </p>
-            <button class="ui button green right" type="submit">Submit</button>
-        </form>
-    </div>
-    {{template "base/footer" .}}
-</div>

+ 1 - 21
templates/sitemap.tmpl

@@ -1,21 +1 @@
-https://gitote.in/
-https://gitote.in/login
-https://gitote.in/join
-https://gitote.in/about
-https://gitote.in/faq
-https://gitote.in/privacy
-https://gitote.in/tos
-https://gitote.in/brand
-https://gitote.in/contribute
-https://gitote.in/security
-https://gitote.in/verified
-https://gitote.in/makers
-https://gitote.in/contact
-https://gitote.in/request
-https://gitote.in/sponsorship
-https://gitote.in/sponsors
-https://gitote.in/trending
-https://gitote.in/explore
-https://gitote.in/explore/repos
-https://gitote.in/explore/users
-https://gitote.in/explore/organizations
+https://gitote.yoginth.com

+ 1 - 1
templates/user/auth/prohibit_login.tmpl

@@ -9,7 +9,7 @@
 						<br/>
 						<h2>Your account is prohibited to Login</h2>
 						<p><b>Reason:</b> {{.LoggedUser.StaffNotes}}</p>
-						<h5>Please contact <a href="mailto://support@gitote.in">support@gitote.in</a> for more information.</h5>
+						<h5>Please contact <a href="mailto://me@yoginth.com">me@yoginth.com</a> for more information.</h5>
 						<a href="{{AppURL}}user/logout"><h2>Logout</h2></a>
 					</div>
 				</div>

+ 0 - 1
templates/user/dashboard/dashboard.tmpl

@@ -25,7 +25,6 @@
 						<div class="ui link list">
 							<a class="item" href="https://medium.com/gitote">Blog</a>
 							<a class="item" href="{{AppURL}}about">About</a>
-							<a class="item" href="{{AppURL}}contact">Contact</a>
 							<a class="item" href="https://give.gitote.in">Donate</a>
 						</div>
 					</div>