Files
homeproz/wp-content/themes/homeproz/template-parts/agent/single-agent.scss
T
Hanson.xyz Dev cbeca7c6d8 UI/UX improvements: gallery autoplay, clickable cards, footer legal section
Property details page:
- Move address to header above gallery
- Add property type badges (blue residential, red commercial)
- Gallery autoplay with play/pause button, 5-second interval
- Fade transitions for autoplay, slide transitions for swipe
- Thumbnail navigation with sync
- Swipe support in gallery and lightbox
- Widget titles: 18px Times New Roman bold
- Remove breadcrumbs

Layout and styling:
- Container width: 1400px
- Contact page map 50% taller (375px)
- Contact info labels: Times New Roman 16px
- Agent photo backgrounds solid black
- CTA accent button hover: black text

Clickable components:
- Service cards fully clickable with stretched links
- Resource cards fully clickable with stretched links
- Addresses link to Google Maps (contact page, footer)

Footer updates:
- Add Send Us a Message link with paper airplane icon
- Replace credentials with legal section
- Privacy Policy, Fair Housing, MLS Disclaimer, Brokerage Disclosure links
- Credits: Web Design by HansonXyz

Other:
- Install Classic Editor plugin

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 00:24:34 -06:00

364 lines
7.7 KiB
SCSS

/**
* Single Agent Styles
*
* @package HomeProz
*/
.Single_Agent {
padding-bottom: 4rem;
// Agent Header Section
.agent-header {
background-color: var(--color-bg-card);
padding: 3rem 0;
border-bottom: 1px solid var(--color-border);
}
.agent-header-layout {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
text-align: center;
@media (min-width: 768px) {
flex-direction: row;
text-align: left;
align-items: flex-start;
}
}
// Agent Photo
.agent-photo-wrapper {
flex-shrink: 0;
background-color: #000;
}
.agent-photo {
width: 200px;
height: 200px;
border-radius: 0.5rem;
object-fit: cover;
border: 3px solid var(--color-border);
@media (min-width: 768px) {
width: 240px;
height: 240px;
}
}
.agent-photo-placeholder {
width: 200px;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--color-bg-dark);
border-radius: 0.5rem;
border: 3px solid var(--color-border);
color: var(--color-text-muted);
@media (min-width: 768px) {
width: 240px;
height: 240px;
}
}
// Agent Info
.agent-info-wrapper {
flex: 1;
}
.agent-info-content {
display: flex;
flex-direction: column;
align-items: center;
@media (min-width: 768px) {
align-items: flex-start;
}
}
.agent-title-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--color-accent);
margin-bottom: 0.5rem;
font-weight: 600;
}
.agent-name {
font-size: 2.5rem;
font-family: var(--font-heading);
margin-bottom: 0.5rem;
line-height: 1.1;
@media (min-width: 768px) {
font-size: 3rem;
}
}
.agent-license {
font-size: 0.875rem;
color: var(--color-text-muted);
margin-bottom: 1.5rem;
}
// Contact Actions
.agent-contact-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1.5rem;
justify-content: center;
@media (min-width: 768px) {
justify-content: flex-start;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
}
// Social Links
.agent-social-links {
display: flex;
gap: 0.75rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: var(--color-bg-dark);
border-radius: 0.25rem;
color: var(--color-text-muted);
text-decoration: none;
&:hover {
background-color: var(--color-accent);
color: white;
}
svg {
width: 20px;
height: 20px;
}
}
// Content Layout
.agent-content-layout {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding-top: 2rem;
@media (min-width: 1024px) {
grid-template-columns: 1fr 350px;
gap: 3rem;
}
}
// Main Content
.agent-main-content {
min-width: 0;
}
// Sections
.agent-section {
margin-bottom: 2.5rem;
&:last-child {
margin-bottom: 0;
}
}
.section-title {
font-size: 1.25rem;
margin-bottom: 1.25rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-border);
}
// Biography
.agent-bio {
.agent-short-bio {
font-size: 1.125rem;
color: var(--color-text);
line-height: 1.6;
margin-bottom: 1.5rem;
}
.agent-full-bio {
color: var(--color-text-muted);
line-height: 1.7;
p {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
}
}
// Gallery Section
.agent-gallery-section {
.agent-gallery-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
@media (min-width: 640px) {
grid-template-columns: repeat(3, 1fr);
}
}
.gallery-item {
display: block;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 0.375rem;
border: 1px solid var(--color-border);
&:hover img {
transform: scale(1.05);
}
img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
}
}
// Listings Section
.agent-listings {
.agent-listings-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
@media (min-width: 640px) {
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1200px) {
grid-template-columns: repeat(3, 1fr);
}
}
.agent-listings-cta {
text-align: center;
}
}
// Sidebar
.agent-sidebar {
display: flex;
flex-direction: column;
gap: 1.5rem;
@media (min-width: 1024px) {
align-self: start;
}
}
// Sidebar Widgets
.sidebar-widget {
background-color: var(--color-bg-card);
border-radius: 0.5rem;
padding: 1.5rem;
}
.widget-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-border);
}
// Contact Card
.agent-contact-card {
.contact-list {
list-style: none;
margin: 0;
padding: 0;
}
.contact-item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem 0;
border-bottom: 1px solid var(--color-border);
&:first-child {
padding-top: 0;
}
&:last-child {
padding-bottom: 0;
border-bottom: none;
}
svg {
flex-shrink: 0;
margin-top: 0.125rem;
color: var(--color-accent);
}
> div {
flex: 1;
min-width: 0;
}
}
.contact-label {
display: block;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-muted);
margin-bottom: 0.25rem;
}
a {
color: var(--color-text);
text-decoration: none;
word-break: break-word;
&:hover {
color: var(--color-accent-light);
}
}
}
// Quick Contact Widget
.agent-quick-contact {
.widget-note {
font-size: 0.9375rem;
color: var(--color-text-muted);
margin-bottom: 1rem;
line-height: 1.5;
}
.btn-block {
display: block;
width: 100%;
text-align: center;
}
}
}