Update ticket text

Was: Merge branch 'theme' of /srv/bindings/9d1512c614964a45a3713caca02e2b84/repository
This commit is contained in:
Pantheon 2017-03-31 14:57:36 +00:00
commit 6f35f7777a
48 changed files with 891 additions and 97 deletions

View file

@ -1,19 +1,19 @@
uuid: ffee07ae-d5e2-4817-9fa4-2e32ed295d17 uuid: 835f0f68-a159-47c0-b7ff-16e98cbda5d1
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
config: config:
- system.menu.account - system.menu.account
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: DweBpscQZdG0-fHkSpUzdYucrNH45G_KF7Z82V-oyQM default_config_hash: DweBpscQZdG0-fHkSpUzdYucrNH45G_KF7Z82V-oyQM
id: bartik_account_menu id: dcb2017_account_menu
theme: bartik theme: dcb2017
region: secondary_menu region: '-1'
weight: 0 weight: -1
provider: null provider: null
plugin: 'system_menu_block:account' plugin: 'system_menu_block:account'
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: 81735ae1-10f7-4cf8-9f1d-e7eb51df8911 uuid: fc367835-6377-4d98-9350-8ebf249305f3
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: NDwadleLD3YVSbDUaakxyYZyINYtkFtOVGShfq4kWy8 default_config_hash: NDwadleLD3YVSbDUaakxyYZyINYtkFtOVGShfq4kWy8
id: bartik_branding id: dcb2017_branding
theme: bartik theme: dcb2017
region: header region: header
weight: 0 weight: -7
provider: null provider: null
plugin: system_branding_block plugin: system_branding_block
settings: settings:
@ -20,6 +20,6 @@ settings:
provider: system provider: system
label_display: '0' label_display: '0'
use_site_logo: true use_site_logo: true
use_site_name: true use_site_name: false
use_site_slogan: true use_site_slogan: false
visibility: { } visibility: { }

View file

@ -1,17 +1,17 @@
uuid: 790fc185-f306-4751-9491-ae1fd7bd530f uuid: 51e841b7-0189-4c6f-b325-0c7c0f72c7fc
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: oXUb3JZR2WW5VOdw4HrhRicCsq51mCgLfRyvheG68ck default_config_hash: oXUb3JZR2WW5VOdw4HrhRicCsq51mCgLfRyvheG68ck
id: bartik_breadcrumbs id: dcb2017_breadcrumbs
theme: bartik theme: dcb2017
region: breadcrumb region: '-1'
weight: 0 weight: -6
provider: null provider: null
plugin: system_breadcrumb_block plugin: system_breadcrumb_block
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: d94caa06-9721-4a4d-8f1f-d8bc952fac02 uuid: 25fc5073-4a88-46ba-a3e7-d502d3f64d57
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: 9EoWV2Lot6FVSr50t4hoKgiz1LIXYWNG-IIPYsWxBqo default_config_hash: 9EoWV2Lot6FVSr50t4hoKgiz1LIXYWNG-IIPYsWxBqo
id: bartik_content id: dcb2017_content
theme: bartik theme: dcb2017
region: content region: content
weight: 0 weight: -4
provider: null provider: null
plugin: system_main_block plugin: system_main_block
settings: settings:

View file

@ -1,4 +1,4 @@
uuid: 08958734-c949-4a6c-8990-bb08246d917c uuid: a18f5855-4afd-4f66-bb89-f906c5330a0a
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
@ -7,13 +7,13 @@ dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: kkISXE1LT2FJEoYnqCrCpeFB-2pmGmMxMklVk7rQcfg default_config_hash: kkISXE1LT2FJEoYnqCrCpeFB-2pmGmMxMklVk7rQcfg
id: bartik_footer id: dcb2017_footer
theme: bartik theme: dcb2017
region: footer_fifth region: footer
weight: 0 weight: -8
provider: null provider: null
plugin: 'system_menu_block:footer' plugin: 'system_menu_block:footer'
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: 88f10860-4669-44d4-b647-f309f73574c0 uuid: b3367531-c43b-48a6-bf32-c01ed78bf812
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- help - help
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: 8I8iACSa0sKO3k3jlvUG1ge52rfcKX7USJAQYnzuBgg default_config_hash: 8I8iACSa0sKO3k3jlvUG1ge52rfcKX7USJAQYnzuBgg
id: bartik_help id: dcb2017_help
theme: bartik theme: dcb2017
region: content region: '-1'
weight: -30 weight: -5
provider: null provider: null
plugin: help_block plugin: help_block
settings: settings:

