Initial upload

This commit is contained in:
rzmk 2021-06-21 21:17:25 -04:00
commit f7d2a75168
14 changed files with 1106 additions and 0 deletions

6
views/about.ejs Normal file
View file

@ -0,0 +1,6 @@
<%- include("partials/header"); -%>
<h1>About</h1>
<p> <%= aboutContent %> </p>
<br />
<p> <a href="#">Click here to see this project's details.</a> </p>
<%- include("partials/footer"); -%>

14
views/compose.ejs Normal file
View file

@ -0,0 +1,14 @@
<%- include("partials/header"); -%>
<h1>Compose</h1>
<form class="" action="/compose" method="post">
<div class="form-group">
<label>Title</label>
<input class="form-control" type="text" name="postTitle">
<label>Post</label>
<textarea class="form-control" name="postBody" rows="5" cols="30"></textarea>
</div>
<button class="btn btn-primary" type="submit" name="button">Publish</button>
</form>
<%- include("partials/footer"); -%>

106
views/contact.ejs Normal file
View file

@ -0,0 +1,106 @@
<%- include("partials/header"); -%>
<style>
body{
background: #eee;
}
span{
font-size:15px;
}
a{
text-decoration:none;
color: #1abc9c;
border-bottom:2px solid #1abc9c;
}
.box{
padding:60px 0px;
}
.box-part{
background:#FFF;
border-radius:0;
padding:60px 10px;
margin:30px 0px;
}
.text{
margin:20px 0px;
}
.fa{
color:#47cab0;
}
.contact-title {
margin-bottom: -5rem;
}
</style>
<div align="center">
<h1 class="contact-title">Contact</h1>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="box">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="box-part text-center">
<i class="fa fa-github fa-3x" aria-hidden="true"></i>
<div class="title">
<h4>Instagram</h4>
</div>
<div class="text">
<span>Explore a variety of projects and code here. Websites, scripts, club & group work, and more!</span>
</div>
<a href="https://github.com/rzmk">Explore now</a>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="box-part text-center">
<i class="fa fa-linkedin fa-3x" aria-hidden="true"></i>
<div class="title">
<h4>Linkedin</h4>
</div>
<div class="text">
<span>Connect through Linkedin. View my past and current professional development here!</span>
</div>
<a href="https://linkedin.com/in/mueez-khan">Connect now</a>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="box-part text-center">
<i class="fa fa-twitter fa-3x" aria-hidden="true"></i>
<div class="title">
<h4>Twitter</h4>
</div>
<div class="text">
<span>Scroll the feed here! I post here occasionally, and always like on Fridays.</span>
</div>
<a href="https://twitter.com/mueezkhan_">Scroll here</a>
</div>
</div>
</div>
</div>
</div>
</div>
<%- include("partials/footer"); -%>

19
views/home.ejs Normal file
View file

@ -0,0 +1,19 @@
<%- include("partials/header"); -%>
<h1>Welcome to The Project Mind.</h1>
<p> <%= startingContent %> </p>
<% posts.forEach(function(post){ %>
<h1><%=post.title%></h1>
<p>
<%=post.content.substring(0, 100) + " ..."%>
<a href="/posts/<%=post.title%>">Read More</a>
</p>
<% }) %>
<%- include("partials/footer"); -%>

13
views/login.ejs Normal file
View file

@ -0,0 +1,13 @@
<%- include("partials/header"); -%>
<body class="text-center">
<main class="form-signin">
<form action="/login" class="form-signin" method="POST">
<h1 class="h3 mb-3 fw-normal">Blog Login</h1>
<input class="form-control" type="text" name="passInput" autofocus>
<button class="w-100 btn btn-lg btn-primary" type="submit">Log in</button>
<p class="mt-5 mb-3 text-muted">&copy; Mueez Khan</p>
</form>
</main>
</body>
<%- include("partials/footer"); -%>

View file

@ -0,0 +1,9 @@
</div>
<div class="footer-padding"></div>
<div class="footer">
<p>Made with ❤️ by Mueez Khan</p>
</div>
</div>
</body>
</html>

24
views/partials/header.ejs Normal file
View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>The Project Mind</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/styles.css">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a href="/"><p class="navbar-brand">THE PROJECT MIND</p></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li id="home"><a href="/">HOME</a></li>
<li id="about"><a href="/about">ABOUT US</a></li>
<li id="contact"><a href="/contact">CONTACT US</a></li>
</ul>
</div>
</nav>
<body>
<div class="container">

6
views/post.ejs Normal file
View file

@ -0,0 +1,6 @@
<%- include("partials/header"); -%>
<h1><%=title%></h1>
<p><%=content%></p>
<%- include("partials/footer"); -%>