Browse Source

Added Contact Modals

rebrush-2020
PHENOM 1 week ago
parent
commit
d85920e837

+ 3
- 1
composer.json View File

@@ -29,6 +29,7 @@
"drupal/google_analytics": "^2.4",
"drupal/jsonapi_extras": "^3.13",
"drupal/memcache": "^2.0",
"drupal/menu_link_attributes": "^1.0",
"drupal/metatag": "^1.11",
"drupal/module_filter": "^3.1",
"drupal/paragraphs": "^1.10",
@@ -37,7 +38,8 @@
"drupal/radix_layouts": "^4.1",
"drupal/simple_sitemap": "^3.5",
"drupal/token": "^1.6",
"drupal/twig_vardumper": "^1.2"
"drupal/twig_vardumper": "^1.2",
"drupal/yaml_editor": "1.x-dev"
},
"require-dev": {
},

+ 97
- 2
composer.lock View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "da1365ecfeaf1b5c568faea9d5d14bb1",
"content-hash": "94f44f2cb30c4d5f26b75c1ef0f8bf10",
"packages": [
{
"name": "alchemy/zippy",
@@ -2603,6 +2603,57 @@
}
},
{
"name": "drupal/menu_link_attributes",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/menu_link_attributes.git",
"reference": "8.x-1.0"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/menu_link_attributes-8.x-1.0.zip",
"reference": "8.x-1.0",
"shasum": "6386cc2fcd7ae0d17d2a82d690866028b132055c"
},
"require": {
"drupal/core": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.0",
"datestamp": "1507195827",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "yannickoo",
"homepage": "https://www.drupal.org/user/531118"
}
],
"description": "Allows you to add attributes to menu links.",
"homepage": "http://drupal.org/project/menu_link_attributes",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/menu_link_attributes",
"issues": "http://drupal.org/project/issues/menu_link_attributes"
}
},
{
"name": "drupal/metatag",
"version": "1.11.0",
"source": {
@@ -3175,6 +3226,48 @@
}
},
{
"name": "drupal/yaml_editor",
"version": "dev-1.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/yaml_editor.git",
"reference": "7785922dcacc1907e4db82b5197038953efedbfa"
},
"require": {
"drupal/core": "~8.0"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.x-dev",
"datestamp": "1507930443",
"security-coverage": {
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "yannickoo",
"homepage": "https://www.drupal.org/user/531118"
}
],
"description": "Adds an editor for YAML configuration textareas.",
"homepage": "https://www.drupal.org/project/yaml_editor",
"support": {
"source": "https://git.drupalcode.org/project/yaml_editor"
},
"time": "2017-10-13T21:33:18+00:00"
},
{
"name": "e0ipso/shaper",
"version": "1.2.3",
"source": {
@@ -6629,7 +6722,9 @@
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"stability-flags": {
"drupal/yaml_editor": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": [],

+ 2
- 2
web/modules/phenomic_net_bytebeat/assets/js/bytebeat-ui.js View File

@@ -5,7 +5,7 @@ $(() => {

function setVolume(val) {
$('#volume-slider').val(val)
$('#audio-player')[0].volume = ($('#volume-slider').val() / 100.00)
$('#audio-player')[0].volume = ($('#volume-slider').val())
}

$('#edit-generate-btn').click((e) => {
@@ -14,7 +14,7 @@ $(() => {

$('#volume-slider').on('input', () => {
prevVolume = $('#volume-slider').val()
$('#audio-player')[0].volume = ($('#volume-slider').val() / 100.00)
$('#audio-player')[0].volume = ($('#volume-slider').val())
})

$('#play-btn').click((e) => {

+ 3
- 0
web/modules/phenomic_net_bytebeat/src/Form/BytebeatForm.php View File

@@ -194,6 +194,9 @@ class BytebeatForm extends FormBase {
$form['volume-slider'] = [
'#type' => 'range',
'#title' => $this->t('Volume'),
'#min' => '0',
'#max' => '1',
'#step' => '0.01',
'#attributes' => [
'id' => 'volume-slider'
],

+ 33
- 0
web/themes/phenomic_net/src/components/block/block-contact-modal.twig View File

@@ -0,0 +1,33 @@
{#
/**
* @file
* Template for a Block component.
*
* Available config:
* - utility_classes: An array of utility classes.
*/
#}
{% set classes = [
'block',
bundle ? 'block--' ~ bundle|clean_class,
id ? 'block--' ~ id|replace({"_": "-"})|clean_class,
]|merge(utility_classes ? utility_classes : []) %}

<div class="modal" id="{{ id }}" tabindex="-1" role="dialog" aria-labelledby="{{ id ~ 'Label' }}" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="{{ id ~ 'Label' }}">{{ label }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
{{ content }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

+ 7
- 0
web/themes/phenomic_net/src/components/modal/_modal.scss View File

@@ -0,0 +1,7 @@
.modal.show {
animation-duration: 0.5s;
-webkit-animation-name: lightSpeedIn;
animation-name: lightSpeedIn;
-webkit-animation-timing-function: ease-out;
animation-timing-function: ease-out;
}

+ 2
- 1
web/themes/phenomic_net/src/components/navbar/_navbar.scss View File

@@ -14,6 +14,7 @@

.dropdown-menu.show {
animation-duration: 0.2s;
-webkit-animation-name: zoomIn;
animation-name: zoomIn;
}

@@ -40,4 +41,4 @@
#logo-anim {
width: 48px;
height: 48px;
}
}

+ 1
- 0
web/themes/phenomic_net/src/sass/phenomic_net.style.scss View File

@@ -61,6 +61,7 @@
@import "../components/spinner/spinner";
@import "../components/icons/fa-icons";
@import "../components/carousel/carousel";
@import "../components/modal/modal";

// Other
// -----------------------------------------------------------------------------

+ 9
- 0
web/themes/phenomic_net/templates/block/block--block-content--modal.html.twig View File

@@ -0,0 +1,9 @@
{#
/**
* @file
* Template for a block.
*/
#}
{% include '@phenomic_net/block/block-contact-modal.twig' with {
html_tag: 'div',
} %}

Loading…
Cancel
Save