View file

@ -1,15 +1,15 @@
uuid: 20e9a6a7-568b-4258-81a4-4df808b5d8fa uuid: 91d21f67-47b5-4332-befd-78880d6a0d9e
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: 13GQpeITIJsp1kyPniXtWZfyFH87vb1xxJCHifL4UeE default_config_hash: 13GQpeITIJsp1kyPniXtWZfyFH87vb1xxJCHifL4UeE
id: bartik_local_actions id: dcb2017_local_actions
theme: bartik theme: dcb2017
region: content region: '-1'
weight: -20 weight: -4
provider: null provider: null
plugin: local_actions_block plugin: local_actions_block
settings: settings:

View file

@ -1,15 +1,15 @@
uuid: 6f60f9c5-7594-4faa-8f03-b2223b0c6ac3 uuid: 09d638e3-91a1-4539-8719-4800478c8833
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: X9I1OB0W3WlWtrK-CNcg6hNWwa8wficanpH8pYnDZDE default_config_hash: X9I1OB0W3WlWtrK-CNcg6hNWwa8wficanpH8pYnDZDE
id: bartik_local_tasks id: dcb2017_local_tasks
theme: bartik theme: dcb2017
region: content region: content
weight: -40 weight: -5
provider: null provider: null
plugin: local_tasks_block plugin: local_tasks_block
settings: settings:

View file

@ -1,4 +1,4 @@
uuid: 58ceede6-442d-4ae1-83e8-54a00111acbe uuid: 61cfd62f-433c-44d5-b0f5-74d551c9f1f6
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
@ -7,13 +7,13 @@ dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: rx9IrdDv7Ldc4kpalZAxdhIPZfYIeOMh1N-qKoQZwHo default_config_hash: rx9IrdDv7Ldc4kpalZAxdhIPZfYIeOMh1N-qKoQZwHo
id: bartik_main_menu id: dcb2017_main_menu
theme: bartik theme: dcb2017
region: primary_menu region: header
weight: 0 weight: -6
provider: null provider: null
plugin: 'system_menu_block:main' plugin: 'system_menu_block:main'
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: 87b3ff32-1843-4006-b956-51d494429547 uuid: 3c1846ab-ce3c-4cb6-aabc-ba7eaad74f59
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: KHQIJ7Vfl25lTjzIc7qIvnuistt-Mw2O0kG4jCofmkI default_config_hash: KHQIJ7Vfl25lTjzIc7qIvnuistt-Mw2O0kG4jCofmkI
id: bartik_messages id: dcb2017_messages
theme: bartik theme: dcb2017
region: highlighted region: content
weight: 0 weight: -7
provider: null provider: null
plugin: system_messages_block plugin: system_messages_block
settings: settings:

View file

@ -1,15 +1,15 @@
uuid: bffa8217-37f2-4b5b-b45d-00585262c643 uuid: 27a2ad8e-dec1-4836-9cda-6d4513fc1a22
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: 7rR9chwXvdM2H8OYMAYx9Zj3GGlPMrZp_M3ZA4thYTk default_config_hash: 7rR9chwXvdM2H8OYMAYx9Zj3GGlPMrZp_M3ZA4thYTk
id: bartik_page_title id: dcb2017_page_title
theme: bartik theme: dcb2017
region: content region: content
weight: -50 weight: -6
provider: null provider: null
plugin: page_title_block plugin: page_title_block
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: 89bfd4e2-b9ad-4b0a-a57f-a91e49f9c03e uuid: bc4779f8-c2ee-4093-a68e-1db5eb1e7d48
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: jQQUUWN2Uxr5qZtc9zcJKBCxpKY8orN1u2HPqYYRQDI default_config_hash: jQQUUWN2Uxr5qZtc9zcJKBCxpKY8orN1u2HPqYYRQDI
id: bartik_powered id: dcb2017_powered
theme: bartik theme: dcb2017
region: footer_fifth region: '-1'
weight: 10 weight: -7
provider: null provider: null
plugin: system_powered_by_block plugin: system_powered_by_block
settings: settings:

View file

