Skip to content

Commit 990d205

Browse files
author
Simon L. Lange
committed
Added: New theme for Fredericia Main site
1 parent b969f3b commit 990d205

File tree

429 files changed

+43068
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+43068
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
### Prerequisites
3+
4+
<!-- Before being able to run this package you need to have node installed on your machine.
5+
6+
After node is installed you need a global package manager, as well. We use Yarn instead of NPM as it is way faster due to the way it utilizes local caching.
7+
8+
To install Yarn, follow the guide on: https://yarnpkg.com/en/docs/install#mac-stable -->
9+
10+
We use npm
11+
Node version on Fredericia v14.19.0
12+
<!-- cannot update higher because of incompatibility
13+
14+
if we want to update >= Node v15 then we should update node sass, and this forces us to update font-awesome and dkfds packages.
15+
Updating those packages forces us update whole website. -->
16+
17+
### First time use
18+
When you initialize this project, you need to install all required node dependencies (listed inside package.json).
19+
20+
To install all node dependencies run:
21+
22+
`npm install`
23+
24+
### Compile and build CSS and javascript
25+
26+
You can see which options this project has inside package.json's "scripts: { option }".
27+
28+
To compile CSS and javascript, run:
29+
30+
`npm run watch`
31+
32+
### Hot reload (live reload)
33+
34+
This starts up a local server which proxies the traffic from your local installation, to the server.
35+
36+
When editing a CSS or JS file, the page will instantly reload and display the changes.
37+
38+
Inside "./src/compile-settings.json" there is a "proxy" value. This value determines the path to your local live installation of this project.
39+
40+
In my local project i would access this project inside the browser with ex. "project.dev". Therefor this is the value i would enter inside the "proxy".
41+
42+
**As this value is developer specific and would vary from developer-to-developer, please don't commit your change to this file.**
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
$info = [
4+
// Available colors and color labels used in theme.
5+
'fields' => [
6+
'background_color__default' => t('Background color - default'),
7+
'background_color__primary' => t('Background color - primary'),
8+
'background_color__secondary' => t('Background color - secondary (has white text)'),
9+
// 'background_color__tertiary' => t('Background color - tertiary (has white text)'),
10+
// 'background_color__navigation' => t('Background color - navigation (has white text)'),
11+
// 'background_color__footer_primary' => t('Background color - footer primary (has white text)'),
12+
// 'background_color__footer_secondary' => t('Background color - footer secondary (has white text)'),
13+
// 'background_color__button' => t('Background color - button'),
14+
// 'background_color__button_hover' => t('Background color - button:hover'),
15+
// 'color__link' => t('Link color'),
16+
// 'color__link__hover' => t('Link:hover color'),
17+
// 'color__footer_link' => t('Footer link color'),
18+
// 'color__bullets' => t('Bullets color'),
19+
],
20+
21+
// Pre-defined color schemes.
22+
'schemes' => [
23+
'default' => [
24+
'title' => t('Standard (default)'),
25+
'colors' => [
26+
'background_color__default' => '#007ca3',
27+
'background_color__primary' => '#007ca3',
28+
'background_color__secondary' => '#4195b2',
29+
// 'background_color__tertiary' => '#165f1d',
30+
// 'background_color__navigation' => '#921730',
31+
// 'background_color__footer_primary' => '#00335b',
32+
// 'background_color__footer_secondary' => '#2a4f75',
33+
// 'background_color__button' => '#196620',
34+
// 'background_color__button_hover' => '#114f16',
35+
// 'color__link' => '#022e51',
36+
// 'color__link__hover' => '#01233e',
37+
// 'color__footer_link' => '#6dcff6',
38+
// 'color__bullets' => '#a5122f',
39+
],
40+
],
41+
],
42+
43+
// CSS files (excluding @import) to rewrite with new color scheme.
44+
'css' => [
45+
'dist/stylesheets/stylesheet.css',
46+
],
47+
48+
// Files to copy.
49+
'copy' => [
50+
'logo.svg',
51+
],
52+
];
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'Designsystem.dk - Fredericia'
2+
type: theme
3+
description: 'Theme for Fredericia.'
4+
core: 8.x
5+
core_version_requirement: ^8 || ^9
6+
screenshot: screenshot.png
7+
logo: logo.png
8+
base theme: fds_base_theme
9+
package: OS2web
10+
11+
regions:
12+
header__logo: 'Header - logo'
13+
header__top_navigation: 'Header - top navigation'
14+
header__main_navigation: 'Header - main navigation'
15+
banner_search: 'Banner search'
16+
small_search: 'Small search'
17+
highlighted: Highlighted
18+
featured_top: 'Featured top'
19+
breadcrumb: Breadcrumb
20+
content: Content
21+
sidebar_first: 'Sidebar first'
22+
sidebar_second: 'Sidebar second'
23+
featured_bottom_first: 'Featured bottom first'
24+
footer__latest_content: 'Footer - latest content'
25+
footer_first: 'Footer first'
26+
footer_second: 'Footer second'
27+
embedded_code: 'Embedded code'
28+
29+
libraries:
30+
- 'fds_fredericia_theme/fonts'
31+
- 'fds_fredericia_theme/styles'
32+
- 'fds_fredericia_theme/javascripts'
33+
34+
# libraries-override:
35+
# fds_base_theme/javascripts:
36+
# js:
37+
# js/slideshow.js: js/slideshow.js
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
fonts:
2+
css:
3+
base:
4+
'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap': { type: external }
5+
6+
styles:
7+
css:
8+
theme:
9+
dist/stylesheets/stylesheet.css: {}
10+
"https://slinky.js.org/dist/slinky.min.css": { type: external, minified: true }
11+
javascripts:
12+
js:
13+
src/javascripts/slinky.js: {}
14+
'https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.js': { type: external }
15+
js/tns.js: {}
16+
js/slideshow.js: {}
17+
dist/javascripts/app.js: {}
18+
'https://cdhsign.dk/cdh_player.js': { type: external }
19+
dependencies:
20+
- core/drupal
21+
- core/jquery

0 commit comments

Comments
 (0)