Skip to content

Commit c3beeff

Browse files
committed
site: fix links, fix twitter, add expo basic link to example
1 parent e48b373 commit c3beeff

13 files changed

+21
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">
2-
<img margin="auto" width="612px" src="https://raw.githubusercontent.com/tamagui/tamagui/master/tamagui.svg" alt="Tamagui">
2+
<img margin="auto" width="612px" src="https://github.com/tamagui/tamagui/raw/master/packages/site/public/social.png" alt="Tamagui">
33
<br>
44
</h1>
55

packages/site/components/Community.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function Community() {
2323
$sm={{ width: 'auto' }}
2424
space
2525
tag="a"
26-
href="https://twitter.com/tamagui_dev"
26+
href="https://twitter.com/tamagui_js"
2727
target="_blank"
2828
rel="noopener noreferrer"
2929
p="$4"

packages/site/components/DocsPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function DocsPage({ children }: { children: React.ReactNode }) {
130130
<DocsRouteNavItem href="https://github.com/tamagui/tamagui" external>
131131
GitHub
132132
</DocsRouteNavItem>
133-
<DocsRouteNavItem href="https://twitter.com/tamagui_dev" external>
133+
<DocsRouteNavItem href="https://twitter.com/tamagui_js" external>
134134
Twitter
135135
</DocsRouteNavItem>
136136
<DocsRouteNavItem href="https://discord.gg/uUtvv6GM" external>

packages/site/components/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const Footer = () => {
8282
<ExternalIcon />
8383
</XStack>
8484
<XStack space="$1" ai="center">
85-
<Link ai="center" href="https://twitter.com/tamagui_dev" target="_blank">
85+
<Link ai="center" href="https://twitter.com/tamagui_js" target="_blank">
8686
Twitter
8787
</Link>
8888
<ExternalIcon />

packages/site/components/TitleAndMetaTags.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function TitleAndMetaTags({
3737
<meta property="og:description" content={description} />
3838
<meta property="og:image" content={image} />
3939

40-
<meta name="twitter:site" content="@tamagui_dev" />
40+
<meta name="twitter:site" content="@tamagui_js" />
4141
<meta name="twitter:card" content="summary_large_image" />
4242
</Head>
4343
)

packages/site/data/docs/core/theme.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default () => (
2626
2727
### Sub-themes
2828
29-
A good example of this setup is [the source of this site itself](https://github.com/tamagui/tamagui/tree/master/packages/site/src/constants/themes.ts).
29+
A good example of this setup is [the source of this site itself](https://github.com/tamagui/tamagui/blob/master/packages/site/constants/themes.ts).
3030
3131
There is one special property of themes that's very helpful for what is essentially sub-themes, or tints.
3232

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Next.js Guide
3+
description: How to set up Tamagui with Expo
4+
---
5+
6+
<Notice>We're putting together a better guide soon!</Notice>
7+
8+
If you'd like to get a good idea of a set up with Expo, [we've set up a basic repo that renders a few components](https://github.com/tamagui/tamagui-expo-example).

packages/site/data/docs/guides/next-js.mdx

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ title: Next.js Guide
33
description: How to set up Tamagui with Next.js
44
---
55

6-
<Notice>
7-
We're putting together a better guide, until then [check out the
8-
example](https://github.com/tamagui/tamagui/tree/master/packages/site).
9-
</Notice>
6+
<Notice>We're putting together a better guide soon!</Notice>
107

118
If you'd like to get a good idea of a set up with Next.js, this site itself it built with it. It supports full SSR with all the features.
129

packages/site/data/docs/intro/benchmarks.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Benchmarks
33
description: Performance tests and comparisons.
44
---
55

6-
We've forked a common test suite for styling libraries. All tests were run in a production environment on a Macbook M1 Pro (2021). The [benchmarks](https://github.com/tamagui/tamagui/tree/master/src/packages/benchmarks) are open-source.
6+
We've forked a common test suite for styling libraries. All tests were run in a production environment on a Macbook M1 Pro (2021). The [benchmarks](https://github.com/tamagui/tamagui/tree/master/packages/benchmarks) are open-source.
77

88
<Notice>
99
**Note**: These benchmarks are competing against **web-only** style libraries. Those libraries

packages/site/data/docs/intro/configuration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ One final note: using tokens with themes. Tokens are considered a "fallback" to
201201

202202
Themes live one level below tokens. Tokens are your variables, where themes use those tokens to create consistent, generic properties that you then typically use in shareable components.
203203

204-
Tamagui components in general expect a set of theme keys to be defined (see [the source for the website](https://github.com/tamagui/tamagui/tree/master/src/packages/site/constants/themes.ts)):
204+
Tamagui components in general expect a set of theme keys to be defined (see [the source for the website](https://github.com/tamagui/tamagui/blob/master/packages/site/constants/themes.ts)):
205205

206206
```jsx
207207
const light = {

packages/site/data/docs/intro/introduction.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Tamagui lets you configure [media queries](/docs/core/use-media) and apply varia
5959

6060
### Developer Experience
6161

62-
Tamagui provides a fully-typed API so all your TypeScript style properties, values, media queries and shorthands will be auto-completed for you. It provides a `// debug` pragrma and `debug` prop that both allow easy introspection into whats happening at compile and runtime.
62+
Tamagui provides a fully-typed API so all your TypeScript style properties, values, media queries and shorthands will be auto-completed for you. It provides a `// debug` pragrma and `debug` prop that both allow easy introspection into whats happening at compile and runtime. In dev mode it puts a `data-` attribute that links every DOM node back to your original source.
6363

6464
---
6565

@@ -68,7 +68,7 @@ Tamagui provides a fully-typed API so all your TypeScript style properties, valu
6868
We're excited to see the community adopt Tamagui, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!
6969

7070
- [Discord](https://discord.gg/uUtvv6GM)
71-
- [Twitter](https://twitter.com/tamagui_dev)
71+
- [Twitter](https://twitter.com/tamagui_js)
7272
- [GitHub Discussions](https://github.com/tamagui/tamagui/discussions)
7373
- [GitHub](https://github.com/tamagui/tamagui)
7474

packages/site/lib/docsRoutes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const docsRoutes = [
4444
pages: [
4545
{ title: 'Design Systems', slug: 'docs/guides/design-systems' },
4646
{ title: 'Next.js', slug: 'docs/guides/next-js' },
47+
{ title: 'Expo', slug: 'docs/guides/expo' },
4748
],
4849
},
4950
]

packages/site/pages/blog/[slug].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function BlogPost({ frontmatter, code, relatedPosts }: BlogPost)
2727
https://twitter.com/intent/tweet?
2828
text="${frontmatter.title}" by @${
2929
authors[frontmatter.by].twitter
30-
} on the @tamagui_dev blog.&url=https://tamagui.dev/blog/${frontmatter.slug}
30+
} on the @tamagui_js blog.&url=https://tamagui.dev/blog/${frontmatter.slug}
3131
`
3232

3333
return (

0 commit comments

Comments
 (0)