@ -1,17 +1,17 @@
uuid: c0010a6e-c654-4cf7-aba6-f1feee5d72fb uuid: 21cbc152-374d-42ee-9525-6739e32c4baa
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- search - search
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: za-39d5WDUg6XvbyqSnuVYEeq6QM4qKJxW8MnoAha5A default_config_hash: za-39d5WDUg6XvbyqSnuVYEeq6QM4qKJxW8MnoAha5A
id: bartik_search id: dcb2017_search
theme: bartik theme: dcb2017
region: sidebar_first region: '-1'
weight: -1 weight: -3
provider: null provider: null
plugin: search_form_block plugin: search_form_block
settings: settings:

View file

@ -1,19 +1,19 @@
uuid: 1df3e393-27a0-49ba-8163-20607cf9af99 uuid: 11901b2b-abc4-4ee3-ac60-1e210c2d8ea5
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
config: config:
- system.menu.tools - system.menu.tools
module: module:
- system - system
theme: theme:
- bartik - dcb2017
_core: _core:
default_config_hash: NeHSoqm4XFqA7_0bDmR429ZZQt3LRbZMNRJTMsFyOfI default_config_hash: NeHSoqm4XFqA7_0bDmR429ZZQt3LRbZMNRJTMsFyOfI
id: bartik_tools id: dcb2017_tools
theme: bartik theme: dcb2017
region: sidebar_first region: '-1'
weight: 0 weight: -2
provider: null provider: null
plugin: 'system_menu_block:tools' plugin: 'system_menu_block:tools'
settings: settings:

View file

@ -0,0 +1,25 @@
uuid: 70e5dcc0-4004-4772-9fca-2cb4f2e634b7
langcode: en
status: true
dependencies:
content:
- 'block_content:basic:3a62597a-8428-45ff-b8eb-d343b1e54256'
module:
- block_content
theme:
- dcb2017
id: footerinfo
theme: dcb2017
region: footer
weight: -7
provider: null
plugin: 'block_content:3a62597a-8428-45ff-b8eb-d343b1e54256'
settings:
id: 'block_content:3a62597a-8428-45ff-b8eb-d343b1e54256'
label: 'Footer info'
provider: block_content
label_display: '0'
status: true
info: ''
view_mode: full
visibility: { }

View file

@ -0,0 +1,31 @@
uuid: 820fb882-7770-4ea0-a3e8-1dae7677a84d
langcode: en
status: true
dependencies:
content:
- 'block_content:basic:6b3da151-4897-4e24-80bc-2bdd28eb3617'
module:
- block_content
- system
theme:
- dcb2017
id: homepagehero
theme: dcb2017
region: featured
weight: -8
provider: null
plugin: 'block_content:6b3da151-4897-4e24-80bc-2bdd28eb3617'
settings:
id: 'block_content:6b3da151-4897-4e24-80bc-2bdd28eb3617'
label: 'Homepage hero'
provider: block_content
label_display: '0'
status: true
info: ''
view_mode: full
visibility:
request_path:
id: request_path
pages: '<front>'
negate: false
context_mapping: { }

View file

@ -48,7 +48,7 @@ module:
theme: theme:
stable: 0 stable: 0
classy: 0 classy: 0
bartik: 0
seven: 0 seven: 0
dcb2017: 0
_core: _core:
default_config_hash: m2GVq11UAOVuNgj8x0t5fMOPujpvQQ_zxLoaly1BMEU default_config_hash: m2GVq11UAOVuNgj8x0t5fMOPujpvQQ_zxLoaly1BMEU

View file

@ -0,0 +1,10 @@
features:
node_user_picture: 1
comment_user_picture: 1
comment_user_verification: 1
favicon: 1
logo:
use_default: 1
path: themes/dcb2017/logo.png
favicon:
use_default: 1

View file

@ -5,7 +5,7 @@ slogan: ''
page: page:
403: '' 403: ''
404: '' 404: ''
front: /node front: /webform/submit_a_session
admin_compact_mode: false admin_compact_mode: false
weight_select_max: 100 weight_select_max: 100
langcode: en langcode: en

View file

@ -1,4 +1,4 @@
admin: seven admin: seven
default: bartik default: dcb2017
_core: _core:
default_config_hash: fOjer9hADYYnbCJVZMFZIIM1azTFWyg84ZkFDHfAbUg default_config_hash: fOjer9hADYYnbCJVZMFZIIM1azTFWyg84ZkFDHfAbUg

View file

