承接 contao-themes-net/theme-components-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

contao-themes-net/theme-components-bundle

Composer 安装命令:

composer require contao-themes-net/theme-components-bundle

包简介

theme components bundle for Contao 4

README 文档

README

A collection of elements without styling for our Contao Themes. Contained Elements:

  • Contentbox
  • Teaserbox
  • Price Table
  • Feature Element
  • Slider Element
  • Content Wrapper
  • Contrast switcher icon
  • Size icon insert tag with backlink

Available insert tags

{{comp::contrast}}
{{comp::size::barrierefreiheit.html#fontSize}}

Where link can be replaced by a alias or a Uri in the comp::size::link insert tag. If no link is specified, the tag generates a link to the root page.

The insert tags can be placed anywhere you like, and the appearance depends on your theme or styling.

This symbol stands for switch between high and low contrast:

img.png

and this for change font size:

img_1.png

But these are only two examples. The appearance depends on your theme and styling.

The SVG icons are taken from: https://github.com/google/material-design-icons (See also the enclosed license under LICENSE_MATERIAL_DESIGN_ICONS).

Available CSS classes

The bundle provides several CSS classes for high contrast mode:

# excerpt

.hc-invert,
.hc-invert-pictures img,
.hc-invert-pictures svg {
    filter: invert(1);
}

.hc-greyscale,
.hc-greyscale-pictures img,
.hc-greyscale-pictures svg {
    filter: grayscale(1);
}

.hc-bg-black {
    background: black !important;
    color: white !important;
}

These classes can be used to control how the website behaves when high contrast is applied. All classes can be found here.

Configuration

You have the option to configure the use of high contrast, auto high contrast and font size to a small extent. This is done in the start point of the website for the entire page tree below. You can find the options under ► pageswebsite start page under the legend ► WCAG settings (Web Content Accessibility Guidelines). WCAG here stands for the official Web Content Accessibility Guide.

The difference between High Contrast and Auto High Contrast is that High Contrast allows users to manually activate the contrast mode with a click, while Auto High Contrast automatically enables the contrast mode when the system’s dark mode is active.

wcag-settings

Here you can de/activate features (i.e. insert tags) individually and define the assignment between the page explaining the font size change and the icon.

German

Dieses Bundle bringt verschiedene Elemente mit Templates (ohne Styling) für unsere Contao Themes mit. Enthaltene Elemente:

  • Contentbox
  • Teaserbox
  • Preistabelle
  • Feature-Element
  • Slider-Element
  • Inhaltscontainer
  • Kontrastwechsler Icon
  • Insert Tag für Schriftgröße mit Backlink-Funktion

Verfügbare Insert-Tags

Das Bundle stellt die zwei Insert-Tags bereit:

{{comp::contrast}}
{{comp::size::link}}

Wobei link beim Insert-Tag comp::size::link durch einen alias oder eine Uri ersetzt werden kann. Wird kein link angegeben, so generiert das Tag einen Link auf die Root-Page. Die Insert-Tags können beliebig platziert werden, wobei das Aussehen von Ihrem Theme oder Styling abhängig ist.

Dabei steht dieses Symbol für hohen Kontrast umschalten:

img.png

und dieses für Schriftgröße ändern:

img_1.png

Das sind aber nur zwei Beispiele. Die Darstellung ist von Deinem Theme und vom Styling abhängig.

The SVG icons stammen aus: https://github.com/google/material-design-icons (Siehe dazu auch die beiliegende Lizenz unter LICENSE_MATERIAL_DESIGN_ICONS).

Verfügbare CSS-Klassen

Das Bundle stellt mehrere CSS Klassen für den hohen Kontrast Modus bereit:

# Auszug

.hc-invert,
.hc-invert-pictures img,
.hc-invert-pictures svg {
    filter: invert(1);
}

.hc-greyscale,
.hc-greyscale-pictures img,
.hc-greyscale-pictures svg {
    filter: grayscale(1);
}

.hc-bg-black {
    background: black !important;
    color: white !important;
}

Mit diesen Klassen kann gesteuert werden, wie sich die Website bei der Anwendung von hohem Kontrast verhält. Alle Klassen sind hier zu finden.

Konfiguration

Es gibt die die Möglichkeit, die Verwendung von hohem Kontrast, automatischem hohem Kontrast und Schriftgröße in geringen Umfang zu konfigurieren. Das geschieht im Startpunkt der Website für den gesamten darunter liegenden Seitenbaum. Die Optionen ist unter ► SeitenWebsite-Startseite unter der Legende ► WCAG-Einstellungen (Web Content Accessibility Guidelines) zu finden. WCAG steht hier für die offiziellen Richtlinien zur barrierefreihen Gestaltung von Websites.

Der Unterschied zwischen hohem Kontrast und automatischem hohem Kontrast besteht darin, dass High Contrast manuell per Mausklick aktiviert werden kann, während Auto High Contrast den Kontrastmodus automatisch einschaltet, sobald in den Systemeinstellungen der Dark Mode aktiviert ist.

wcag-einstellungen

Hier können Sie Features (sprich Insert-Tags) einzeln de/aktivieren und die Zuordnung zwischen der Seite zur Erläuterung der Schriftgrößenänderung und dem Icon festlegen.

DEV

run before commit

vendor/bin/ecs check src tests

contao-themes-net/theme-components-bundle 适用场景与选型建议

contao-themes-net/theme-components-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.66k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「theme」 「template」 「contao」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 contao-themes-net/theme-components-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 contao-themes-net/theme-components-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 contao-themes-net/theme-components-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 30.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 29
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2018-10-25