Switch themes
This commit is contained in:
parent
4649c56a58
commit
ee265b679d
6 changed files with 37 additions and 15 deletions
|
|
@ -47,7 +47,9 @@ if [ "$IS_SETUP" != "1" ]; then
|
|||
$DRUSH config:set system.site page.front /home -y && \
|
||||
echo "[entrypoint] Front page set." || echo "[entrypoint] WARNING: front page config failed."
|
||||
|
||||
$DRUSH theme:enable olivero claro_compact -y && \
|
||||
$DRUSH theme:enable starterkit_theme claro_compact -y && \
|
||||
$DRUSH config:set system.theme default starterkit_theme -y && \
|
||||
$DRUSH config:set system.theme admin claro_compact -y && \
|
||||
echo "[entrypoint] Themes set." || echo "[entrypoint] WARNING: theme enable failed."
|
||||
|
||||
if ls /var/www/html/config/sync/*.yml >/dev/null 2>&1; then
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.page-wrapper {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* ── Hero ───────────────────────────────────────────────────── */
|
||||
.rpt-hero {
|
||||
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
|
||||
|
|
@ -92,7 +96,7 @@
|
|||
/* ── Services section ───────────────────────────────────────── */
|
||||
.rpt-services {
|
||||
padding: 4rem 1.5rem;
|
||||
background: #fff;
|
||||
background: #f3f4f6;
|
||||
}
|
||||
|
||||
.rpt-services__header {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* ── Hide Olivero's built-in header entirely ─────────────── */
|
||||
.site-header,
|
||||
.sticky-header-toggle {
|
||||
.sticky-header-toggle,
|
||||
.social-bar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
|
@ -60,8 +61,10 @@ body {
|
|||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.rpt-header__item--cta {
|
||||
.rpt-header__items--cta {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
/* ── Nav links ───────────────────────────────────────────── */
|
||||
|
|
@ -106,6 +109,11 @@ body {
|
|||
color: #fff;
|
||||
}
|
||||
|
||||
.rpt-header__item--cta {
|
||||
padding: 0.5rem 1.5rem;
|
||||
}
|
||||
|
||||
|
||||
/* ── Hamburger button (hidden on desktop) ────────────────── */
|
||||
.rpt-header__hamburger {
|
||||
display: none;
|
||||
|
|
@ -177,10 +185,6 @@ body {
|
|||
gap: 0;
|
||||
}
|
||||
|
||||
.rpt-header__item--cta {
|
||||
margin-left: 0;
|
||||
padding: 0.5rem 1.5rem;
|
||||
}
|
||||
|
||||
.rpt-header__link {
|
||||
padding: 0.75rem 1.5rem;
|
||||
|
|
|
|||
|
|
@ -185,7 +185,8 @@ function _riverside_pt_build_navigation(): void {
|
|||
['title' => 'Services', 'uri' => 'internal:/services', 'weight' => 1, 'class' => NULL],
|
||||
['title' => 'About', 'uri' => 'internal:/about', 'weight' => 2, 'class' => NULL],
|
||||
['title' => 'FAQ', 'uri' => 'internal:/faq', 'weight' => 3, 'class' => NULL],
|
||||
['title' => 'Contact', 'uri' => 'internal:/contact', 'weight' => 4, 'class' => 'nav-cta'],
|
||||
|
||||
['title' => 'Contact', 'uri' => 'internal:/contact', 'weight' => 4, 'class' => 'nav-cta nav-cta--primary'],
|
||||
['title' => 'Book An Appointment', 'uri' => 'internal:/schedule', 'weight' => 5, 'class' => 'nav-cta nav-cta--primary'],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function riverside_pt_preprocess_riverside_pt_header(array &$variables): void {
|
|||
$items[] = [
|
||||
'title' => $title,
|
||||
'url' => $url,
|
||||
'is_cta' => ($title === 'Book An Appointment'),
|
||||
'is_cta' => ($title === 'Book An Appointment' || $title === 'Contact'),
|
||||
];
|
||||
}
|
||||
$variables['menu_items'] = $items;
|
||||
|
|
|
|||
|
|
@ -13,13 +13,24 @@
|
|||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% set has_cta = false %}
|
||||
{% for item in menu_items %}
|
||||
{% if item.is_cta %}
|
||||
<li class="rpt-header__item rpt-header__item--cta">
|
||||
<a class="rpt-header__cta" href="{{ item.url }}">{{ item.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if item.is_cta %}{% set has_cta = true %}{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if has_cta %}
|
||||
<div class="rpt-header__items--cta">
|
||||
{% for item in menu_items %}
|
||||
{% if item.is_cta %}
|
||||
<li class="rpt-header__item rpt-header__item--cta">
|
||||
<a class="rpt-header__cta" href="{{ item.url }}">{{ item.title }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue