Skip to content

Commit

Permalink
Handle basic styling for FAQ and rainy day options
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntaf committed Oct 5, 2024
1 parent 9ef1748 commit 91633a7
Show file tree
Hide file tree
Showing 35 changed files with 11 additions and 8 deletions.
Binary file added app/javascript/images/castlerock/faq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/castlerock/faq2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/castlerock/hero-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/backdrop.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/checkmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/faq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/hero-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/powder.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/purple_back.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/purple_front.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/javascript/images/redrock/sncc_logo.png
Binary file added app/javascript/images/redrock/stone_back.jpg
Binary file added app/javascript/images/redrock/stone_front.jpg
Binary file added app/javascript/images/stoneypoint/hero-image.png
2 changes: 2 additions & 0 deletions app/javascript/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ html, body {
font-family: 'Noto Sans', system-ui;

@import 'landing';
@import 'faq';
@import 'rainy_day_options';
@import 'devise/sessions';

* {
Expand Down
6 changes: 3 additions & 3 deletions app/javascript/stylesheets/faq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
}

.faq-hero.redrock {
background-image: asset_url("redrock/faq.jpg");
background-image: url("../images/redrock/faq.jpg");
}

.faq-hero.castlerock {
background-image: asset_url("castlerock/faq2.jpg");
background-image: url("../images/castlerock/faq2.jpg");
}

.faq-hero.stoneypoint {
background-image: asset_url('stoneypoint/hero-image.png');
background-image: url('../images/stoneypoint/hero-image.png');
}

.faq-content {
Expand Down
5 changes: 5 additions & 0 deletions app/views/area/watched_area/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<% content_for :body_attributes do %>
data-controller="watched-area"
data-watched-area-station-value="<%= @watched_area.station %>"
<% end %>

<div class="hero-header-content">
<!-- Background image container -->
<div class="hero-header <%= @watched_area.slug %>"
Expand Down
6 changes: 1 addition & 5 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@

<body
data-page-controller="<%= controller_name %>"
<% if @watched_area %>
data-controller="watched-area"
data-watched-area-station-value="<%= @watched_area.station %>"
<% end %>
>
<%= yield :body_attributes %>>
<!-- Content -->
<%= yield %>
<!-- Footer -->
Expand Down

0 comments on commit 91633a7

Please sign in to comment.