Skip to content

Commit a48233a

Browse files
committed
WIP
1 parent 58f0b05 commit a48233a

23 files changed

+148
-111
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ gem 'slim' # view templating
3131
gem 'uglifier'
3232
gem 'webrick' # web server for capybara and local dev
3333
gem 'jsbundling-rails'
34+
gem 'cssbundling-rails'
3435

3536
group :development do
3637
gem 'better_errors' # improved error pages

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ GEM
141141
bigdecimal
142142
rexml
143143
crass (1.0.6)
144+
cssbundling-rails (1.4.0)
145+
railties (>= 6.0.0)
144146
date (3.3.4)
145147
debug_inspector (1.2.0)
146148
devise (4.9.3)
@@ -516,6 +518,7 @@ DEPENDENCIES
516518
capybara
517519
client_side_validations
518520
concurrent-ruby
521+
cssbundling-rails
519522
devise (>= 4.4.0)
520523
dotenv-rails
521524
factory_bot_rails

Procfile.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
web: env RUBY_DEBUG_OPEN=true bin/rails server
22
js: yarn build --watch
3+
css: yarn build:css --watch

app/assets/builds/.keep

Whitespace-only changes.

app/assets/builds/application.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/assets/config/manifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Entry point for your Sass build

app/javascript/packs/application.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// them with the image_tag helper in views (e.g <%= image_tag 'rails.png' %>)
1313
// or the `imagePath` JavaScript helper below.
1414
//
15+
alert("HI");
1516
const images = require.context('../images', true);
1617
const imagePath = (name) => images(name, true);
1718
const fonts = require.context('../fonts', true);
@@ -41,3 +42,5 @@ require('@client-side-validations/client-side-validations');
4142

4243
// custom javascripts used throughout the frontend of the site
4344
import './custom';
45+
import './photography';
46+
import './contact-me';

app/views/home/_contact.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
</div>
1414
</div>
1515
<div class="bg-center bg-cover bg-no-repeat h-72 sm:h-64 md:h-72 lg:h-96"
16-
style="background-image: url(<%= asset_path("images/home/map.jpg") %>);"></div>
16+
style="background-image: url(<%= asset_path("packs/images/home/map.jpg") %>);"></div>

app/views/home/_expertise.html.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<div class="shadow px-8 py-12 hover:bg-primary dark:bg-primary-70 dark:hover:bg-primary-90 group rounded">
1111
<div class="text-center w-24 xl:w-28 h-24 xl:h-28 mx-auto">
1212
<div class="hidden group-hover:block">
13-
<%= image_tag "images/home/icon-software-development.svg", alt: "development icon", class: "invert dark:opacity-70" %>
13+
<%= image_tag asset_path("packs/images/home/icon-software-development.svg"), alt: "development icon", class: "invert dark:opacity-70" %>
1414
</div>
1515
<div class="block group-hover:hidden">
16-
<%= image_tag "images/home/icon-software-development.svg", alt: "development icon", class: "invert-0 dark:invert" %>
16+
<%= image_tag asset_path("packs/images/home/icon-software-development.svg"), alt: "development icon", class: "invert-0 dark:invert" %>
1717
</div>
1818
</div>
1919
<div class="text-center">
@@ -29,10 +29,10 @@
2929
<div class="shadow px-8 py-12 hover:bg-primary dark:bg-primary-70 dark:hover:bg-primary-90 group rounded">
3030
<div class="text-center w-24 xl:w-28 h-24 xl:h-28 mx-auto">
3131
<div class="hidden group-hover:block">
32-
<%= image_tag "images/home/icon-app-development.svg", alt: "Mobile Application icon", class: "invert dark:opacity-70" %>
32+
<%= image_tag asset_path("packs/images/home/icon-app-development.svg"), alt: "Mobile Application icon", class: "invert dark:opacity-70" %>
3333
</div>
3434
<div class="block group-hover:hidden">
35-
<%= image_tag "images/home/icon-app-development.svg", alt: "Mobile Application icon", class: "invert-0 dark:invert" %>
35+
<%= image_tag asset_path("packs/images/home/icon-app-development.svg"), alt: "Mobile Application icon", class: "invert-0 dark:invert" %>
3636
</div>
3737
</div>
3838
<div class="text-center">
@@ -48,10 +48,10 @@
4848
<div class="shadow px-8 py-12 hover:bg-primary dark:bg-primary-70 dark:hover:bg-primary-90 group rounded">
4949
<div class="text-center w-24 xl:w-28 h-24 xl:h-28 mx-auto">
5050
<div class="hidden group-hover:block">
51-
<%= image_tag "images/home/icon-filmmaking.svg", alt: "film and photography icon", class: "invert dark:opacity-70" %>
51+
<%= image_tag asset_path("packs/images/home/icon-filmmaking.svg"), alt: "film and photography icon", class: "invert dark:opacity-70" %>
5252
</div>
5353
<div class="block group-hover:hidden">
54-
<%= image_tag "images/home/icon-filmmaking.svg", alt: "film and photography icon", class: "invert-0 dark:invert" %>
54+
<%= image_tag asset_path("packs/images/home/icon-filmmaking.svg"), alt: "film and photography icon", class: "invert-0 dark:invert" %>
5555
</div>
5656
</div>
5757
<div class="text-center">

0 commit comments

Comments
 (0)