@ -9,12 +9,12 @@ template: false
id: submit_a_session id: submit_a_session
title: 'Submit a session' title: 'Submit a session'
description: '' description: ''
elements: "speaker_email_address:\n '#type': email\n '#title': 'Your email address'\n '#required': true\nsession_title:\n '#type': textfield\n '#title': 'Session title'\n '#required': true\nsession_overview:\n '#type': textarea\n '#title': 'Session overview'\n '#description': 'A short overview of the proposed session.'\n '#required': true\nsession_skill_level:\n '#type': select\n '#title': 'Session skill level'\n '#description': 'A rough guide of the skill level of the session.'\n '#options':\n Beginner: Beginner\n Intermediate: Intermediate\n Advanced: Advanced\n '#required': true\nspeaker_name:\n '#type': textfield\n '#title': 'Your name'\n '#required': true\nspeaker_picture:\n '#type': webform_image_file\n '#title': 'Your picture'\n '#description': 'This image will be displayed along with your session on the website. Feel free to upload an avatar if you are not comfortable with us showing your face.'\n '#required': true\nspeaker_twitter_handle:\n '#type': textfield\n '#title': 'Your Twitter handle'\n '#description': 'If you have a Twitter account, please provide it here.'\nspeaker_drupal_org_handle:\n '#type': textfield\n '#title': 'Your Drupal.org handle'\n '#description': 'If you have an account on Drupal.org, please provide your handle here.'\n" elements: "speaker_name:\n '#type': textfield\n '#title': 'Your name'\n '#required': true\nspeaker_email_address:\n '#type': email\n '#title': 'Your email address'\n '#required': true\nsession_title:\n '#type': textfield\n '#title': 'Session title'\n '#required': true\nsession_overview:\n '#type': textarea\n '#title': 'Session overview'\n '#description': 'A short overview of the proposed session.'\n '#required': true\nsession_skill_level:\n '#type': select\n '#title': 'Session skill level'\n '#description': 'A rough guide of the skill level of the session.'\n '#options':\n Beginner: Beginner\n Intermediate: Intermediate\n Advanced: Advanced\n '#required': true\nspeaker_picture:\n '#type': webform_image_file\n '#title': 'Your picture'\n '#description': 'This image will be displayed along with your session on the website. Feel free to upload an avatar if you are not comfortable with us showing your face.'\n '#required': true\nspeaker_twitter_handle:\n '#type': textfield\n '#title': 'Your Twitter handle'\n '#description': 'If you have a Twitter account, please provide it here.'\nspeaker_drupal_org_handle:\n '#type': textfield\n '#title': 'Your Drupal.org handle'\n '#description': 'If you have an account on Drupal.org, please provide your handle here.'\n"
css: '' css: ''
javascript: '' javascript: ''
settings: settings:
page: true page: true
page_submit_path: '' page_submit_path: submit-a-session
page_confirm_path: '' page_confirm_path: ''
form_submit_label: '' form_submit_label: ''
form_submit_once: false form_submit_once: false

3
web/.gitignore vendored
View file

@ -59,3 +59,6 @@ Thumbs.db
# Ignore any extra git folders. # Ignore any extra git folders.
*/.git/ */.git/
# Ignore npm modules.
node_modules

View file

@ -14,9 +14,7 @@ $settings['container_yamls'][] = __DIR__ . '/services.yml';
* a local development environment, to insure that * a local development environment, to insure that
* the site settings remain consistent. * the site settings remain consistent.
*/ */
if (file_exists(__DIR__ . '/settings.pantheon.php')) { include __DIR__ . "/settings.pantheon.php";
include __DIR__ . "/settings.pantheon.php";
}
$settings['install_profile'] = 'standard'; $settings['install_profile'] = 'standard';

View file

