Skip to content

Commit

Permalink
Merge ef39f9f into 40b356a
Browse files Browse the repository at this point in the history
  • Loading branch information
remydenton authored Sep 26, 2018
2 parents 40b356a + ef39f9f commit 6a6edd6
Show file tree
Hide file tree
Showing 33 changed files with 726 additions and 472 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
[![Known Vulnerabilities](https://snyk.io/test/github/pega-digital/bolt/badge.svg)](https://snyk.io/test/github/pega-digital/bolt)
<h1>
<img align="left" width="40" src="https://raw.githubusercontent.com/bolt-design-system/bolt/master/apps/bolt-site/images/bolt-logo.png">
Bolt Design System
</h1>

# Bolt Design System
**Check out our new [Bolt Docs site!](https://boltdesignsystem.com)**

**Please see the [Bolt Docs here](https://bolt-design-system.com)**

## Quick Start Setup

*If this doesn't work, please check the actual docs linked above*
## ~60 Second Quick Start Guide

```bash
yarn install
git clone https://github.com/bolt-design-system/bolt.git ~/sites/bolt
cd ~/sites/bolt
npm run setup
cd apps/pattern-lab
npm start
```

### Big Thanks
> *Don't already have Homebrew, Yarn, Composer and NPM setup on your local machine? Need a little help getting started? Check out our [in-depth getting started guide](https://boltdesignsystem.com/docs/guides/preparing-your-environment.html) to help get you up and running in no time!*

### Huge Thanks!

Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][homepage]
Cross-browser Testing Platform and Open Source ❤️ Provided by [Sauce Labs][homepage]

[homepage]: https://saucelabs.com
20 changes: 17 additions & 3 deletions apps/bolt-site/templates/_site-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,22 @@
<meta name="msapplication-config" content="/browserconfig.xml?v=LbyzAXRqNz">
<meta name="theme-color" content="#1f2656">

<!-- Default OG Tag examples (related to Bolt Share Component) -->
{% include "@bolt-components-share/src/_share-meta-example.twig" %}
<!-- OG Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Bolt Design System: Page Title" />
<meta property="og:description" content="Sample description" />
<meta property="og:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="480" />
<meta property="og:image:height" content="480" />
<meta property="og:url" content="https://boltdesignsystem.com/some-page-title-here" />
<meta property="og:site_name" content="Bolt Design System" />
<!-- Twitter specific tags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Bolt Design System: Page Title" />
<meta name="twitter:description" content="Sample description" />
<meta name="twitter:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta name="twitter:site" content="@pega" />

<link rel="stylesheet" href="{{ assets["bolt-global.css"] | default("/build/bolt-global.css") }}" media="all" />

Expand All @@ -54,4 +68,4 @@
</script>

</head>
<body class="c-bds-layout c-bolt-site {% if currentUrl == 'index.html' %} t-bolt-xdark {% endif %} c-bds-layout--{{ urlChunks | length >= 2 ? urlChunks|first : 'parent' }} {{ hasSidebar ? 'c-bds-layout--has-sidebar' : ''}}">
<body class="c-bds-layout c-bolt-site {% if currentUrl == 'index.html' %} t-bolt-xdark {% endif %} c-bds-layout--{{ urlChunks | length >= 2 ? urlChunks|first : 'parent' }} {{ hasSidebar ? 'c-bds-layout--has-sidebar' : ''}}">
18 changes: 16 additions & 2 deletions apps/pattern-lab/src/_meta/_00-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,22 @@
<meta name="msapplication-config" content="/browserconfig.xml?v=LbyzAXRqNz">
<meta name="theme-color" content="#1f2656">

<!-- Default OG Tag examples (related to Bolt Share Component) -->
{% include "@bolt-components-share/src/_share-meta-example.twig" %}
<!-- OG Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Bolt Design System: Page Title" />
<meta property="og:description" content="Sample description" />
<meta property="og:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="480" />
<meta property="og:image:height" content="480" />
<meta property="og:url" content="https://boltdesignsystem.com/some-page-title-here" />
<meta property="og:site_name" content="Bolt Design System" />
<!-- Twitter specific tags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Bolt Design System: Page Title" />
<meta name="twitter:description" content="Sample description" />
<meta name="twitter:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta name="twitter:site" content="@pega" />

<!-- async load PL's CSS -->
<link rel="preload" href="/pattern-lab/styleguide/css/pattern-lab.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set usage %}{% verbatim %}
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
url: "http://bolt-design-system.com"
text_to_copy: "http://bolt-design-system.com"
} only %}
{% endverbatim %}{% endset %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<div style="text-align: center; padding: 3rem;">
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
url: "http://bolt-design-system.com"
text_to_copy: "http://bolt-design-system.com"
} only %}
</div>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "Copy Link #1",
text_to_copy: "http://bolt-design-system.com/#link-1"
} only %}
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "Copy Link #2",
text_to_copy: "http://bolt-design-system.com/#link-2"
} only %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{% set attributes = create_attribute({}) %}
{% set icon_size = "medium" %}

