Skip to content

Commit

Permalink
Better boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Nov 22, 2023
1 parent e3f88d1 commit a247f5e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 26 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/website/src/assets/houston.webp
Binary file not shown.
17 changes: 4 additions & 13 deletions packages/website/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,8 @@ import { Content as CodeBlock } from './codeblock.mdx';
<div class="wrapper">
<h1 class="neon-header">Easy fullstack debugging</h1>
<div class="sub-heading">Spotlight is a highly customizable debug tool embedded in your web app.</div>
<img src="/images/hero-showcase.png" alt="Spotlight Hero" class="hero-image" />
<div class="install-wrapper">
<FeatureCard
title="Get started now!"
description={'Simply copy and paste this code snippet into your main javascript file.\nIf you need any more help, simply visit our documentation.'}
>
<div></div>
<CodeBlock />
</FeatureCard>
<p class="actions">
<a href="/about/">Get Started</a>
</p>
</div>
<img src="/images/peated-sample-trace.png" alt="Spotlight Hero" class="hero-image" />
<p class="actions">
<a href="/about/">Get Started</a>
</p>
</div>
24 changes: 12 additions & 12 deletions packages/website/src/components/LandingPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@ import FeatureCard from './FeatureCard.astro';
import Section from './Section.astro';
import Highlight from './Highlight.astro';
import AstroShowcase from './AstroShowcase.astro';
import {Content as CodeBlock} from './codeblock.mdx';
import { Content as CodeBlock } from './codeblock.mdx';
---

<Highlight />

<Section title="Simple Setup" subTitle="Only one line of code">
<Section title="Thirty Seconds to Liftoff">
<FeatureCard
title="Navigate your errors with ease"
description=" Sed a porttitor nulla. Nam tempus imperdiet fringilla. Maecenas et velit dui. Integer sit amet libero ut sapien congue volutpat et ut odio. Fusce viverra, nulla sit amet suscipit varius."
title="As easy as npm install"
description="Two npm packages get you over the finish line. Inject the Spotlight overlay and run the sidecar."
>
<CodeBlock />
<CodeBlock />
</FeatureCard>
</Section>

<Section title="Easy to customize" subTitle="Lorem ipsum dolor sit amet, consectetur adipiscing elit">
<Section title="Works Everywhere">
<FeatureCard
title="Navigate your errors with ease"
description="Sed a porttitor nulla. Nam tempus imperdiet fringilla. Maecenas et velit dui. Integer sit amet libero ut sapien congue volutpat et ut odio. Fusce viverra, nulla sit amet suscipit varius, felis diam auctor est, at rutrum lacus metus sed metus. Quisque blandit lectus non elit interdum, vel elementum urna facilisis. Nullam pretium dignissim orci, sed blandit risus bibendum dignissim. Integer gravida tristique mi, vitae auctor orci lobortis at."
title="Compatible with Sentry's universal SDKs"
description="Take the power of Sentry's telemetry and bring that into your development environment with Errors and Traces."
reverse
>
<img class="block rounded-lg" src="/images/error.png" width="100%" style={{ maxWidth: 'unset' }} />
<img class="block rounded-lg" src="/images/peated-sample-error.png" width="100%" style={{ maxWidth: 'unset' }} />
</FeatureCard>
</Section>

<Section title="For every developer" subTitle="Lorem ipsum dolor sit amet, consectetur adipiscing elit">
<Section title="An Extension of You">
<FeatureCard
title="Navigate your errors with ease"
description=" Sed a porttitor nulla. Nam tempus imperdiet fringilla. Maecenas et velit dui. Integer sit amet libero ut sapien congue volutpat et ut odio. Fusce viverra, nulla sit amet suscipit varius."
title="Customizable overlay to support your use cases"
description="The powerful overlay and event proxy make it easy to extend Spotlight to other concepts including first-party concerns."
>
<AstroShowcase />
</FeatureCard>
Expand Down
6 changes: 5 additions & 1 deletion packages/website/src/components/codeblock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
title: Setup Codeblock
---

```js
```ts
import * as Spotlight from '@spotlightjs/core';
Spotlight.init();
```

```shell
npx @spotlightjs/sidecar
```

0 comments on commit a247f5e

Please sign in to comment.