Skip to content

Commit

Permalink
show create map button always to logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Jan 9, 2025
1 parent 74fdc53 commit fda4da4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
Binary file added app/assets/images/frontpage/background_map4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active {
background-color: #ff6600b1 !important;
background-color: #FF781F !important;
color: #fff;
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/frontpage/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/ Hero Section
#hero.hero.section.dark-background
= image_tag "frontpage/background_map3.png", alt: "", 'data-aos': "zoom-out", 'data-aos-duration': "1000"
= image_tag "frontpage/background_map4.jpg", alt: "", 'data-aos': "zoom-out", 'data-aos-duration': "1000"
.container
.row
.col-xl-5
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/frontpage.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

%body

= render 'shared/header', menu: false, create_button: false, static: true
= render 'shared/header', menu: false, create_button: !!@user, static: true

= yield
2 changes: 0 additions & 2 deletions app/views/shared/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
- if menu
%li.nav-item
%a.nav-link.active{ "aria-current": "page", href: "/m" } Explore
/ %li.nav-item
/ %a.nav-link.active{ "aria-current": "page", href: "/m" } Features

.d-flex.align-items-center
- if create_button
Expand Down

0 comments on commit fda4da4

Please sign in to comment.