diff --git a/.tool-versions b/.tool-versions index 1e42dbc..016e1ed 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,3 @@ ruby 3.2.0 -awscli 2.11.24 \ No newline at end of file +awscli 2.11.24 +yarn 1.22.10 diff --git a/Gemfile.lock b/Gemfile.lock index 5b94592..c2182d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -173,6 +173,8 @@ GEM nio4r (2.5.9) nokogiri (1.15.4-arm64-darwin) racc (~> 1.4) + nokogiri (1.15.4-x86_64-darwin) + racc (~> 1.4) nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) parallel (1.22.1) @@ -324,6 +326,7 @@ GEM PLATFORMS arm64-darwin-21 + x86_64-darwin-20 x86_64-linux DEPENDENCIES @@ -363,4 +366,4 @@ RUBY VERSION ruby 3.2.0p0 BUNDLED WITH - 2.4.8 + 2.4.1 diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 59bb5eb..0d11473 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -13,12 +13,39 @@ *= require_tree . *= require_self */ + +html, body, div.lux { + height: 100%; +} + body { margin: 0; } +/* wraps main content to make lux work */ +/* styled to ensure sticky footer */ +div.lux { + display: flex; + flex-direction: column; +} + +.homepage-img { + margin-top: 1em; +} + #main-content { - margin: 20px 100px; + flex: 1 0 auto; /* part of the sticky footer setup */ + margin: 20px 20px; + /* ensure content stays within boundaries of header / footer, which have + * default max-width of 1170, see + * https://pulibrary.github.io/lux/docs/#/Patterns/LibraryHeader + * and https://github.com/pulibrary/lux/issues/397 + */ + padding: 0 calc(calc(calc(100% - 1170px) / 2)); +} + +.lux-library-footer { + flex-shrink: 0; /* part of sticky footer */ } #list_header { @@ -34,6 +61,14 @@ body { font-size: 20px; } +#card_image_list { + list-style: none; + li img { + border: 2px solid; + margin: 10px; + } +} + .pagination { display: flex; list-style: none; @@ -104,4 +139,4 @@ body { cursor:auto; background-color:#ffffff; border-color:#dee2e6 -} \ No newline at end of file +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f5e8a0d..dc772e0 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -24,14 +24,12 @@