Skip to content

Commit

Permalink
Merge pull request #74 from scify/project_lp_cta
Browse files Browse the repository at this point in the history
Fixed navbar
  • Loading branch information
PavlosIsaris authored Oct 4, 2024
2 parents 7f2b8fd + a74cce2 commit ca7fd46
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ APP_KEY=
APP_DEBUG=true
DEBUGBAR_ENABLED=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost
APP_URL=http://localhost:8000
APP_VERSION=v5.0
GOOGLE_MAPS_KEY=

Expand Down
1 change: 0 additions & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
*/

'url' => env('APP_URL', 'http://localhost'),
'mix_url' => env('VITE_ASSET_URL', null),
/*
|--------------------------------------------------------------------------
| Application Timezone
Expand Down
7 changes: 7 additions & 0 deletions resources/assets/sass/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -507,3 +507,10 @@ a.link {
cursor: pointer;
}
}

.nav-item {
.user-image {
height: 35px;
margin-right: 5px;
}
}
23 changes: 10 additions & 13 deletions resources/views/crowdsourcing-project/partials/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
<span class="navbar-toggler-icon"></span>
</button>

@if(isset($viewModel->project))
<div class="collapse navbar-collapse pull-right" id="top-menu-content">
<ul class="nav navbar"
<div class=" collapse navbar-collapse pull-right
" id="top-menu-content">
<ul class="nav navbar-nav ml-auto">
@if(!isset($onErrorPage))
@include("partials.login-menu-options")
@endif
@include('partials.content-languages', ['languages' => $viewModel->project->languages])
</ul>
</div>
@endif
<div class="collapse navbar-collapse pull-right" id="top-menu-content">
<ul class="nav navbar-nav ml-auto">
@if(!isset($onErrorPage))
@include("partials.login-menu-options")
@endif
@if(isset($viewModel->project))
@include('partials.content-languages', ['languages' => $viewModel->project->languages])
@endif
</ul>
</div>
</nav>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</li>
@endif
<li class="nav-item dropdown user user-menu">
<a class="nav-link" href="#" class="dropdown-toggle" data-toggle="dropdown">
<a class="nav-link py-0" href="#" class="dropdown-toggle" data-toggle="dropdown">
@if (Auth::user()->avatar)
<img loading="lazy" src="{{ Auth::user()->avatar}}" class="user-image">
@endif
Expand Down
4 changes: 2 additions & 2 deletions resources/views/partials/login-menu-options.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
</li>

<li class="nav-item dropdown user user-menu">
<a class="nav-link" href="#" class="dropdown-toggle" data-toggle="dropdown">
<a class="nav-link py-0" href="#" class="dropdown-toggle" data-toggle="dropdown">
@if (Auth::user()->avatar)
<img loading="lazy" src="{{ Auth::user()->avatar}}" class="user-image">
<img loading="lazy" src="{{ Auth::user()->avatar}}" class="user-image" alt="User Image">
@endif
<span class="hidden-xs">{{Auth::user()->nickname}}</span>
<i class="fas fa-caret-down"></i>
Expand Down
8 changes: 0 additions & 8 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ import vue from "@vitejs/plugin-vue";
import path from "path";

export default defineConfig({
// declaring the base path for the project
server: {
port: 3000,
hmr: {
host: "localhost",
protocol: "ws",
},
},
plugins: [
laravel({
input: [
Expand Down

0 comments on commit ca7fd46

Please sign in to comment.