Skip to content

Commit 623917b

Browse files
Sivaclaude
andcommitted
Show clickable phone + email in navbar with bold styling and icons
Inlined SVG icons via CSS mask so they pick up the brand color, hide Docusaurus's external-link arrow on these specific items, and collapse the pair on narrow viewports. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 56ea1e4 commit 623917b

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

docusaurus.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,18 @@ const config: Config = {
102102
{ to: '/process', label: 'Process', position: 'left' },
103103
{ to: '/blog', label: 'Journal', position: 'left' },
104104
{ to: '/company', label: 'Company', position: 'left' },
105+
{
106+
href: 'tel:+17206660405',
107+
label: '720-666-0405',
108+
position: 'right',
109+
className: 'navbar-phone',
110+
},
111+
{
112+
href: 'mailto:info@deltisan.com',
113+
label: 'info@deltisan.com',
114+
position: 'right',
115+
className: 'navbar-email',
116+
},
105117
{ to: '/contact', label: 'Contact', position: 'right' },
106118
{
107119
to: '/schedule',

src/css/custom.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,61 @@ body {
143143
text-decoration: none;
144144
}
145145

146+
.navbar-phone,
147+
.navbar-email {
148+
font-size: 1rem !important;
149+
font-weight: 600 !important;
150+
color: var(--d-accent) !important;
151+
opacity: 1;
152+
letter-spacing: -0.01em;
153+
padding: 6px 12px !important;
154+
border-radius: 8px;
155+
display: inline-flex !important;
156+
align-items: center;
157+
transition: background 0.15s ease;
158+
}
159+
160+
.navbar-phone:hover,
161+
.navbar-email:hover {
162+
background: rgba(29, 78, 216, 0.08);
163+
color: var(--d-accent) !important;
164+
text-decoration: none;
165+
}
166+
167+
.navbar-phone svg,
168+
.navbar-email svg {
169+
display: none !important;
170+
}
171+
172+
.navbar-phone::before {
173+
content: '';
174+
display: inline-block;
175+
width: 18px;
176+
height: 18px;
177+
margin-right: 8px;
178+
background-color: currentColor;
179+
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.05-.24c1.12.37 2.33.57 3.54.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.21.2 2.42.57 3.54a1 1 0 0 1-.24 1.05l-2.21 2.2z'/></svg>") center / contain no-repeat;
180+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.05-.24c1.12.37 2.33.57 3.54.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.21.2 2.42.57 3.54a1 1 0 0 1-.24 1.05l-2.21 2.2z'/></svg>") center / contain no-repeat;
181+
}
182+
183+
.navbar-email::before {
184+
content: '';
185+
display: inline-block;
186+
width: 18px;
187+
height: 18px;
188+
margin-right: 8px;
189+
background-color: currentColor;
190+
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/></svg>") center / contain no-repeat;
191+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/></svg>") center / contain no-repeat;
192+
}
193+
194+
@media (max-width: 996px) {
195+
.navbar-phone,
196+
.navbar-email {
197+
display: none;
198+
}
199+
}
200+
146201
.button {
147202
border-radius: 980px;
148203
font-weight: 400;

0 commit comments

Comments
 (0)