Skip to content

Commit 5f1d75c

Browse files
committed
fix: Styling buttons a bit
1 parent 5d0f3bc commit 5f1d75c

File tree

1 file changed

+79
-12
lines changed

1 file changed

+79
-12
lines changed

docs-starlight/src/components/Header.astro

Lines changed: 79 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,26 @@ const shouldRenderSearch =
2727
<SocialIcons {...Astro.props} />
2828
</div>
2929
<div class="sl-flex social-icons">
30-
<button>
31-
<div class="flex flex-col">
32-
<span>Automate your Pipeline</span>
33-
<span>CI/CD by the creators of Terragrunt</span>
34-
</div>
35-
</button>
30+
<a href="https://www.gruntwork.io/platform/pipelines" class="pipeline-pill">
31+
<span class="pipeline-icon">
32+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><circle cx="10" cy="10" r="10" fill="#A78BFA"/><circle cx="10" cy="10" r="4" fill="#fff"/></svg>
33+
</span>
34+
<span class="pipeline-text">
35+
<span class="pipeline-title">Learn about Gruntwork Pipelines</span>
36+
<span class="pipeline-subtitle">CI/CD built for Terragrunt & Stacks</span>
37+
</span>
38+
<span class="pipeline-arrow">
39+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M8 6l4 4-4 4" stroke="#A78BFA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
40+
</span>
41+
</a>
3642
</div>
3743
<div class="sl-flex social-icons">
38-
<button>
39-
<div class="flex flex-col">
40-
<span>Support</span>
41-
</div>
42-
</button>
44+
<a href="https://www.gruntwork.io/services/terragrunt" class="support-btn">
45+
Enterprise Support
46+
<span class="support-arrow">
47+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M8 6l4 4-4 4" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
48+
</span>
49+
</a>
4350
</div>
4451
<ThemeSelect {...Astro.props} />
4552
<LanguageSelect {...Astro.props} />
@@ -92,7 +99,7 @@ const shouldRenderSearch =
9299
);
93100
display: grid;
94101
grid-template-columns:
95-
/* 1 (site title): runs up until the main content columns left edge or the width of the title, whichever is the largest */
102+
/* 1 (site title): runs up until the main content column's left edge or the width of the title, whichever is the largest */
96103
minmax(
97104
calc(var(--__sidebar-width) + max(0rem, var(--__main-column-fr) - var(--sl-nav-gap))),
98105
auto
@@ -104,4 +111,64 @@ const shouldRenderSearch =
104111
align-content: center;
105112
}
106113
}
114+
115+
.pipeline-pill {
116+
display: flex;
117+
align-items: center;
118+
background: rgba(167, 139, 250, 0.08);
119+
border-radius: 999px;
120+
padding: 0.5rem 1.25rem 0.5rem 0.5rem;
121+
gap: 0.75rem;
122+
text-decoration: none;
123+
transition: background 0.2s;
124+
}
125+
.pipeline-pill:hover {
126+
background: rgba(167, 139, 250, 0.18);
127+
}
128+
.pipeline-icon {
129+
display: flex;
130+
align-items: center;
131+
justify-content: center;
132+
}
133+
.pipeline-text {
134+
display: flex;
135+
flex-direction: column;
136+
line-height: 1.1;
137+
}
138+
.pipeline-title {
139+
font-weight: 600;
140+
font-size: 1rem;
141+
color: var(--sl-color-text);
142+
}
143+
.pipeline-subtitle {
144+
font-size: 0.85rem;
145+
color: var(--sl-color-gray-2);
146+
}
147+
.pipeline-arrow {
148+
display: flex;
149+
align-items: center;
150+
margin-left: 0.5rem;
151+
}
152+
.support-btn {
153+
display: flex;
154+
align-items: center;
155+
background: #7c3aed;
156+
color: #fff;
157+
border-radius: 999px;
158+
padding: 0.5rem 1.5rem;
159+
font-weight: 600;
160+
font-size: 1rem;
161+
text-decoration: none;
162+
transition: background 0.2s;
163+
gap: 0.5rem;
164+
box-shadow: 0 1px 4px rgba(124, 58, 237, 0.08);
165+
}
166+
.support-btn:hover {
167+
background: #5b21b6;
168+
}
169+
.support-arrow {
170+
display: flex;
171+
align-items: center;
172+
margin-left: 0.25rem;
173+
}
107174
</style>

0 commit comments

Comments
 (0)