@ -0,0 +1,130 @@
html {
font-family: 'Poppins', sans-serif;
font-size: 16px; }
a,
a:visited {
color: #666; }
a:hover, a:focus,
a:visited:hover,
a:visited:focus {
color: black; }
.region-header {
margin: 0 auto;
max-width: 72rem;
overflow: hidden; }
.region-featured {
position: relative; }
.region-featured:after {
background-image: url("../images/dcb-bg.jpg");
background-position: center center;
background-size: cover;
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1; }
.featured-footer {
background: black;
color: white;
font-size: 1.2rem;
font-weight: bold;
padding: 1rem;
text-align: center; }
.region-content {
margin: 0 auto;
max-width: 72rem;
padding: 1rem; }
.region-footer {
margin: 0 auto;
max-width: 72rem;
padding: 1rem; }
.layout-container > footer {
background-image: url("../images/dcb-bg.jpg");
background-position: center center;
background-size: cover; }
ul.menu {
margin: 0;
padding: 0;
text-align: center; }
@media screen and (min-width: 37.5rem) {
ul.menu {
text-align: left; } }
ul.menu li.menu-item {
display: inline-block;
padding: 0.5rem 1rem;
text-transform: uppercase; }
@media screen and (min-width: 37.5rem) {
ul.menu li.menu-item {
padding: 1rem 1.5rem; } }
ul.menu li.menu-item a {
color: black;
text-decoration: none; }
ul.menu li.menu-item a:hover, ul.menu li.menu-item a:focus, ul.menu li.menu-item a.is-active {
color: #44efb9; }
nav.menu--main {
font-weight: bold; }
@media screen and (min-width: 37.5rem) {
nav.menu--main {
margin: 0.8rem;
float: right; } }
.block-system-branding-block {
margin: 0.5rem auto;
width: 8rem; }
@media screen and (min-width: 37.5rem) {
.block-system-branding-block {
float: left;
margin: 0.5rem 2rem;
width: auto; } }
.site-logo img {
display: block;
max-width: 100%;
width: 11rem; }
#block-homepagehero {
font-size: 1.8rem;
line-height: 1.2;
margin: auto;
max-width: 30rem;
padding: 3rem 1rem;
text-align: center; }
@media screen and (min-width: 37.5rem) {
#block-homepagehero {
padding: 10rem 1rem; } }
#block-homepagehero img {
max-width: 100%; }
.form-item > label {
display: block;
font-weight: bold; }
.form-item > label.option {
display: inline;
font-weight: normal; }
.form-submit {
background: #b33ee9;
border: 0;
color: white;
font-weight: bold;
padding: 0.5rem 1rem;
text-transform: uppercase; }
.form-submit:hover, .form-submit:focus {
background: #44efb9; }
.form-text,
.form-email {
max-width: 95%; }
/*# sourceMappingURL=style.css.map */

View file

@ -0,0 +1 @@
{"version":3,"sources":["_global.scss","base/_variables.scss","layout/_header.scss","layout/_featured.scss","layout/_content.scss","layout/_footer.scss","components/_menus.scss","base/_mixins.scss","components/_blocks.scss","components/_forms.scss"],"names":[],"mappings":"AAAA;EACE,mCAAmC;EACnC,gBAAgB,EACjB;;AAED;;EAEE,YCDa,EDOd;EARD;;;IAMI,aAAa,EACd;;AEZH;EACE,eAAe;EACf,iBAAiB;EACjB,iBAAiB,EAClB;;ACJD;EACE,mBAAmB,EAcpB;EAfD;IAII,8CAAqB;IACrB,mCAAmC;IACnC,uBAAuB;IACvB,YAAY;IACZ,mBAAmB;IACnB,OAAO;IACP,QAAQ;IACR,SAAS;IACT,UAAU;IACV,YAAY,EACb;;AAGH;EACE,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,kBAAkB;EAClB,cAAc;EACd,mBAAmB,EACpB;;ACxBD;EACE,eAAe;EACf,iBAAiB;EACjB,cAAc,EACf;;ACJD;EACE,eAAe;EACf,iBAAiB;EACjB,cAAc,EACf;;AAED;EACE,8CAAqB;EACrB,mCAAmC;EACnC,uBAAuB,EACxB;;ACVD;EACE,UAAU;EACV,WAAW;EACX,mBAAmB,EA0BpB;EC3BC;IDFF;MAMI,iBAAiB,EAuBpB,EAAA;EApBG;IACA,sBAAsB;IACtB,qBAAqB;IACrB,0BAA0B,EAgB3B;IC1BD;MDOE;QAME,qBAAqB,EAaxB,EAAA;IA5BH;MAmBM,aAAa;MACb,sBAAsB,EAOvB;MA3BL;QAyBQ,eLvBW,EKwBZ;;AAKP;EACE,kBAAkB,EAMnB;ECpCC;ID6BF;MAII,eAAe;MACf,aAAa,EAEhB,EAAA;;AEtCD;EACE,oBAAoB;EACpB,YAAY,EAOb;EDPC;ICFF;MAKI,YAAY;MACZ,oBAAoB;MACpB,YAAY,EAEf,EAAA;;AAED;EACE,eAAe;EACf,gBAAgB;EAChB,aAAa,EACd;;AAED;EACE,kBAAkB;EAClB,iBAAiB;EACjB,aAAa;EACb,iBAAiB;EACjB,mBAAmB;EACnB,mBAAmB,EASpB;ED9BC;ICeF;MASI,oBAAoB,EAMvB,EAAA;EAHC;IACE,gBAAgB,EACjB;;AC/BU;EACX,eAAe;EACf,kBAAkB,EAMnB;EARY;IAKT,gBAAgB;IAChB,oBAAoB,EACrB;;AAGH;EFFE,oBNLgB;EMMhB,UAAU;EACV,aAAa;EACb,kBAAkB;EAClB,qBAAqB;EACrB,0BAA0B,EED3B;EAFD;IFOI,oBNfe,EMgBhB;;AEJH;;EAEE,eAAe,EAChB","file":"style.css","sourcesContent":["html {\n font-family: 'Poppins', sans-serif;\n font-size: 16px;\n}\n\na,\na:visited {\n color: $dcb-grey;\n\n &:hover,\n &:focus {\n color: black;\n }\n}\n\n","// Custom variables, colours etc.\n\n$dcb-green: #44efb9;\n$dcb-blue: #b33ee9;\n$dcb-purple: #ec16a8;\n\n$dcb-grey: #666;\n",".region-header {\n margin: 0 auto;\n max-width: 72rem;\n overflow: hidden;\n}\n",".region-featured {\n position: relative;\n\n &:after {\n background-image: url('../images/dcb-bg.jpg');\n background-position: center center;\n background-size: cover;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n }\n}\n\n.featured-footer {\n background: black;\n color: white;\n font-size: 1.2rem;\n font-weight: bold;\n padding: 1rem;\n text-align: center;\n}\n",".region-content {\n margin: 0 auto;\n max-width: 72rem;\n padding: 1rem;\n}\n",".region-footer {\n margin: 0 auto;\n max-width: 72rem;\n padding: 1rem;\n}\n\n.layout-container > footer {\n background-image: url('../images/dcb-bg.jpg');\n background-position: center center;\n background-size: cover;\n}\n","ul.menu {\n margin: 0;\n padding: 0;\n text-align: center;\n\n @include media-tablet {\n text-align: left;\n }\n\n li.menu-item {\n display: inline-block;\n padding: 0.5rem 1rem;\n text-transform: uppercase;\n\n @include media-tablet {\n padding: 1rem 1.5rem;\n }\n\n a {\n color: black;\n text-decoration: none;\n\n &:hover,\n &:focus,\n &.is-active {\n color: $dcb-green;\n }\n }\n }\n}\n\nnav.menu--main {\n font-weight: bold;\n\n @include media-tablet {\n margin: 0.8rem;\n float: right;\n }\n}\n","// Tablet size breakpoint 600px.\n@mixin media-tablet {\n @media screen and (min-width: 37.5rem) {\n @content;\n }\n}\n\n@mixin button {\n background: $dcb-blue;\n border: 0;\n color: white;\n font-weight: bold;\n padding: 0.5rem 1rem;\n text-transform: uppercase;\n\n &:hover,\n &:focus {\n background: $dcb-green;\n }\n}\n",".block-system-branding-block {\n margin: 0.5rem auto;\n width: 8rem;\n\n @include media-tablet {\n float: left;\n margin: 0.5rem 2rem;\n width: auto;\n }\n}\n\n.site-logo img {\n display: block;\n max-width: 100%;\n width: 11rem;\n}\n\n#block-homepagehero {\n font-size: 1.8rem;\n line-height: 1.2;\n margin: auto;\n max-width: 30rem;\n padding: 3rem 1rem;\n text-align: center;\n\n @include media-tablet {\n padding: 10rem 1rem;\n }\n\n img {\n max-width: 100%;\n }\n}\n",".form-item > label {\n display: block;\n font-weight: bold;\n\n &.option {\n display: inline;\n font-weight: normal;\n }\n}\n\n.form-submit {\n @include button;\n}\n\n.form-text,\n.form-email {\n max-width: 95%;\n}\n"]}

View file

@ -0,0 +1,15 @@
name: Drupalcamp Bristol 2017
type: theme
description: Theme for the new Drupalcamp Bristol 2017 site based on classy.
core: 8.x
base theme: classy
libraries:
- dcb2017/global-styling
- dcb2017/fonts
# Regions
regions:
header: Header
featured: Featured
content: Content
footer: Footer

View file

@ -0,0 +1,9 @@
global-styling:
css:
component:
css/style.css: {}
fonts:
css:
theme:
//fonts.googleapis.com/css?family=Poppins: { type: external }

View file

@ -0,0 +1,15 @@
<?php
/**
* Theming stuff goes here!
*/
/**
* Implements template_preprocess_html().
*/
function dcb2017_preprocess_html(&$variables) {
if (\Drupal::service('path.matcher')->isFrontPage()) {
$site_config = \Drupal::config('system.site');
$variables['head_title'] = $site_config->get('name');
}
}

View file

@ -0,0 +1,46 @@
/**
* @file gulpfile.js
*
* Provides gulp tasks for building theme components.
*/
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
prefix = require('gulp-autoprefixer'),
sourcemaps = require('gulp-sourcemaps');
/**
* @task sass
*
* Compile css from scss.
*/
gulp.task('sass', function () {
return gulp.src('sass/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({
// Include the bootstrap library.
//includePaths: ['./node_modules/bootstrap-sass/assets/stylesheets']
}))
.pipe(prefix(['last 15 versions', '> 1%', 'ie 8', 'ie 7'], { cascade: true }))
.pipe(sourcemaps.write(''))
.pipe(gulp.dest('css'));
});
/**
* @task watch
*
* Watch scss files for changes & recompile.
*/
gulp.task('watch', function () {
gulp.watch(['sass/*.scss', 'sass/**/*.scss'], ['sass']);
});
/**
* @task default
*
* Default task, running just `gulp` will
* compile & watch files.
*/
gulp.task('default', ['sass', 'watch']);

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

