Skip to content

Commit bc4185b

Browse files
authored
Simplify landing page controls (#5063)
1 parent c597d51 commit bc4185b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎internal/website/assets/scss/_landing.scss‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@
2424
.micro-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 76px 0 64px; }
2525
.micro-example { min-width: 0; margin: 0; border: 1px solid #d3e3e5; border-radius: 12px; background: #f5f9fa; overflow: hidden; box-shadow: 0 12px 36px rgba(20, 46, 54, .06); }
2626
.micro-example figcaption { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #d3e3e5; font-size: .8rem; color: #425a62; }
27+
.micro-example .click-to-copy { display: none; }
2728
.micro-example .highlight { margin: 0; background: transparent; }
2829
.micro-example pre { border: 0; border-radius: 0; margin: 0; padding: 22px 20px; background: transparent; font-size: .8125rem; line-height: 1.65; tab-size: 2; white-space: pre; overflow-wrap: normal; word-break: normal; overflow-x: auto; }
2930
.micro-example pre code { display: block; font-size: inherit; line-height: inherit; }
3031
.micro-example p { margin: 0; padding: 0 20px; font-size: .85rem; color: #425a62; }
3132
.micro-example > a { display: inline-block; margin: 10px 20px 20px; font-size: .85rem; }
3233
.micro-actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 30px 0 20px; font-size: .95rem; }
33-
.micro-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: #00758a; color: #fff; padding: 12px 18px; border-radius: 6px; text-decoration: none; font-weight: 500; }
34+
.micro-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: #00758a; color: #fff; border: 1px solid transparent; padding: 12px 18px; border-radius: 6px; text-decoration: none; font-weight: 500; }
3435
.micro-button:hover { background: #005b6d; color: #fff; }
36+
.micro-button-secondary { background: #fff; color: #142e36; border-color: #d3e3e5; }
37+
.micro-button-secondary:hover { background: #f5f9fa; color: #142e36; border-color: #a9c4c9; }
3538
.micro-start { background: #f1f7f7; border: 1px solid #d3e3e5; border-radius: 12px; padding: 28px; min-width: 0; font-size: .95rem; }
3639
.micro-start-heading { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
3740
.micro-start-heading h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 14px; }

‎internal/website/content/en/_index.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ params:
1111
<h1 id="intro-title">A Go framework for<br>services and agents.</h1>
1212
<p class="micro-lead">Build distributed applications with RPC, service discovery, messaging, storage, and configuration. Create agents that use your services as tools.</p>
1313
<div class="micro-actions">
14-
<a class="micro-button" href="/docs/quickstart.html">Get Started <span aria-hidden="true">→</span></a>
15-
<a href="https://github.com/micro/go-micro">GitHub</a>
14+
<a class="micro-button" href="/docs/quickstart.html">Get Started</a>
15+
<a class="micro-button micro-button-secondary" href="https://github.com/micro/go-micro">GitHub</a>
1616
</div>
1717
<p class="micro-caption">Open source · Apache 2.0</p>
1818
</div>

0 commit comments

Comments
 (0)