{% set custom_trigger %}
{% include "@bolt-components-headline/text.twig" with {
text: "This has a custom trigger",
url: "#!",
icon: {
name: "warning",
position: "before",
size: icon_size
}
} only %}
{% endset %}

{% set custom_transition %}
Custom transition
{% endset %}

{% set custom_confirmation %}
{% include "@bolt-components-headline/text.twig" with {
text: "Custom confirmation",
icon: {
name: "check",
position: "before",
size: icon_size
}
} only %}
{% endset %}

{% set custom_all %}
{% include "@bolt-components-headline/text.twig" with {
text: "This has a custom trigger, transition, and confirmation",
url: "#!",
icon: {
name: "warning",
position: "before",
size: icon_size
}
} only %}
{% endset %}

{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "This text gets ignored by custom trigger",
text_to_copy: "http://boltdesignsystem.com/#custom-trigger",
custom_trigger: custom_trigger,
} only %}

{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "This has custom transition",
text_to_copy: "http://boltdesignsystem.com/#custom-transition",
custom_transition: custom_transition,
} only %}

{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "This has custom confirmation",
text_to_copy: "http://boltdesignsystem.com/#custom-confirmation",
confirmation: custom_confirmation
} only %}

{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "This text gets ignored by custom trigger",
text_to_copy: "http://bolt-design-system.com/#custom-all",
custom_trigger: custom_all,
custom_transition: custom_transition,
custom_confirmation: custom_confirmation
} only %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set usage %}{% verbatim %}
{% include '@bolt-components-share/share.twig' with {
{% include "@bolt-components-share/share.twig" with {
sources: [
{
name: "facebook",
Expand All @@ -18,8 +18,8 @@
url: "mailto:?&body=Sample%20Text%20--%20https%3A//bolt-design-system.com"
}
],
copyToClipboard: {
url: "http://pega.com"
copy_to_clipboard: {
text_to_copy: "http://pega.com"
}
} only %}
{% endverbatim %}{% endset %}
Expand Down
46 changes: 22 additions & 24 deletions apps/pattern-lab/src/_patterns/02-components/share/05-share.twig
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<div style="margin: 0 auto; width: 100%; padding: 25rem 0 0;">
{% include '@bolt-components-share/share.twig' with {
sources: [
{
name: "facebook",
url: "https://www.facebook.com/sharer/sharer.php?u=https://5abd3062df99537b79e29496--bolt-design-system.netlify.com/pattern-lab/patterns/02-components-action-blocks-05-action-blocks/02-components-action-blocks-05-action-blocks.html&amp;src=sdkpreparse"
},
{
name: "twitter",
url: "https://twitter.com/intent/tweet?url=https://bolt-design-system.com&text=Sample%20Share%20Text&via=pega&hashtags=boltDesignSystemRocks!"
},
{
name: "linkedin",
url: "https://www.linkedin.com/shareArticle?url=https://5abd3062df99537b79e29496--bolt-design-system.netlify.com/pattern-lab/patterns/02-components-action-blocks-05-action-blocks/02-components-action-blocks-05-action-blocks.html"
},
{
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//bolt-design-system.com"
}
],
copyToClipboard: {
url: "http://pega.com"
{% include "@bolt-components-share/share.twig" with {
sources: [
{
name: "facebook",
url: "https://www.facebook.com/sharer/sharer.php?u=https://boltdesignsystem.com&amp;src=sdkpreparse"
},
{
name: "twitter",
url: "https://twitter.com/intent/tweet?url=https://boltdesignsystem.com&text=Sample%20Share%20Text&via=pega&hashtags=boltDesignSystemRocks!"
},
{
name: "linkedin",
url: "https://www.linkedin.com/shareArticle?url=https://boltdesignsystem.com"
},
{
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//boltdesignsystem.com"
}
} only %}
</div>
],
copy_to_clipboard: {
text_to_copy: "http://boltdesignsystem.com"
},
} only %}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% set schema = bolt.data.components["@bolt-components-share"].schema %}

{% for size in schema.properties.size.enum %}
<h3>{{ size|capitalize }} Size</h3>
{% include "@bolt-components-share/share.twig" with {
size: size,
sources: [
{
name: "facebook",
url: "https://www.facebook.com/sharer/sharer.php?u=https://boltdesignsystem.com&amp;src=sdkpreparse"
},
{
name: "twitter",
url: "https://twitter.com/intent/tweet?url=https://boltdesignsystem.com&text=Sample%20Share%20Text&via=pega&hashtags=boltDesignSystemRocks!"
},
{
name: "linkedin",
url: "https://www.linkedin.com/shareArticle?url=https://boltdesignsystem.com"
},
{
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//boltdesignsystem.com"
}
],
copy_to_clipboard: {
text_to_copy: "http://boltdesignsystem.com/#share-size"
}
} only %}
{% endfor %}

This file was deleted.

Loading

0 comments on commit 6a6edd6

Please sign in to comment.