Skip to content

Commit

Permalink
minor changes made, for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuNegi755 committed Aug 6, 2020
1 parent e999acc commit 57baddf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Digi Menu</title>
<title>Dineezy | Digital Menu and Ordering Software</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
3 changes: 3 additions & 0 deletions client/src/components/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
z-index: 4;
padding: 0;
}
.nag {
padding: 0;
}
#brand-logo{
width: auto;
height: 4rem;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const NavbarForSite = (props) => {

return (

<nav className="navbar navbar-expand-lg navbar-dark">
<nav className="navbar navbar-expand-lg navbar-dark nag">
<Link id="navbar-brand" to="/">
<span>
<img id="brand-logo" src={DMLogo} alt="Company Logo"/>
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ app.use('/api', authRoutes);
app.use('/api', phoneVerificationRoutes);
app.use('/api', databaseApiRoutes);

app.get('/shops', (req, res) => res.redirect(process.env.CLIENT_URI+'/shops' || 'http://localhost:3000/shops'));
app.get('/', (req, res) => res.redirect(process.env.CLIENT_URI || 'http://localhost:3000'));

//unknown path
Expand Down
2 changes: 1 addition & 1 deletion routes/auth-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ router.get(
passport.authenticate("google"),
(req, res) => {
logger.log('info', 'logged in successfully');
res.redirect("/");
res.redirect("/shops");
}
);

Expand Down

0 comments on commit 57baddf

Please sign in to comment.