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