mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
feat: add slack invite
This commit is contained in:
committed by
Thomas Allmer
parent
41049f3908
commit
cf442215a9
5
.changeset/lovely-wolves-fetch.md
Normal file
5
.changeset/lovely-wolves-fetch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@rocket/launch': minor
|
||||
---
|
||||
|
||||
Adds a Slack invite to social links
|
||||
@@ -9,6 +9,11 @@ module.exports = async function () {
|
||||
name: 'GitHub',
|
||||
url: 'https://github.com/modernweb-dev/rocket',
|
||||
},
|
||||
{
|
||||
name: 'Slack',
|
||||
url:
|
||||
'https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw',
|
||||
},
|
||||
],
|
||||
gitSiteUrl: 'https://github.com/modernweb-dev/rocket',
|
||||
gitBranch: 'main',
|
||||
|
||||
5
packages/launch/preset/_assets/brand-logos/slack.svg
Normal file
5
packages/launch/preset/_assets/brand-logos/slack.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123 123" fill="currentColor">
|
||||
<title>Slack</title>
|
||||
<path stroke="none" stroke-width="1" stroke-dasharray="none" stroke-linecap="butt" stroke-dashoffset="0" stroke-linejoin="miter" stroke-miterlimit="4" fill-rule="nonzero"
|
||||
d="M26.4 78.2c0 7.1-5.8 12.9-12.9 12.9S.6 85.3.6 78.2c0-7.1 5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V78.2zm12.9-51.8c-7.1 0-12.9-5.8-12.9-12.9S38.7.6 45.8.6s12.9 5.8 12.9 12.9v12.9H45.8zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H13.5C6.4 58.7.6 52.9.6 45.8s5.8-12.9 12.9-12.9h32.3zM97.6 45.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H97.6V45.8zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V13.5C65.3 6.4 71.1.6 78.2.6c7.1 0 12.9 5.8 12.9 12.9v32.3zM78.2 97.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V97.6h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H78.2z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -213,6 +213,14 @@ body[layout^='layout-home'] #main-header a:hover {
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
#main-header .content-area > .social-link {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
#main-header .content-area > *:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#main-header .search {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ module.exports = function () {
|
||||
name: 'GitHub',
|
||||
url: 'https://github.com/modernweb-dev/rocket',
|
||||
},
|
||||
{
|
||||
name: 'Slack',
|
||||
url:
|
||||
'https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw',
|
||||
},
|
||||
],
|
||||
gitSiteUrl: 'https://github.com/modernweb-dev/rocket',
|
||||
gitBranch: 'master',
|
||||
|
||||
@@ -19,7 +19,7 @@ describe('RocketLaunch preset', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it.only('sets layout-sidebar as default', async () => {
|
||||
it('sets layout-sidebar as default', async () => {
|
||||
cli = await executeStart('fixtures/layout-sidebar/rocket.config.js');
|
||||
|
||||
const indexHtml = await readStartOutput(cli, 'page/index.html', {
|
||||
@@ -149,6 +149,30 @@ describe('RocketLaunch preset', () => {
|
||||
' ></path>',
|
||||
' </svg>',
|
||||
' </a>',
|
||||
' <a',
|
||||
' class="social-link"',
|
||||
' href="https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw"',
|
||||
' aria-label="Rocket on Slack"',
|
||||
' rel="noopener noreferrer"',
|
||||
' target="_blank"',
|
||||
' >',
|
||||
' <span class="sr-only">Slack</span>',
|
||||
'',
|
||||
' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123 123" fill="currentColor">',
|
||||
' <title>Slack</title>',
|
||||
' <path',
|
||||
' stroke="none"',
|
||||
' stroke-width="1"',
|
||||
' stroke-dasharray="none"',
|
||||
' stroke-linecap="butt"',
|
||||
' stroke-dashoffset="0"',
|
||||
' stroke-linejoin="miter"',
|
||||
' stroke-miterlimit="4"',
|
||||
' fill-rule="nonzero"',
|
||||
' d="M26.4 78.2c0 7.1-5.8 12.9-12.9 12.9S.6 85.3.6 78.2c0-7.1 5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V78.2zm12.9-51.8c-7.1 0-12.9-5.8-12.9-12.9S38.7.6 45.8.6s12.9 5.8 12.9 12.9v12.9H45.8zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H13.5C6.4 58.7.6 52.9.6 45.8s5.8-12.9 12.9-12.9h32.3zM97.6 45.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H97.6V45.8zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V13.5C65.3 6.4 71.1.6 78.2.6c7.1 0 12.9 5.8 12.9 12.9v32.3zM78.2 97.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V97.6h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H78.2z"',
|
||||
' />',
|
||||
' </svg>',
|
||||
' </a>',
|
||||
' </div>',
|
||||
' </header>',
|
||||
'',
|
||||
@@ -232,7 +256,7 @@ describe('RocketLaunch preset', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it.only('offers a layout-home', async () => {
|
||||
it('offers a layout-home', async () => {
|
||||
cli = await executeStart('fixtures/layout-home/rocket.config.js');
|
||||
|
||||
const indexHtml = await readStartOutput(cli, 'index.html', {
|
||||
@@ -362,6 +386,30 @@ describe('RocketLaunch preset', () => {
|
||||
' ></path>',
|
||||
' </svg>',
|
||||
' </a>',
|
||||
' <a',
|
||||
' class="social-link"',
|
||||
' href="https://join.slack.com/t/lit-and-friends/shared_invite/zt-llwznvsy-LZwT13R66gOgnrg12PUGqw"',
|
||||
' aria-label="Rocket on Slack"',
|
||||
' rel="noopener noreferrer"',
|
||||
' target="_blank"',
|
||||
' >',
|
||||
' <span class="sr-only">Slack</span>',
|
||||
'',
|
||||
' <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123 123" fill="currentColor">',
|
||||
' <title>Slack</title>',
|
||||
' <path',
|
||||
' stroke="none"',
|
||||
' stroke-width="1"',
|
||||
' stroke-dasharray="none"',
|
||||
' stroke-linecap="butt"',
|
||||
' stroke-dashoffset="0"',
|
||||
' stroke-linejoin="miter"',
|
||||
' stroke-miterlimit="4"',
|
||||
' fill-rule="nonzero"',
|
||||
' d="M26.4 78.2c0 7.1-5.8 12.9-12.9 12.9S.6 85.3.6 78.2c0-7.1 5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V78.2zm12.9-51.8c-7.1 0-12.9-5.8-12.9-12.9S38.7.6 45.8.6s12.9 5.8 12.9 12.9v12.9H45.8zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H13.5C6.4 58.7.6 52.9.6 45.8s5.8-12.9 12.9-12.9h32.3zM97.6 45.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H97.6V45.8zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V13.5C65.3 6.4 71.1.6 78.2.6c7.1 0 12.9 5.8 12.9 12.9v32.3zM78.2 97.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V97.6h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H78.2z"',
|
||||
' />',
|
||||
' </svg>',
|
||||
' </a>',
|
||||
' </div>',
|
||||
' </header>',
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user