BIN
web/themes/dcb2017/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,19 @@
{
"name": "dcb2017_theme",
"version": "1.0.0",
"description": "A theme for new Drupalcamp Bristol site.",
"main": "gulpfile.js",
"author": "",
"license": "ISC",
"dependencies": {
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-autoprefixer": "^2.3.1",
"gulp-sass": "^2.0.4",
"gulp-sourcemaps": "^1.5.2"
},
"scripts": {
"postinstall": "find node_modules/ -name '*.info' -type f -delete"
}
}

View file

@ -0,0 +1,15 @@
html {
font-family: 'Poppins', sans-serif;
font-size: 16px;
}
a,
a:visited {
color: $dcb-grey;
&:hover,
&:focus {
color: black;
}
}

View file

@ -0,0 +1,20 @@
// Tablet size breakpoint 600px.
@mixin media-tablet {
@media screen and (min-width: 37.5rem) {
@content;
}
}
@mixin button {
background: $dcb-blue;
border: 0;
color: white;
font-weight: bold;
padding: 0.5rem 1rem;
text-transform: uppercase;
&:hover,
&:focus {
background: $dcb-green;
}
}

View file

@ -0,0 +1,7 @@
// Custom variables, colours etc.
$dcb-green: #44efb9;
$dcb-blue: #b33ee9;
$dcb-purple: #ec16a8;
$dcb-grey: #666;

