aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-07-18 00:57:36 +0530
committerBobby <[email protected]>2022-07-18 00:57:36 +0530
commitb31bd3dbabb57eda3fddfaa7a59e01e73442834f (patch)
tree8acf4f7eec348c9d9e143933ff2ad59784233f2e /views
parent406a35de9d0d37d20123a0a3e961614142c2cf3c (diff)
downloadthatcomputerscientist-b31bd3dbabb57eda3fddfaa7a59e01e73442834f.tar.xz
thatcomputerscientist-b31bd3dbabb57eda3fddfaa7a59e01e73442834f.zip
Change Init to Ghost
Diffstat (limited to 'views')
-rw-r--r--views/account.ejs104
-rw-r--r--views/errors/page_error.ejs10
-rw-r--r--views/index.ejs25
-rw-r--r--views/partials/footer.ejs2
-rw-r--r--views/partials/header.ejs12
-rw-r--r--views/partials/sidebar.ejs43
6 files changed, 0 insertions, 196 deletions
diff --git a/views/account.ejs b/views/account.ejs
deleted file mode 100644
index feb59a37..00000000
--- a/views/account.ejs
+++ /dev/null
@@ -1,104 +0,0 @@
-<%- include('partials/header.ejs') %> <%- include('partials/sidebar.ejs') %>
-<div class="main">
- <h1>My Account</h1>
- <p>You can change account settings for <strong><%= user.username %></strong> here. If you wish to have additional support, please contact me at <a href="mailto:[email protected]?subject=[URGENT]%20Support%20Request%20for%20<%= user.username %>">[email protected]</a>. Please take care of the following points before you submit your support request:</p>
- <ul>
- <li>Please do not edit the subject line.</li>
- <li>As an individual monitoring this email, I request you to refrain yourself from spamming.</li>
- <li>Please do not include any sensitive information (like credit card numbers, passwords, etc.) in the email.</li>
- <li>Allow me upto 48 hours to respond to your support request.</li>
- <li>Do not send multiple support requests.</li>
- <li>Please note that this is a support request related to your account. Please do not file any bugs here. If you have noticed a bug, please report it to the <a href="https://github.com/luciferreeves/thatcomputerscientist/issues">GitHub Issues</a> page.</li>
- </ul>
- <p>Your avatar is fetched from gravatar. Update your gravatar email to fetch the avatar. If you don't have an account, you can sign up for one <a href="https://en.gravatar.com/" target="_blank">here</a>. If you haven't set up your gravatar email, we would try to fetch your profile picture from your account email, by default. If your account email and gravatar email are the same, you do not need to set a gravatar email.</p>
- <% if (user.url !== "") { %>
- <p>Your account is publicly accessible at: <a href="<%= user.url %>"><%= user.url %></a>.</p>
- <% } %>
- <div class="account">
- <div class="ac-sidebar">
- <fieldset>
- <legend>Avatar</legend>
- <img src="https://www.gravatar.com/avatar/<%= user.avatar %>?s=200" alt="<%= user.username %>'s avatar" width="200" height="200"/>
- </fieldset>
- <form method="post" action="/auth/changePassword">
- <fieldset>
- <legend>Change Password</legend>
- <label for="password">Current Password</label>
- <input type="password" name="password" id="password" placeholder="Current Password" />
- <label for="new_password">New Password</label>
- <input type="password" name="new_password" id="new_password" placeholder="New Password" />
- <input type="submit" value="Change Password" />
- <% if (locals.messages.passchangesuccess) { %>
- <p class="success"><%= messages.passchangesuccess %></p>
- <% } %>
- <% if (locals.messages.passchangeerror) { %>
- <p class="error"><%= messages.passchangeerror %></p>
- <% } %>
- </fieldset>
- </form>
- <form method="post" onsubmit="event.preventDefault();">
- <fieldset>
- <legend class="error">Delete Account</legend>
- <input type="submit" value="Delete Account" />
- </fieldset>
- </form>
- </div>
- <div class="ac-main">
- <form method="post" action="/account/updateAccount">
- <fieldset>
- <legend>Account Details</legend>
- <label for="firstname">First Name</label>
- <input type="text" name="firstname" id="firstname" value="<%= user.firstname %>" placeholder="First Name" />
- <label for="lastname">Last Name</label>
- <input type="text" name="lastname" id="lastname" value="<%= user.lastname %>" placeholder="Last Name" />
- <label for="gravatarEmail">Gravatar Email</label>
- <input type="text" name="gravatarEmail" id="gravatarEmail" value="<%= user.gravatarEmail %>" placeholder="Gravatar Email" />
- <label for="location">Location</label>
- <input type="text" name="location" id="location" value="<%= user.location %>" placeholder="Location" />
- <label for="bio">Bio</label>
- <textarea name="bio" id="bio" placeholder="Bio"><%= user.bio %></textarea>
- <label for="isPublic">Account Visibility</label>
- <select name="isPublic" id="isPublic">
- <option value="0" <% if (user.public == 0) { %>selected="selected"<% } %>>Private</option>
- <option value="1" <% if (user.public == 1) { %>selected="selected"<% } %>>Public</option>
- </select>
- <% if (user.public == 1) { %>
- <label for="emailPublic">Email Visibility</label>
- <select name="emailPublic" id="emailPublic">
- <option value="0" <% if (user.emailPublic == 0) { %>selected="selected"<% } %>>Private</option>
- <option value="1" <% if (user.emailPublic == 1) { %>selected="selected"<% } %>>Public</option>
- </select>
- <% } %>
- <input type="submit" value="Update Account" />
- <% if (locals.messages.updateaccsuccess) { %>
- <p class="success"><%= messages.updateaccsuccess %></p>
- <% } %>
- <% if (locals.messages.updateaccerror) { %>
- <p class="error"><%= messages.updateaccerror %></p>
- <% } %>
- </fieldset>
- </form>
- <form method="post" action="/account/sendVerificationEmail">
- <fieldset>
- <legend>Change Email</legend>
- <label for="email">Your current registered email is <em><u><%= user.email %></u></em>. Please note that a verification email will be sent to the new email address in order to update the current email address. Please provide the new email address in the box below:</label>
- <input type="email" name="email" id="email" placeholder="New Email" />
- <input type="submit" value="Change Email" />
- <% if (locals.messages.mailsenderror) { %>
- <p class="error"><%= messages.mailsenderror %></p>
- <% } %>
- <% if (locals.messages.mailsendsuccess) { %>
- <p class="success"><%= messages.mailsendsuccess %></p>
- <% } %>
- </fieldset>
- </form>
- </div>
- </div>
-</div>
-<script>
- if (document.getElementById('accountURL')) {
- document.getElementById('accountURL').innerHTML = window.location.origin + '/profile/<%= user.username %>';
- }
-</script>
-
-<%- include('partials/footer.ejs') %>
diff --git a/views/errors/page_error.ejs b/views/errors/page_error.ejs
deleted file mode 100644
index 594c1bb7..00000000
--- a/views/errors/page_error.ejs
+++ /dev/null
@@ -1,10 +0,0 @@
-<%- include('../partials/header.ejs') %> <%- include('../partials/sidebar.ejs') %>
-<div class="main">
- <div class="errorbox">
- <h1 class="error">Whoops! Encountered an error!</h1>
- <p><%= error %></p>
- <p>Please click <a href="/">here</a> to go back to the home page.</p>
- </div>
-</div>
-
-<%- include('../partials/footer.ejs') %>
diff --git a/views/index.ejs b/views/index.ejs
deleted file mode 100644
index 9db902a3..00000000
--- a/views/index.ejs
+++ /dev/null
@@ -1,25 +0,0 @@
-<%- include('partials/header.ejs') %> <%- include('partials/sidebar.ejs') %>
-<div class="main">
- <div class="alert">
- <h1 class="center">That Computer Scientist</h1>
- <p>
- Welcome to the home of That Computer Scientist. This is my personal
- website where I share all of my thoughts, ideas, and experiences. To know
- more about me, please visit my <a href="/about">About</a> page. If you
- would like to connect with me, please visit my
- <a href="/contact">Contact</a> page. Please use the sidebar to navigate
- the site.
- </p>
- </div>
- <br>
- <div class="alert" style="background-color: rgb(223, 255, 243)">
- <p>
- This website is a work in progress. I am currently working on adding more features to this website. I aim to build a retro looking personal website, where I will share my articles and Ideas, which will be built entirely around the idea of "collaborative writing" — where anyone can write new articles or edit existing ones.
- </p>
- </div>
- <section>
- <h2>Recent Posts</h2>
- </section>
-</div>
-
-<%- include('partials/footer.ejs') %>
diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs
deleted file mode 100644
index 691287b6..00000000
--- a/views/partials/footer.ejs
+++ /dev/null
@@ -1,2 +0,0 @@
-</body>
-</html> \ No newline at end of file
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
deleted file mode 100644
index 45e44f1b..00000000
--- a/views/partials/header.ejs
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="description" content="Welcome to the home of That Computer Scientist. I am Kumar Priyansh. This is my personal website where I share all of my thoughts, ideas, and experiences.">
- <title>That Computer Scientist - <%= title %></title>
- <!-- <link rel="stylesheet" href="css/fonts.css"> -->
- <link preload rel="stylesheet" href="<%= domain %>/css/main.css">
- </head>
- <body> \ No newline at end of file
diff --git a/views/partials/sidebar.ejs b/views/partials/sidebar.ejs
deleted file mode 100644
index 0cd27160..00000000
--- a/views/partials/sidebar.ejs
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="sidebar">
- <a href="/" class="title">
- <img src="<%= domain %>/images/logo.png" alt="That Computer Scientist Logo" width="10rem" height="3.23rem">
- <!-- Login Box -->
- </a>
- <% if (locals.username) { %>
- <div class="login-box">
- <p>Welcome, <%= username %>!</p>
- <a href="<%= domain %>/auth/logout">Logout</a>
- </div>
- <% } else { %>
- <form method="post" action="<%= domain %>/auth/login">
- <fieldset>
- <legend>Login Area</legend>
- <label for="username">Username</label>
- <input type="text" id="username" name="username" placeholder="Username" autocomplete="off">
- <label for="password">Password</label>
- <input type="password" id="password" name="password" placeholder="Password">
- <% if (locals.messages) { %>
- <p class="error"><%= messages.error %></p>
- <% } %>
- <input type="submit" value="Login">
- </fieldset>
- </form>
- <% } %>
- <br>
- <fieldset>
- <legend>Navigation</legend>
- <nav>
- <ul>
- <li><a href="/">Home</a></li>
- <li><a href="/about">About</a></li>
- <li><a href="/contact">Contact</a></li>
- <li><a href="/blog">Blog</a></li>
- <% if (locals.username) { %>
- <li><a href="/account">My Account</a></li>
- <% } else { %>
- <li><a href="/register">Register</a></li>
- <% } %>
- </ul>
- </nav>
- </fieldset>
-</div>