Skip to content

Commit

Permalink
env updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Oisamoje Victor committed Aug 13, 2022
1 parent efdc456 commit 609610d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 149 deletions.
2 changes: 1 addition & 1 deletion controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ exports.sendEmail = (req, res) => {
// create reusable transporter object using the default SMTP transport
const Transporter = nodemailer.createTransport({
host: process.env.host,
port: 2525,
port: process.env.sendPort,
auth: {
user: process.env.user,
pass: process.env.pass,
Expand Down
38 changes: 12 additions & 26 deletions public/about.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*GENERAL*/

@import url('https://fonts.googleapis.com/css2?family=Vollkorn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Vollkorn&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap");

* {
text-decoration: none;
Expand Down Expand Up @@ -31,7 +31,7 @@ header {

header nav a {
padding: 0 15px;
font-family: 'Ubuntu', sans-serif;
font-family: "Ubuntu", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 24px;
Expand All @@ -42,20 +42,20 @@ header nav a:hover {
color: #0d47a1;
}

header nav .top-menu-home a {
font-family: 'Ubuntu', sans-serif;
header nav .top-menu-about-us a {
font-family: "Ubuntu", sans-serif;
font-style: normal;
font-weight: 400;
/* font-size: 24px; */
font-size: 24px;
color: #2196f3;
}

header nav .top-menu-home a:hover {
header nav .top-menu-about-us a:hover {
color: #0d47a1;
}

header nav .top-menu-get-started a {
font-family: 'Ubuntu', sans-serif;
font-family: "Ubuntu", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 24px;
Expand All @@ -71,24 +71,10 @@ header nav .top-menu-get-started a:hover {
background-color: #e9ecef;
}

.btn-dark {
width: 70px;
height: 30px;
border-radius: 20px;
cursor: pointer;
}

.dark-mode {
background-color: black;
color: #ffff;
}
.dark-mode > footer {
background-color: navy;
}
/*GENERAL*/

h2 {
font-family: 'Ubuntu', sans-serif;
font-family: "Ubuntu", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 40px;
Expand All @@ -98,7 +84,7 @@ h2 {
}

p {
font-family: 'Vollkorn', serif;
font-family: "Vollkorn", serif;
font-style: normal;
font-weight: 400;
font-size: 20px;
Expand Down Expand Up @@ -174,7 +160,7 @@ footer {
}

footer .bottom-menu-item a {
font-family: 'Vollkorn', serif;
font-family: "Vollkorn", serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
Expand Down Expand Up @@ -236,7 +222,7 @@ footer .bottom-menu {

/*FIRST ROW*/

#row-one-right img[src='images/laptop_user.svg'] {
#row-one-right img[src="images/laptop_user.svg"] {
width: 259px;
height: 310px;
}
Expand Down
10 changes: 6 additions & 4 deletions sample_env_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ Port = 8000

dB_URI = 'mongodb://localhost/cardify-backend'

JWT_SECRET = 'secretcode'
JWT_SECRET = '<YOUR_SECRET_CODE>'

to = '[email protected]'
to = '<YOUR_EMAIL_ADDRESS(receivers address)>'

host = "smtp.mailtrap.io"

user = "1e74210c8274db"
user = "<YOUR_USER_CREDENTIALS>"

pass = "33072385728da8"
pass = "<USER_PASSWORD>"

sendPort = <PORT_NUMBER e.g 2525>
2 changes: 1 addition & 1 deletion views/contact.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</button>
<nav class="top-menu">
<div class="top-menu-item"><a href="index">Home</a></div>
<div class="top-menu-item"><a href="cards">Library</a></div>
<div class="top-menu-item"><a href="library">Library</a></div>
<div class="top-menu-item"><a href="about">About Us</a></div>
<div class="top-menu-item-get-started"><a href="signup">Get Started</a></div>
<div class="top-menu-item"><a href="signin">Sign In</a></div>
Expand Down
4 changes: 2 additions & 2 deletions views/develop-center.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<div id="top-menu-container">
<!-- <button class="btn-dark" onclick="myFunction()">Dark mode</button> -->
<nav class="top-menu">
<div class="top-menu-item-home"><a href="index">Home</a></div>
<div class="top-menu-item"><a href="index">Home</a></div>
<div class="top-menu-item"><a href="use">How to</a></div>
<div class="top-menu-item"><a href="developer">develop-center</a></div>
<div class="top-menu-item"><a href="developer">Developer center</a></div>
</nav>
</div>
</header>
Expand Down
115 changes: 0 additions & 115 deletions views/password.html

This file was deleted.

0 comments on commit 609610d

Please sign in to comment.