-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathhomeClient.tsx
193 lines (183 loc) · 6.33 KB
/
homeClient.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
'use client';
import {Nav, NavItem} from 'react-bootstrap';
import Image from 'next/image';
import Link from 'next/link';
import {Banner} from 'sentry-docs/components/banner';
import SentryWordmarkSVG from 'sentry-docs/logos/sentry-wordmark-dark.svg';
import {Platform, PlatformGuide} from 'sentry-docs/types';
import {NavbarPlatformDropdown} from './navbarPlatformDropdown';
import {PlatformIcon} from './platformIcon';
import {Search} from './search';
import {SmartLink} from './smartLink';
interface Props {
platforms: Platform[];
totalPlatformCount: number;
visiblePlatforms: Array<Platform | PlatformGuide>;
}
export function HomeClient({visiblePlatforms, totalPlatformCount, platforms}: Props) {
return (
<div className="index-wrapper">
<div className="hero-section">
<div className="index-container">
<div className="index-navbar">
<a href="/" title="Sentry error monitoring" className="index-logo">
<Image
src={SentryWordmarkSVG}
width={215}
height={64}
alt="Sentry's logo"
/>
</a>
<Nav className="justify-content-end" style={{flex: 1}}>
<NavbarPlatformDropdown platforms={platforms} currentPlatform={undefined} />
<NavItem>
<Link className="nav-link" href="/product/">
Product
</Link>
</NavItem>
<NavItem>
<Link className="nav-link" href="/api/">
API
</Link>
</NavItem>
<NavItem>
<Link className="nav-link" href="https://sentry.io/changelog">
Changelog
</Link>
</NavItem>
<Nav.Item>
<Nav.Link
className="text-primary"
href="https://try.sentry-demo.com/demo/start/"
target="_blank"
>
Sandbox
</Nav.Link>
</Nav.Item>
<NavItem>
<Link className="nav-link" href="https://sentry.io/">
Sign In
<svg
width="1em"
height="1em"
viewBox="0 0 16 16"
className="bi bi-arrow-right-short"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
/>
</svg>
</Link>
</NavItem>
</Nav>
</div>
<h1>Welcome to Sentry Docs</h1>
<center>
<p>
Sentry is a developer-first error tracking and performance monitoring
platform.
</p>
</center>
<div className="index-search">
<Search autoFocus />
</div>
<div className="integrations-logo-row">
{visiblePlatforms.map(platform => (
<SmartLink to={platform.url} className="hover-card-link" key={platform.key}>
<div className="image-frame">
<PlatformIcon
size={48}
platform={platform.icon ?? platform.key}
format="lg"
/>
</div>
{platform.title}
</SmartLink>
))}
</div>
<div className="integrations-all">
<a href="/platforms/" className="see-all-btn">
See All {totalPlatformCount} Supported Platforms
</a>
</div>
</div>
</div>
<Banner />
<div className="index-container pad-top">
<div className="flex-row card-row footer-btns">
<Link href="https://develop.sentry.dev/self-hosted/">Self-Hosted Sentry</Link>
<Link href="https://help.sentry.io/">Support</Link>
</div>
<h3>Learn more...</h3>
<div className="flex-row link-row">
<div>
<ul className="unstyled-list">
<li>
<a href="/product/performance/">Performance Monitoring</a>
</li>
<li>
<a href="/product/sentry-basics/tracing/distributed-tracing/">
Distributed Tracing
</a>
</li>
<li>
<a href="/product/session-replay/">Session Replay</a>
</li>
<li>
<a href="/product/releases/health/">Release Health</a>
</li>
<li>
<a href="/product/releases/">Releases</a>
</li>
</ul>
</div>
<div>
<ul className="unstyled-list">
<li>
<a href="/product/sentry-basics/">Sentry Basics</a>
</li>
<li>
<a href="/product/sentry-basics/environments/">Environments</a>
</li>
<li>
<a href="/product/cli/">Sentry-CLI</a>
</li>
<li>
<a href="/product/discover-queries/">Discover Queries</a>
</li>
<li>
<a href="/product/accounts/quotas/">Quota Management</a>
</li>
</ul>
</div>
<div>
<ul className="unstyled-list">
<li>
<a href="/product/integrations/">Integrations</a>
</li>
<li>
<a href="/product/integrations/integration-platform/">
Integration Platform
</a>
</li>
<li>
<a href="/product/sentry-basics/migration/">Moving to Hosted Sentry</a>
</li>
<li>
<a href="/product/accounts/membership/">
Organization and User Management
</a>
</li>
<li>
<a href="/product/alerts-notifications/">Alerts & Notifications</a>
</li>
</ul>
</div>
</div>
</div>
</div>
);
}