Skip to content

Commit 363b55e

Browse files
Docs Homepage Follow Up Feedback (#4112)
* addressing copilot feedback for clean up * Remove now unused Intro component. Add SdkLogosAsBlocks to component exports. * Reorganize CSS using nesting of properties. * Reorganize media queries. Center community cards at mobile. * Refactor gradient border hover transition. * Refactor and update icons. * Add icons. * Refactor SvgLogosAsBlocks into components. Add hover states. * Add files. * Remove unnecessary and empty file. * Update folder name. * Reference component as a component, not as a function. * Reorder SDKs alphetically. * Clarify and standardize font usage, at least for now. Update all H1s to lighter weight. Reorganize some CSS. --------- Co-authored-by: David Carlson Berg <david.berg@temporal.io>
1 parent 38e7d11 commit 363b55e

53 files changed

Lines changed: 734 additions & 880 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/elements/HomePageHero.js

Lines changed: 15 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '../../css/homepage-hero.css';
55

66
const Icon = ({ src, alt, className, width, height }) => {
77
const darkSrc = src;
8-
const lightSrc = src.replace('.svg', '-dark.svg');
8+
const lightSrc = src.replace('-dark-mode-24x24.svg', '-24x24.svg');
99

1010
return (
1111
<>
@@ -28,56 +28,29 @@ const Icon = ({ src, alt, className, width, height }) => {
2828
};
2929

3030
const HomePageHero = () => {
31-
const quickstartLinks = [
32-
{
33-
path: '/develop/go/set-up-your-local-go',
34-
name: 'Go Quickstart',
35-
},
36-
{
37-
path: '/develop/java/set-up-your-local-java',
38-
name: 'Java Quickstart',
39-
},
40-
{
41-
path: '/develop/python/set-up-your-local-python',
42-
name: 'Python Quickstart',
43-
},
44-
{
45-
path: '/develop/typescript/set-up-your-local-typescript',
46-
name: 'TypeScript Quickstart',
47-
},
48-
{
49-
path: '/develop/dotnet/set-up-your-local-dotnet',
50-
name: '.NET Quickstart',
51-
},
52-
{
53-
path: '/develop/ruby/set-up-local-ruby',
54-
name: 'Ruby Quickstart',
55-
},
56-
];
57-
5831
const actionCards = [
5932
{
6033
href: '/quickstarts',
61-
icon: <Icon src="/img/icons/Lightning.svg" alt="Lightning icon" />,
34+
icon: <Icon src="/img/icons/bolt-dark-mode-24x24.svg" alt="Lightning icon" />,
6235
title: 'Quickstart',
6336
description: 'Setup your local and run a Hello World workflow.',
6437
},
6538
{
6639
href: '/develop',
67-
icon: <Icon src="/img/icons/Code.svg" alt="Code icon" />,
40+
icon: <Icon src="/img/icons/code-dark-mode-24x24.svg" alt="Code icon" />,
6841
title: 'Developer Guide',
6942
description: 'Dive into everything you need to know about building Temporal workflows.',
7043
},
7144
{
7245
href: '/production-deployment',
73-
icon: <Icon src="/img/icons/Rocket.svg" alt="Rocket icon" />,
46+
icon: <Icon src="/img/icons/rocket-dark-mode-24x24.svg" alt="Rocket icon" />,
7447
title: 'Deploy your Workflows',
7548
description:
7649
'Deploy your Temporal Application to your environment. Self-Host the Temporal Service or use Temporal Cloud.',
7750
},
7851
{
7952
href: 'https://temporal.io/cloud',
80-
icon: <Icon src="/img/icons/Cloud.svg" alt="Cloud icon" />,
53+
icon: <Icon src="/img/icons/cloud-dark-mode-24x24.svg" alt="Cloud icon" />,
8154
title: 'Get started for free with $1000 in credits',
8255
description:
8356
'<span class="linkify">Sign up for Temporal Cloud</span> and let us host the Temporal Service for you.',
@@ -87,20 +60,20 @@ const HomePageHero = () => {
8760
const communityCards = [
8861
{
8962
href: 'https://temporal.io/slack',
90-
icon: <Icon src="/img/icons/Slack.svg" alt="Slack" />,
63+
icon: <Icon src="/img/icons/slack-dark-mode-24x24.svg" alt="Slack" />,
9164
title: 'Slack Community',
9265
description:
9366
'Join us on <a href="https://temporal.io/slack">temporal.io/slack</a> and say hi or ask us a question.',
9467
},
9568
{
9669
href: 'https://community.temporal.io',
97-
icon: <Icon src="/img/icons/Message.svg" alt="Message" />,
70+
icon: <Icon src="/img/icons/forum-dark-mode-24x24.svg" alt="Message" />,
9871
title: 'Developer Forum',
9972
description: '<a href="https://community.temporal.io">Find out</a> if your question has already been asked.',
10073
},
10174
{
10275
href: 'https://learn.temporal.io/courses/',
103-
icon: <Icon src="/img/icons/Education.svg" alt="Education" />,
76+
icon: <Icon src="/img/icons/learn-dark-mode-24x24.svg" alt="Education" />,
10477
title: 'Learn it all',
10578
description: '<a href="https://learn.temporal.io/courses/">Master Temporal</a> with our courses and tutorials.',
10679
},
@@ -111,7 +84,9 @@ const HomePageHero = () => {
11184
<div className="hero-main-title-container">
11285
<header className="hero-main-title">Temporal Docs</header>
11386

114-
<div className="quickstart-links">{SdkLogosAsBlocks()}</div>
87+
<div className="quickstart-links">
88+
<SdkLogosAsBlocks />
89+
</div>
11590
</div>
11691

11792
<div className="hero-section">
@@ -137,15 +112,15 @@ const HomePageHero = () => {
137112

138113
<div className="hero-actions">
139114
{actionCards.map((card, index) => (
140-
<div key={index} className="border-container">
141-
<a href={card.href} className="action-card">
115+
<a key={index} href={card.href} className="action-card">
116+
<div className="action-card-inner">
142117
<div className="action-icon">{card.icon}</div>
143118
<div className="action-content">
144119
<h3>{card.title}</h3>
145120
<p dangerouslySetInnerHTML={{ __html: card.description }}></p>
146121
</div>
147-
</a>
148-
</div>
122+
</div>
123+
</a>
149124
))}
150125
</div>
151126
</div>

0 commit comments

Comments
 (0)