Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove spectrum community dead link #914

Merged
merged 4 commits into from
May 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,3 @@ styled-components-website
├── utils/ # Various utilities use across the site
└── vendor/ # Cached dependencies
```

### Got stuck?

Feel free to ping us on [Spectrum](https://spectrum.chat/styled-components/website) if you get stuck somewhere while trying to make this website better, let's resolve it together!
18 changes: 0 additions & 18 deletions components/Nav/Social.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ const SocialLink = styled(Link).attrs((/* props */) => ({
}
`;

const Svg = styled.svg`
width: ${p => rem(Number(p.width))};
height: ${p => rem(Number(p.height))};
`;

const StyledIcon = styled.div`
&& {
width: ${p => rem(Number(p.width))};
Expand All @@ -63,21 +58,8 @@ const StyledIcon = styled.div`
// </Svg>
// )

const Spectrum = () => (
<Svg width="14" height="14" viewBox="0 0 15 15">
<title>spectrum</title>
<path
fill="#FFF"
d="M0 6.5V1c0-.6.4-1 1-1 9 .3 13.7 5 14 14 0 .6-.4 1-1 1H8.5c-.6 0-1-.4-1-1-.3-4.4-2-6.2-6.5-6.5-.6 0-1-.4-1-1z"
/>
</Svg>
);