View file

@ -0,0 +1,33 @@
.block-system-branding-block {
margin: 0.5rem auto;
width: 8rem;
@include media-tablet {
float: left;
margin: 0.5rem 2rem;
width: auto;
}
}
.site-logo img {
display: block;
max-width: 100%;
width: 11rem;
}
#block-homepagehero {
font-size: 1.8rem;
line-height: 1.2;
margin: auto;
max-width: 30rem;
padding: 3rem 1rem;
text-align: center;
@include media-tablet {
padding: 10rem 1rem;
}
img {
max-width: 100%;
}
}

View file

@ -0,0 +1,18 @@
.form-item > label {
display: block;
font-weight: bold;
&.option {
display: inline;
font-weight: normal;
}
}
.form-submit {
@include button;
}
.form-text,
.form-email {
max-width: 95%;
}

View file

@ -0,0 +1,39 @@
ul.menu {
margin: 0;
padding: 0;
text-align: center;
@include media-tablet {
text-align: left;
}
li.menu-item {
display: inline-block;
padding: 0.5rem 1rem;
text-transform: uppercase;
@include media-tablet {
padding: 1rem 1.5rem;
}
a {
color: black;
text-decoration: none;
&:hover,
&:focus,
&.is-active {
color: $dcb-green;
}
}
}
}
nav.menu--main {
font-weight: bold;
@include media-tablet {
margin: 0.8rem;
float: right;
}
}

