Skip to content

Commit f566c88

Browse files
authored
Merge pull request #996 from Agoric/pc/home-page-redesign
feat: home page redesign
2 parents 83cc2e6 + 2181728 commit f566c88

File tree

4 files changed

+116
-135
lines changed

4 files changed

+116
-135
lines changed

main/.vitepress/config.mjs

+25
Original file line numberDiff line numberDiff line change
@@ -443,5 +443,30 @@ export default defineConfig({
443443
},
444444
},
445445
},
446+
footer: {
447+
copyright: ${new Date().getFullYear()} Agoric Systems Operating Company. All Rights Reserved.`,
448+
},
449+
socialLinks: [
450+
{
451+
icon: 'discord',
452+
ariaLabel: 'Discord',
453+
link: 'https://agoric.com/discord',
454+
},
455+
{
456+
icon: 'github',
457+
ariaLabel: 'GitHub',
458+
link: 'https://github.com/Agoric/agoric-sdk',
459+
},
460+
{
461+
icon: 'twitter',
462+
ariaLabel: 'Twitter',
463+
link: 'https://twitter.com/agoric',
464+
},
465+
{
466+
icon: 'youtube',
467+
ariaLabel: 'YouTube',
468+
link: 'https://www.youtube.com/@Agoric',
469+
},
470+
],
446471
},
447472
});

main/.vitepress/styles/index.styl

-30
Original file line numberDiff line numberDiff line change
@@ -157,36 +157,6 @@ div[class*="language-"].secondary
157157
div[class*="language-"].secondary.style3 pre
158158
background-color bisque
159159

160-
.page
161-
max-width: 1280px
162-
margin: 0 auto
163-
padding: 20px 0 100px 0
164-
165-
h1, h3
166-
margin-top: 1em
167-
margin-bottom: 0.25em
168-
font-weight: 600
169-
line-height: 1.25
170-
h1
171-
color: #2c3e50
172-
font-size: 2.2rem
173-
h3
174-
font-size: 1.35rem
175-
a
176-
color: #d73252
177-
178-
@media (max-width: 1280px)
179-
padding: 1.5rem
180-
181-
@media (max-width: 768px)
182-
h1
183-
font-size: 1.75rem
184-
h3
185-
font-size: 1.1rem
186-
a
187-
color: rgb(171, 35, 40)
188-
font-weight: 500
189-
190160
.dark
191161
.page
192162
h1

main/index.md

+78-105
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,85 @@
11
---
2-
####
3-
# YAML section setting up the home page
4-
# run `yarn docs:dev` at any time to start local dev server and access
5-
# website at localhost:8080 by default
6-
####
7-
layout: page
8-
footer: Apache-2.0 Licensed | Copyright © 2023 - Agoric
9-
---
2+
layout: home
3+
4+
title: Agoric
5+
titleTemplate: Secured, Distributed JavaScript
6+
7+
hero:
8+
name: Agoric
9+
text: JavaScript-Powered Smart Contract Platform
10+
tagline: Secure, adaptable, and approachable. Discover the blockchain framework tailored for JavaScript developers.
11+
actions:
12+
- theme: brand
13+
text: Get Started
14+
link: /guides/getting-started/
15+
- theme: alt
16+
text: View on GitHub
17+
link: https://github.com/agoric/agoric-sdk
18+
image:
19+
src: /bld-logo-color.svg
20+
alt: Agoric
21+
22+
features:
23+
- icon: 🛠️
24+
title: Seamless DX
25+
details: Develop smart contracts using the world’s most popular programming language.
26+
link: /guides/getting-started/
27+
28+
- icon: ⚙️
29+
title: Composable Smart Contracts
30+
details: Build smart contracts and create digital assets. Partition risk and leverage safety properties.
31+
link: /guides/zoe/
1032

11-
<div class="page">
12-
<div class="home-banner">
13-
Receive our latest tutorials, webinar invites, and much more! <a href="https://agoric.com/dev-newsletter" style="color: white;text-decoration: underline;">Join our newsletter</a>
14-
</div>
33+
- icon: 🔒
34+
title: Built-In Security
35+
details: Express access control using familiar patterns of objects.
36+
link: /guides/js-programming/
1537

16-
<div class="home-section">
17-
<HomeButtonHeader
18-
title="Agoric documentation"
19-
text="The Agoric platform makes it possible to write safer smart contracts with your JavaScript skill set."
20-
/>
21-
<HomeButtonRow
22-
title1="What's Agoric"
23-
text1="Learn about Agoric and its JavaScript platform"
24-
link1="https://www.agoric.com"
25-
title2="Getting Started"
26-
text2="Set up your environment and start building apps"
27-
link2="/guides/getting-started/"
28-
title3="Contract Framework"
29-
text3="See the safety properties of our Zoe Framework"
30-
link3="/guides/zoe/"
31-
title4="Token Protocol"
32-
text4="Understand the ins and outs of Agoric's Electronic Rights Transfer Protocol (ERTP)"
33-
link4="/guides/ertp/"
34-
title5="Samples"
35-
text5="Look through our smart contract and dapp examples"
36-
link5="/guides/zoe/contracts/"
37-
title6="Bounties"
38-
text6="A rotating list of incentivized bounties to grow our platform"
39-
link6="https://components.agoric.com/bounties/open-bounties"
40-
/>
41-
</div>
38+
- icon: 🌐
39+
title: Interoperable Ecosystem
40+
details: Leverage IBC for instant, cross-chain asset interoperability.
41+
link: /guides/platform/
4242

43-
<div class="home-section">
44-
<HomeButtonHeader
45-
title="Blockchain resources"
46-
text="The tools your need to get the job done."
47-
/>
48-
<HomeButtonRow
49-
title1="Block Explorer"
50-
text1="View transactions across the Agoric chain"
51-
link1="https://bigdipper.live/agoric"
52-
title2="Keplr Wallet"
53-
text2="Sign transactions with the most popular wallet in Cosmos"
54-
link2="https://www.keplr.app/download"
55-
title3="Component Library"
56-
text3="Pre-built smart contracts for DeFi, NFTs, and cross-chain!"
57-
link3="https://components.agoric.com/"
58-
title4="Cosmos SDK"
59-
text4="Our battle-tested consensus mechanism"
60-
link4="https://docs.cosmos.network/"
61-
title5="IBC"
62-
text5="The protocol ensuring Agoric is interoperable with 60+ chains"
63-
link5="https://ibc.cosmos.network/main"
64-
title6="Integrations"
65-
text6="Browse through our catalogue of integrations"
66-
link6="/guides/integration/chain-integration"
67-
/>
68-
</div>
43+
- icon: 💬
44+
title: Discord
45+
details: Meet our developer community and make friends.
46+
link: https://agoric.com/discord
47+
48+
- icon: 💡
49+
title: Github Discussions
50+
details: Ask questions. Share ideas.
51+
link: https://github.com/Agoric/agoric-sdk/discussions
52+
53+
- icon: 🕘
54+
title: Office Hours
55+
details: Join us for open discussion, whether you're just getting started or deep into the details.
56+
link: https://github.com/Agoric/agoric-sdk/wiki/Office-Hours
57+
58+
- icon: 🐦
59+
title: Twitter
60+
details: Catch up on all things Agoric product, events, and more.
61+
link: https://twitter.com/agoric
62+
---
6963

70-
<div class="home-section">
71-
<HomeButtonHeader
72-
title="Ready to learn more?"
73-
text="Once you've completed the Getting Started, here are a few next steps."
74-
/>
75-
<h3 style="margin-top: 0em;">
76-
<a href="/guides/js-programming/hardened-js">Learn the basics of HardenedJS</a>
77-
</h3>
78-
It's JavaScript with the safety you expect - see why MetaMask uses it to safely run their Snaps technology for 30M+ customers.
79-
<h3>
80-
<a href="/guides/zoe/">See the safety properties of our Zoe Framework</a>
81-
</h3>
82-
From Offer Safety to the POLA, the Zoe Framework protects devs (and users) while writing your smart contract logic.
83-
</div>
64+
<style>
65+
:root {
66+
--vp-home-hero-name-color: var(--vp-c-brand-1);
67+
--vp-home-hero-image-background-image: linear-gradient(-45deg, #e84b62 50%, #464646 50%);
68+
--vp-home-hero-image-filter: blur(44px);
69+
.dark {
70+
--vp-home-hero-image-background-image: linear-gradient(-45deg, #f7aab1 50%, #7c7c7c 50%);
71+
}
72+
}
8473

85-
<div class="home-section">
86-
<HomeButtonHeader
87-
title="Videos"
88-
text="Check out our primer on writing programmable smart contracts in JavaScript!"
89-
/>
90-
<div>
91-
<iframe class="youtube-embed" src="https://www.youtube-nocookie.com/embed/Em32hztid_k?si=3bfO6P4vEWV-qoKd&amp;controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
92-
</div>
93-
</div>
74+
@media (min-width: 640px) {
75+
:root {
76+
--vp-home-hero-image-filter: blur(56px);
77+
}
78+
}
9479

95-
<div class="home-section">
96-
<HomeButtonHeader
97-
title="Connect with us"
98-
text=""
99-
/>
100-
<HomeButtonRow
101-
title1="Office Hours"
102-
text1="Workshop ideas with our engineers every Wednesday!"
103-
link1="https://agoric.com/office-hours"
104-
title2="Discord"
105-
text2="Meet our developer community and make friend <3"
106-
link2="https://agoric.com/discord"
107-
title3="Twitter"
108-
text3="Catch up on all things Agoric product, events, and more"
109-
link3="https://twitter.com/agoric"
110-
/>
111-
</div>
112-
</div>
80+
@media (min-width: 960px) {
81+
:root {
82+
--vp-home-hero-image-filter: blur(68px);
83+
}
84+
}
85+
</style>

main/public/bld-logo-color.svg

+13
Loading

0 commit comments

Comments
 (0)