Skip to content

Commit

Permalink
add campaign template
Browse files Browse the repository at this point in the history
  • Loading branch information
smth committed Jul 13, 2020
1 parent 1000dd8 commit 6a9129f
Show file tree
Hide file tree
Showing 16 changed files with 810 additions and 284 deletions.
10 changes: 10 additions & 0 deletions design-tokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Variables for OKF sites, generated with [style-dictionary](https://github.com/amzn/style-dictionary).

## Usage

Install dependancies with:

```bash
npm install
```

Build with:

```bash
npx style-dictionary build
```
4 changes: 2 additions & 2 deletions design-tokens/build/scss/_fonts.scss

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions design-tokens/build/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@

// Do not edit directly
// Generated on Sat, 30 Nov 2019 11:37:29 GMT
// Generated on Mon, 13 Jul 2020 21:01:04 GMT

$asset-font-icons-ttf: "assets/fonts/icomoon.ttf";
$asset-font-icons-eot: "assets/fonts/icomoon.eot";
$asset-font-icons-woff: "assets/fonts/icomoon.woff";
$asset-font-icons-svg: "assets/fonts/icomoon.svg";
$border-radius: 0rem; // BS
$border-width: 0.1rem; // BS
$breadcrumb-padding-x: 0; // BS
$breadcrumb-bg: #fff; // BS
$gray-100: #f6f6f6; // BS
$gray-500: #939598; // BS
$gray-900: #231f20; // BS
$primary: #00d1ff; // BS
$body-color: #231f20; // BS
$headings-font-weight: 900; // BS
$input-border-color: #d9dbdc; // BS
$input-border-color: #231f20; // BS
$link-color: #231f20; // BS
$link-hover-color: #231f20; // BS
$link-hover-decoration: none; // BS
Expand All @@ -26,6 +30,8 @@ $color-text-base: #231f20;
$color-text-decoration: #00d1ff;
$font-family-base: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$font-weight-black: 900;
$size-border-radius: 0rem;
$size-border-width: 0.1rem;
$size-font-xs: 0.75rem;
$size-font-sm: 0.875rem;
$size-font-base: 1rem;
Expand Down
6 changes: 3 additions & 3 deletions design-tokens/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions design-tokens/properties/bootstrap/border.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"border": {
"radius": {
"value": "{size.border.radius.value}",
"comment": "BS"
},
"width": {
"value": "{size.border.width.value}",
"comment": "BS"
}
}
}
14 changes: 14 additions & 0 deletions design-tokens/properties/bootstrap/breadcrumb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"breadcrumb": {
"padding": {
"x": {
"value": "0",
"comment": "BS"
}
},
"bg": {
"value": "#fff",
"comment": "BS"
}
}
}
2 changes: 1 addition & 1 deletion design-tokens/properties/bootstrap/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"input": {
"border": {
"color": {
"value": "{color.gray.200.value}",
"value": "{color.gray.900.value}",
"comment": "BS"
}
}
Expand Down
8 changes: 8 additions & 0 deletions design-tokens/properties/size/border.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"size": {
"border": {
"radius": { "value": "0" },
"width": { "value": "0.1" }
}
}
}
1 change: 1 addition & 0 deletions foundation/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ def _parse_email_list(varname):
('cms_article.html', 'Article'),
('cms_childlist.html', 'Child list'),
('cms_contact.html', 'Contact'),
('cms_campaign_signup.html', 'Campaign'),
)

CMS_PLACEHOLDER_CONF = {
Expand Down

0 comments on commit 6a9129f

Please sign in to comment.