View file

@ -0,0 +1,5 @@
.region-content {
margin: 0 auto;
max-width: 72rem;
padding: 1rem;
}

View file

@ -0,0 +1,25 @@
.region-featured {
position: relative;
&:after {
background-image: url('../images/dcb-bg.jpg');
background-position: center center;
background-size: cover;
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
}
.featured-footer {
background: black;
color: white;
font-size: 1.2rem;
font-weight: bold;
padding: 1rem;
text-align: center;
}

View file

@ -0,0 +1,11 @@
.region-footer {
margin: 0 auto;
max-width: 72rem;
padding: 1rem;
}
.layout-container > footer {
background-image: url('../images/dcb-bg.jpg');
background-position: center center;
background-size: cover;
}

View file

@ -0,0 +1,5 @@
.region-header {
margin: 0 auto;
max-width: 72rem;
overflow: hidden;
}

View file

@ -0,0 +1,15 @@
// External libraries.
@import 'base/variables';
@import 'base/mixins';
@import 'global'; // Global Theme Customizations.
@import 'layout/header';
@import 'layout/featured';
@import 'layout/content';
@import 'layout/footer';
@import 'components/menus';
@import 'components/blocks';
@import 'components/forms';

View file

@ -0,0 +1,49 @@
{#
/**
* @file
* Theme override to display a block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* @see template_preprocess_block()
*/
#}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
<img src="{{ base_path ~ directory }}/images/logo-with-dates.svg" alt="Drupalcamp Bristol 30th June - 2nd July" />
{% block content %}
{{ content }}
{% endblock %}
</div>

View file

@ -0,0 +1,72 @@
{#
/**
* @file
* Theme override to display a single page.
*
* The doctype, html, head and body tags are not in this template. Instead they
* can be found in the html.html.twig template in this directory.
*
* Available variables:
*
* General utility variables:
* - base_path: The base URL path of the Drupal installation. Will usually be
* "/" unless you have installed Drupal in a sub-directory.
* - is_front: A flag indicating if the current page is the front page.
* - logged_in: A flag indicating if the user is registered and signed in.
* - is_admin: A flag indicating if the user has permission to access
* administration pages.
*
* Site identity:
* - front_page: The URL of the front page. Use this instead of base_path when
* linking to the front page. This includes the language domain or prefix.
*
* Page content (in order of occurrence in the default page.html.twig):
* - node: Fully loaded node, if there is an automatically-loaded node
* associated with the page and the node ID is the second argument in the
* page's path (e.g. node/12345 and node/12345/revisions, but not
* comment/reply/12345).
*
* Regions:
* - page.header: Items for the header region.
* - page.primary_menu: Items for the primary menu region.
* - page.secondary_menu: Items for the secondary menu region.
* - page.highlighted: Items for the highlighted content region.
* - page.help: Dynamic help text, mostly for admin pages.
* - page.content: The main content of the current page.
* - page.sidebar_first: Items for the first sidebar.
* - page.sidebar_second: Items for the second sidebar.
* - page.footer: Items for the footer region.
* - page.breadcrumb: Items for the breadcrumb region.
*
* @see template_preprocess_page()
* @see html.html.twig
*/
#}
<div class="layout-container">
<header role="banner">
{{ page.header }}
</header>
{% if page.featured %}
<div class="layout-featured">
{{ page.featured }}
</div>
{% endif %}
<main role="main">
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
<div class="layout-content">
{{ page.content }}
</div>{# /.layout-content #}
</main>
{% if page.footer %}
<footer role="contentinfo">
{{ page.footer }}
</footer>
{% endif %}
</div>{# /.layout-container #}

View file

@ -0,0 +1,30 @@
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region <div>.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{%
set classes = [
'region',
'region-' ~ region|clean_class,
]
%}
{% if content %}
<div{{ attributes.addClass(classes) }}>
{{ content }}
<div class="featured-footer">
{{ 'Early bird tickets coming soon'|t|upper }}
</div>
</div>
{% endif %}