Skip to content

Commit

Permalink
Added floating phone button
Browse files Browse the repository at this point in the history
Added floating phone button
  • Loading branch information
ZoomREI authored Nov 21, 2024
2 parents 7ccafa7 + a4d9c48 commit 7359f50
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/ao-header/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<span class="ao-header__phone--text">Call Us On </span>
<span class="ao-header__phone--number"><?php echo $phoneNumber; ?></span>
</div>

<div class="contact-phone">
<?php echo get_responsive_image('ao-header/phone-icon', 'Phone Icon', 'phone-icon'); ?>
</div>
</a>
</div>
</header>
18 changes: 18 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/ao-header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@
height: 60%;
object-fit: contain;
}
.contact-phone {
position: fixed;
right: 1rem;
bottom: 20vh;
z-index: 99;
background-color: white;
border-radius: 50%;
padding: 0.125rem;
}

.contact-phone img {
width: 3rem;
height: auto;
}

@media (min-width: 1024px) {
.ao-header__phone--icon {
Expand All @@ -83,6 +97,10 @@
/* .ao-header__phone-icon img {
max-width: none;
} */

.ao-header .contact-phone{
display: none !important;
}
}

.ao-header__phone--number {
Expand Down
4 changes: 4 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/cw-header/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<span class="cw-header__phone--text">Call Us On</span>
<span class="cw-header__phone--number"><?php echo $phoneNumber; ?></span>
</div>

<div class="contact-phone">
<?php echo get_responsive_image('cw-header/phone-icon', 'Phone Icon', 'phone-icon'); ?>
</div>
</a>
</div>
</header>
17 changes: 17 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/cw-header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@
object-fit: contain;
}
}
.contact-phone {
position: fixed;
right: 1rem;
bottom: 20vh;
z-index: 99;
background-color: white;
border-radius: 50%;
padding: 0.125rem;
}

.contact-phone img {
width: 3rem;
height: auto;
}

.cw-header__phone--number {
text-decoration: unset;
Expand All @@ -157,4 +171,7 @@
margin-left: 0.2rem;
margin-top: 0px;
}
.cw-header .contact-phone{
display: none !important;
}
}
4 changes: 4 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/lc-header/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<span class="lc-header__phone--text">Call Us On</span>
<span class="lc-header__phone--number"><?php echo $phoneNumber; ?></span>
</div>

<div class="contact-phone">
<?php echo get_responsive_image('lc-header/phone-icon', 'Phone Icon', 'phone-icon'); ?>
</div>
</a>
</div>
</header>
18 changes: 18 additions & 0 deletions wp-content/plugins/chris-buys-blocks/src/lc-header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@
.lc-header__phone--icon img {
max-width: 0.625rem;
}
.contact-phone {
position: fixed;
right: 1rem;
bottom: 20vh;
z-index: 99;
background-color: white;
border-radius: 50%;
padding: 0.125rem;
}

.contact-phone img {
width: 3rem;
height: auto;
}

@media (min-width: 1024px) {
.lc-header__phone--icon {
Expand All @@ -63,6 +77,10 @@
.lc-header__phone--icon img {
max-width: none;
}

.lc-header .contact-phone{
display: none !important;
}
}

.lc-header__phone--number {
Expand Down

0 comments on commit 7359f50

Please sign in to comment.