created reha theme

This commit is contained in:
2023-11-20 21:17:12 +01:00
parent e7474a2258
commit ea98958dc8
27 changed files with 2793 additions and 6 deletions
View File
+17
View File
@@ -0,0 +1,17 @@
/**
* @file
* reha behaviors.
*/
(function (Drupal) {
'use strict';
Drupal.behaviors.reha = {
attach: function (context, settings) {
console.log('It works!');
}
};
} (Drupal));
+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60">
<rect x="3" y="3" rx="10" ry="10" width="94" height="54" style="stroke: #187bb8; fill: #f5f5ff;"/>
<text x="50%" y="50%" text-anchor="middle" alignment-baseline="middle" style="font-family: Arial, 'Helvetica Neue', Helvetica; fill: #187bb8;">reha logo</text>
</svg>

After

Width:  |  Height:  |  Size: 335 B

File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
{
"name": "rehatheme",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"scss": "node-sass -w scss/ -o css/"
},
"author": "",
"license": "ISC",
"devDependencies": {
"node-sass": "^9.0.0"
}
}
+6
View File
@@ -0,0 +1,6 @@
Sass
```
npm install
npm run scss
```
+21
View File
@@ -0,0 +1,21 @@
name: reha
type: theme
base theme: stark
description: reha drupal theme based on stark
package: reha
core: 8.x
core_version_requirement: ^8 || ^9
libraries:
- reha/global
regions:
header: 'Header'
primary_menu: 'Primary menu'
secondary_menu: 'Secondary menu'
page_top: 'Page top'
page_bottom: 'Page bottom'
featured: 'Featured'
breadcrumb: 'Breadcrumb'
content: 'Content'
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
footer: 'Footer'
@@ -0,0 +1,7 @@
# Main theme library.
global:
js:
js/reha.js: {}
css:
theme:
css/reha.css: {}
+27
View File
@@ -0,0 +1,27 @@
<?php
/**
* @file
* Functions to support theming in the reha theme.
*/
/**
* Implements hook_preprocess_HOOK() for html.html.twig.
*/
function reha_preprocess_html(&$variables) {
}
/**
* Implements hook_preprocess_HOOK() for page.html.twig.
*/
function reha_preprocess_page(&$variables) {
}
/**
* Implements hook_preprocess_HOOK() for node.html.twig.
*/
function reha_preprocess_node(&$variables) {
}
+3
View File
@@ -0,0 +1,3 @@
body{
// background-color: blue;
}