Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend changes and updates + backend route disabling for prod only #32

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/routes/authRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const express = require('express');
const { register, login, refreshToken, users } = require('../controllers/authController');

const router = express.Router();

router.post('/register', register);
if (process.env.NODE_ENV !== 'production') {
router.post('/register', register);
}
router.post('/login', login);
router.post('/refresh-token', refreshToken);
router.get('/users', users);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/components/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="flex items-center">
<a routerLink="/" class="text-xl font-semibold"
[class.text-black]="!isHomePage || hasScrolled || isMobileMenuOpen"
[class.text-white]="isHomePage && !hasScrolled && !isMobileMenuOpen">SMETOVI</a>
[class.text-white]="isHomePage && !hasScrolled && !isMobileMenuOpen"><img class="logo" src="../../../assets/images/smetovi-logo.png"></a>
</div>

<!-- Navigation Menu on the Right (Desktop) -->
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/app/components/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ nav {
a {
padding: 8px;
}
img.logo {
max-width: 160px;
}
.sub-menu {
a {
padding: 8px 20px;
Expand Down
Binary file added frontend/src/assets/images/smetovi-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading