diff --git a/web/app/plugins/mitlib-blocks/blocks/hero-section/render.php b/web/app/plugins/mitlib-blocks/blocks/hero-section/render.php index abd61e5a..53bf45ff 100644 --- a/web/app/plugins/mitlib-blocks/blocks/hero-section/render.php +++ b/web/app/plugins/mitlib-blocks/blocks/hero-section/render.php @@ -6,21 +6,22 @@ * @var string $content Block default content. * @var WP_Block $block Block instance. */ -?> \ No newline at end of file + \ No newline at end of file diff --git a/web/app/plugins/mitlib-blocks/build/hero-section/render.php b/web/app/plugins/mitlib-blocks/build/hero-section/render.php index abd61e5a..53bf45ff 100644 --- a/web/app/plugins/mitlib-blocks/build/hero-section/render.php +++ b/web/app/plugins/mitlib-blocks/build/hero-section/render.php @@ -6,21 +6,22 @@ * @var string $content Block default content. * @var WP_Block $block Block instance. */ -?> \ No newline at end of file + \ No newline at end of file diff --git a/web/app/themes/mitlib-parent/css/v2/pages/home.css b/web/app/themes/mitlib-parent/css/v2/pages/home-v001.css similarity index 98% rename from web/app/themes/mitlib-parent/css/v2/pages/home.css rename to web/app/themes/mitlib-parent/css/v2/pages/home-v001.css index f29e6607..4e920877 100644 --- a/web/app/themes/mitlib-parent/css/v2/pages/home.css +++ b/web/app/themes/mitlib-parent/css/v2/pages/home-v001.css @@ -39,11 +39,20 @@ body.v2-page { #content > #hero { padding: 0; position: relative; - background-size: cover; - background-position: center center; color: var(--color-text-on-color); + /* Decorative background image, kept out of the focusable/overlay content so role="img" has no children */ + .hero-bg { + position: absolute; + inset: 0; + z-index: 0; + background-size: cover; + background-position: center center; + } + .overlay { + position: relative; + z-index: 1; padding-top: calc(var(--content-section-vertical-padding) + var(--sp-600)); padding-bottom: var(--content-section-vertical-padding); background: linear-gradient(90deg, #1A1A1A 24.52%, rgba(26, 26, 26, 0.50) 70.67%, rgba(26, 26, 26, 0.00) 100%); diff --git a/web/app/themes/mitlib-parent/css/v2/v2.css b/web/app/themes/mitlib-parent/css/v2/v2.css index f65159b3..0272ed0c 100644 --- a/web/app/themes/mitlib-parent/css/v2/v2.css +++ b/web/app/themes/mitlib-parent/css/v2/v2.css @@ -26,4 +26,4 @@ @import url('partials/footer.css'); /* Page-level styles */ -@import url('pages/home.css'); \ No newline at end of file +@import url('pages/home-v001.css'); \ No newline at end of file diff --git a/web/app/themes/mitlib-parent/templates/page-home-v2.php b/web/app/themes/mitlib-parent/templates/page-home-v2.php index 282b8798..e80f454b 100644 --- a/web/app/themes/mitlib-parent/templates/page-home-v2.php +++ b/web/app/themes/mitlib-parent/templates/page-home-v2.php @@ -27,346 +27,344 @@ // If the page's content is empty, render the default static markup instead ?> - +
+
+

Today's hours

+
    +
  1. + Hayden Library + + + + 24/7 study + +
  2. +
  3. + Rotch Library + + + + 24/7 study + +
  4. +
  5. + Barker Library + + + + 24/7 study + +
  6. +
  7. + Lewis Music Library + + +
  8. +
+ See more locations and hours +
+
+
+
+

Using the Libraries

+
+
+
+ +
+

Find a study space

+

Quiet and group spaces—many available 24/7

+
-
-
-
-

Using the Libraries

-
-
-
- -
-

Find a study space

-

Quiet and group spaces—many available 24/7

-
-
-
- -
-

Learn how to get materials

-

Find, request, and get articles, books, and more

-
-
-
- -
-

Discover guides & librarians

-

Resource and class guides with experts for every subject

-
-
-
- -
-

Find and manage data

-

Get support from creating and visualizing to using and sharing data

-
-
+
+ +
+

Learn how to get materials

+

Find, request, and get articles, books, and more

-
- -
-

Ask Us

-

Get help via email, live chat with staff, and book appointments

- +
+
+ +
+

Discover guides & librarians

+

Resource and class guides with experts for every subject

-
- + - + + + + +