const Social = props => (
<Wrapper {...props}>
<SocialLink href="https://spectrum.chat/styled-components/">
<Spectrum />
</SocialLink>
{/* <SocialLink href="https://twitter.com/someone">
<Twitter />
</SocialLink> */}
Expand Down
2 changes: 1 addition & 1 deletion sections/tooling/stylelint.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The full list of supported tags:
- `sc-property`
- `sc-value`

> If you are in doubt of the vocabulary you can refer to [this CSS vocabulary list](http://apps.workflower.fi/vocabs/css/en) with examples.
> If you are in doubt of the vocabulary you can refer to [this CSS vocabulary list](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference) with examples.

For example, when you interpolate another styled component, what you really interpolate is its unique selector. Since the processor doesn't know that, you can tell it to replace it with a selector when linting:

Expand Down
30 changes: 3 additions & 27 deletions test/components/NavBar/__snapshots__/MobileNavbar.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ exports[`MobileNavbar renders correctly 1`] = `
fill: currentColor;
}

.c17 {
width: 0.7777777777777778rem;
height: 0.7777777777777778rem;
}

.c18.c18 {
.c17.c17 {
width: NaNrem;
height: 1rem;
}
Expand Down Expand Up @@ -297,31 +292,12 @@ exports[`MobileNavbar renders correctly 1`] = `
<nav
className="c15"
>
<a
className="c16"
href="https://spectrum.chat/styled-components/"
>
<svg
className="c17"
height="14"
viewBox="0 0 15 15"
width="14"
>
<title>
spectrum
</title>
<path
d="M0 6.5V1c0-.6.4-1 1-1 9 .3 13.7 5 14 14 0 .6-.4 1-1 1H8.5c-.6 0-1-.4-1-1-.3-4.4-2-6.2-6.5-6.5-.6 0-1-.4-1-1z"
fill="#FFF"
/>
</svg>
</a>
<a
className="c16"
href="https://github.com/styled-components"
>
<svg
className="c18"
className="c17"
height="18"
/>
</a>
Expand All @@ -330,7 +306,7 @@ exports[`MobileNavbar renders correctly 1`] = `
href="https://medium.com/styled-components"
>
<svg
className="c18"
className="c17"
height="18"
/>
</a>
Expand Down
107 changes: 32 additions & 75 deletions test/components/NavBar/__snapshots__/Navbar.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ exports[`Navbar renders correctly 1`] = `
fill: currentColor;
}

.c18 {
width: 0.7777777777777778rem;
height: 0.7777777777777778rem;
}

.c19.c19 {
.c18.c18 {
width: NaNrem;
height: 1rem;
}
Expand All @@ -91,7 +86,7 @@ exports[`Navbar renders correctly 1`] = `
height: 2.2222222222222223rem;
}

.c25 {
.c24 {
display: inline-block;
vertical-align: middle;
box-sizing: border-box;
Expand All @@ -102,15 +97,15 @@ exports[`Navbar renders correctly 1`] = `
height: 1.6666666666666667rem;
}

.c23 svg {
.c22 svg {
display: inline-block;
}

.c23 svg path {
.c22 svg path {
fill: currentColor;
}

.c22 {
.c21 {
background: none;
outline: none;
border: none;
Expand All @@ -123,11 +118,11 @@ exports[`Navbar renders correctly 1`] = `
vertical-align: middle;
}

.c21+.c21 {
.c20+.c20 {
padding-left: 0;
}

.c26 {
.c25 {
background: none;
outline: none;
border: none;
Expand All @@ -140,15 +135,15 @@ exports[`Navbar renders correctly 1`] = `
vertical-align: middle;
}

.c21+.c21 {
.c20+.c20 {
padding-left: 0;
}

.c20 {
.c19 {
display: none;
}

.c30 {
.c29 {
position: absolute;
top: 2.7777777777777777rem;
left: 0;
Expand All @@ -168,27 +163,27 @@ exports[`Navbar renders correctly 1`] = `
color: #868686;
}

.c24 {
.c23 {
display: inline-block;
vertical-align: center;
}

.c28 {
.c27 {
transition: transform 0.2s;
transform-origin: center center;
transform: rotate(180deg);
}

.c31 {
.c30 {
padding-right: 1.1111111111111112rem;
}

.c27.c27 {
.c26.c26 {
width: 1.5555555555555556rem;
height: 1.5555555555555556rem;
}

.c29.c29 {
.c28.c28 {
width: 2rem;
height: 2rem;
}
Expand Down Expand Up @@ -303,7 +298,7 @@ exports[`Navbar renders correctly 1`] = `
}

@media (max-width: 62.5em) {
.c20 {
.c19 {
display: flex;
align-items: center;
justify-content: space-between;
Expand Down Expand Up @@ -507,31 +502,12 @@ exports[`Navbar renders correctly 1`] = `
<nav
className="c16 "
>
<a
className="c17"
href="https://spectrum.chat/styled-components/"
>
<svg
className="c18"
height="14"
viewBox="0 0 15 15"
width="14"
>
<title>
spectrum
</title>
<path
d="M0 6.5V1c0-.6.4-1 1-1 9 .3 13.7 5 14 14 0 .6-.4 1-1 1H8.5c-.6 0-1-.4-1-1-.3-4.4-2-6.2-6.5-6.5-.6 0-1-.4-1-1z"
fill="#FFF"
/>
</svg>
</a>
<a
className="c17"
href="https://github.com/styled-components"
>
<svg
className="c19"
className="c18"
height="18"
/>
</a>
Expand All @@ -540,21 +516,21 @@ exports[`Navbar renders correctly 1`] = `
href="https://medium.com/styled-components"
>
<svg
className="c19"
className="c18"
height="18"
/>
</a>
</nav>
</div>
</div>
<div
className="c20"
className="c19"
>
<button
className="c21 c22"
className="c20 c21"
>
<svg
className="c23"
className="c22"
height="15"
width="15"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -578,38 +554,38 @@ exports[`Navbar renders correctly 1`] = `
</button>
<a
aria-label="styled components"
className="c24"
className="c23"
href="/"
>
<div
className="c25"
className="c24"
/>
</a>
<div>
<button
className="c21 c26"
className="c20 c25"
onClick={[Function]}
>
<svg
className="c27"
className="c26"
size={28}
/>
</button>
<button
className="c21 c22"
className="c20 c21"
>
<div
className="c28"
className="c27"
>
<div
className="c29"
className="c28"
size={36}
/>
</div>
</button>
</div>
<div
className="c30"
className="c29"
>
<nav
className="c5"
Expand Down Expand Up @@ -649,36 +625,17 @@ exports[`Navbar renders correctly 1`] = `
</a>
</nav>
<div
className="c31"
className="c30"
>
<nav
className="c16"
>
<a
className="c17"
href="https://spectrum.chat/styled-components/"
>
<svg
className="c18"
height="14"
viewBox="0 0 15 15"
width="14"
>
<title>
spectrum
</title>
<path
d="M0 6.5V1c0-.6.4-1 1-1 9 .3 13.7 5 14 14 0 .6-.4 1-1 1H8.5c-.6 0-1-.4-1-1-.3-4.4-2-6.2-6.5-6.5-.6 0-1-.4-1-1z"
fill="#FFF"
/>
</svg>
</a>
<a
className="c17"
href="https://github.com/styled-components"
>
<svg
className="c19"
className="c18"
height="18"
/>
</a>
Expand All @@ -687,7 +644,7 @@ exports[`Navbar renders correctly 1`] = `
href="https://medium.com/styled-components"
>
<svg
className="c19"
className="c18"
height="18"
/>
</a>
Expand Down
Loading