create-template-bricks 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -2
- package/bin/cli.js +403 -0
- package/package.json +49 -4
- package/templates/base/.babelrc +18 -0
- package/templates/base/.editorconfig +22 -0
- package/templates/base/.eslintrc.json +130 -0
- package/templates/base/AGENTS.md +49 -0
- package/templates/base/README.md +121 -0
- package/templates/base/gulpfile.js +46 -0
- package/templates/base/package.json +82 -0
- package/templates/base/postcss.config.mjs +6 -0
- package/templates/base/src/assets/css/vendor/.gitkeep +0 -0
- package/templates/base/src/assets/fonts/.gitkeep +0 -0
- package/templates/base/src/assets/img/Logo.svg +32 -0
- package/templates/base/src/assets/img/favicons/favicon.ico +0 -0
- package/templates/base/src/assets/img/sprite/cup-bronze.png +0 -0
- package/templates/base/src/assets/img/sprite/cup-bronze@2x.png +0 -0
- package/templates/base/src/assets/img/sprite.png +0 -0
- package/templates/base/src/assets/img/sprite@2x.png +0 -0
- package/templates/base/src/assets/img/svg-sprite/close.svg +3 -0
- package/templates/base/src/assets/img/svg-sprite/favorite.svg +3 -0
- package/templates/base/src/assets/img/svg-sprite/keyboard.svg +3 -0
- package/templates/base/src/assets/js/vendor/.gitkeep +0 -0
- package/templates/base/src/styles/core/base.scss +31 -0
- package/templates/base/src/styles/core/extends.scss +11 -0
- package/templates/base/src/styles/core/fonts.scss +0 -0
- package/templates/base/src/styles/core/index.scss +10 -0
- package/templates/base/src/styles/core/keyframes.scss +49 -0
- package/templates/base/src/styles/core/layouts/footer.scss +1 -0
- package/templates/base/src/styles/core/layouts/header/index.scss +1 -0
- package/templates/base/src/styles/core/layouts/index.scss +2 -0
- package/templates/base/src/styles/core/page.scss +16 -0
- package/templates/base/src/styles/core/typography.scss +1 -0
- package/templates/base/src/styles/core/ui/icons.scss +31 -0
- package/templates/base/src/styles/core/ui/index.scss +2 -0
- package/templates/base/src/styles/core/ui/scrollbar.scss +14 -0
- package/templates/base/src/styles/core/variables.scss +41 -0
- package/templates/base/src/styles/index.scss +1 -0
- package/templates/base/src/styles/plugins/functions.scss +0 -0
- package/templates/base/src/styles/plugins/media.scss +63 -0
- package/templates/base/src/styles/plugins/mixins.scss +31 -0
- package/templates/base/src/styles/plugins/sprite-mixin.scss +75 -0
- package/templates/base/src/styles/plugins/sprite.scss +154 -0
- package/templates/base/src/styles.scss +2 -0
- package/templates/base/src/tailwind.css +1 -0
- package/templates/base/src/tmplConfig.js +22 -0
- package/templates/base/tailwind.config.js +23 -0
- package/templates/base/tasks/archive.js +37 -0
- package/templates/base/tasks/clean.js +17 -0
- package/templates/base/tasks/config.js +98 -0
- package/templates/base/tasks/copy.js +53 -0
- package/templates/base/tasks/helper.js +31 -0
- package/templates/base/tasks/images/image-optimize.js +46 -0
- package/templates/base/tasks/images/index.js +27 -0
- package/templates/base/tasks/images/plugins/optimize-raster.js +44 -0
- package/templates/base/tasks/images/png-sprite.js +43 -0
- package/templates/base/tasks/template/data.js +28 -0
- package/templates/base/tasks/template/index.js +48 -0
- package/templates/base/tasks/template/plugins/generate-static-path.js +37 -0
- package/templates/base/tasks/template/plugins/nunjucks-relative-paths-includes.js +39 -0
- package/templates/base/tasks/template/plugins/nunjucks-relative-system-loader.js +28 -0
- package/templates/base/tasks/template/plugins/template-dependencies.js +246 -0
- package/templates/base/tasks/template/template.js +172 -0
- package/templates/base/tasks/watcher.js +233 -0
- package/templates/base/tasks/webpack/env.js +21 -0
- package/templates/base/tasks/webpack/plugins/build-status-plugin.js +74 -0
- package/templates/base/tasks/webpack/plugins/current-color-plugin.js +225 -0
- package/templates/base/tasks/webpack/plugins/removeFilesOnlyJs.js +28 -0
- package/templates/base/tasks/webpack/scripts.config.js +147 -0
- package/templates/base/tasks/webpack/styles.config.js +126 -0
- package/templates/base/tasks/webpack/svg-sprite.config.js +95 -0
- package/templates/base/tasks/webpack/watch.js +50 -0
- package/templates/base/tsconfig.json +20 -0
- package/templates/base/user.config.js +102 -0
- package/templates/base/webpack.config.js +9 -0
- package/templates/template-js/js/api/api.js +0 -0
- package/templates/template-js/js/core/core.js +56 -0
- package/templates/template-js/js/main.js +6 -0
- package/templates/template-js/js/modules/header.js +15 -0
- package/templates/template-js/js/modules/index.js +24 -0
- package/templates/template-js/js/services/index.js +1 -0
- package/templates/template-js/js/services/query-params.js +19 -0
- package/templates/template-js/js/styles.js +2 -0
- package/templates/template-js/js/ui/index.js +18 -0
- package/templates/template-js/js/utils/constants.js +0 -0
- package/templates/template-js/js/utils/create-factory.js +65 -0
- package/templates/template-js/js/utils/debounce.js +8 -0
- package/templates/template-js/js/utils/delay.js +4 -0
- package/templates/template-js/js/utils/is-platform.js +15 -0
- package/templates/template-js/js/utils/throttle.js +16 -0
- package/templates/template-mjml/emails/assets/images/address-btn.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/address.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/banner.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/close.png +0 -0
- package/templates/template-mjml/emails/assets/images/confirm-btn.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/facebook.png +0 -0
- package/templates/template-mjml/emails/assets/images/forgot.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/icon-info.png +0 -0
- package/templates/template-mjml/emails/assets/images/img-send.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/instagram.png +0 -0
- package/templates/template-mjml/emails/assets/images/logo.png +0 -0
- package/templates/template-mjml/emails/assets/images/reset-btn.jpg +0 -0
- package/templates/template-mjml/emails/assets/images/twitter.png +0 -0
- package/templates/template-mjml/emails/pages/address.mjml +55 -0
- package/templates/template-mjml/emails/pages/confirm-resend.mjml +63 -0
- package/templates/template-mjml/emails/pages/confirm.mjml +44 -0
- package/templates/template-mjml/emails/pages/forgot-password.mjml +65 -0
- package/templates/template-mjml/emails/shared/ui/head/fonts.mjml +211 -0
- package/templates/template-mjml/emails/shared/ui/head/index.mjml +146 -0
- package/templates/template-mjml/emails/widgets/footer/ui/index.mjml +12 -0
- package/templates/template-nunjucks/templates/layouts/base.njk +23 -0
- package/templates/template-nunjucks/templates/pages/index.njk +9 -0
- package/templates/template-nunjucks/templates/shared/ui/head/data.json +8 -0
- package/templates/template-nunjucks/templates/shared/ui/head/index.njk +13 -0
- package/templates/template-nunjucks/templates/shared/ui/icon/index.njk +5 -0
- package/templates/template-nunjucks/templates/widgets/footer/index.njk +5 -0
- package/templates/template-nunjucks/templates/widgets/footer/model/data.json +4 -0
- package/templates/template-nunjucks/templates/widgets/footer/ui/index.njk +7 -0
- package/templates/template-nunjucks/templates/widgets/home-hero/index.njk +1 -0
- package/templates/template-nunjucks/templates/widgets/home-hero/ui/index.njk +9 -0
- package/templates/template-pug/templates/layouts/base.pug +19 -0
- package/templates/template-pug/templates/pages/index.pug +12 -0
- package/templates/template-pug/templates/shared/lib/blocks.pug +21 -0
- package/templates/template-pug/templates/shared/ui/head/data.json +8 -0
- package/templates/template-pug/templates/shared/ui/head/index.pug +10 -0
- package/templates/template-pug/templates/shared/ui/icon/index.pug +3 -0
- package/templates/template-pug/templates/widgets/footer/index.pug +1 -0
- package/templates/template-pug/templates/widgets/footer/model/data.json +4 -0
- package/templates/template-pug/templates/widgets/footer/ui/index.pug +4 -0
- package/templates/template-pug/templates/widgets/home-hero/index.pug +1 -0
- package/templates/template-pug/templates/widgets/home-hero/ui/index.pug +6 -0
- package/templates/template-ts/ts/api/api.ts +0 -0
- package/templates/template-ts/ts/core/core.ts +66 -0
- package/templates/template-ts/ts/interfaces/factory.ts +5 -0
- package/templates/template-ts/ts/main.ts +6 -0
- package/templates/template-ts/ts/modules/header.ts +17 -0
- package/templates/template-ts/ts/modules/index.ts +26 -0
- package/templates/template-ts/ts/services/index.ts +2 -0
- package/templates/template-ts/ts/services/query-params.ts +23 -0
- package/templates/template-ts/ts/styles.ts +2 -0
- package/templates/template-ts/ts/ui/index.ts +23 -0
- package/templates/template-ts/ts/utils/constants.ts +0 -0
- package/templates/template-ts/ts/utils/create-factory.ts +91 -0
- package/templates/template-ts/ts/utils/debounce.ts +10 -0
- package/templates/template-ts/ts/utils/delay.ts +5 -0
- package/templates/template-ts/ts/utils/is-platform.ts +21 -0
- package/templates/template-ts/ts/utils/throttle.ts +19 -0
- package/templates/template-twig/templates/layouts/base.html.twig +26 -0
- package/templates/template-twig/templates/pages/index.html.twig +8 -0
- package/templates/template-twig/templates/shared/ui/head/data.json +8 -0
- package/templates/template-twig/templates/shared/ui/head/index.html.twig +11 -0
- package/templates/template-twig/templates/shared/ui/icon/index.html.twig +21 -0
- package/templates/template-twig/templates/widgets/footer/index.html.twig +1 -0
- package/templates/template-twig/templates/widgets/footer/model/data.json +4 -0
- package/templates/template-twig/templates/widgets/footer/ui/index.html.twig +5 -0
- package/templates/template-twig/templates/widgets/home-hero/index.html.twig +1 -0
- package/templates/template-twig/templates/widgets/home-hero/ui/index.html.twig +9 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# AGENTS.md — Template Bricks Project
|
|
2
|
+
|
|
3
|
+
## Project overview
|
|
4
|
+
|
|
5
|
+
This project was created with **Template Bricks** — a frontend starter for building responsive websites.
|
|
6
|
+
|
|
7
|
+
Before making changes, inspect the existing project structure, `package.json`, and `user.config.js`.
|
|
8
|
+
|
|
9
|
+
## Local development
|
|
10
|
+
|
|
11
|
+
Install dependencies and start the development server:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
npm start
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Local URL:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
http://localhost:3000
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Create a production build:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm run build
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Project configuration
|
|
31
|
+
|
|
32
|
+
The main project settings are located in:
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
user.config.js
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Use the existing configuration values for source paths, build paths, template engines, styles, scripts, images, and optional features.
|
|
39
|
+
|
|
40
|
+
## Rules
|
|
41
|
+
|
|
42
|
+
1. Follow the existing project structure and naming conventions.
|
|
43
|
+
2. Reuse existing components, helpers, styles, and build tasks.
|
|
44
|
+
3. Do not edit generated build files manually.
|
|
45
|
+
4. Do not duplicate functionality already available in the project.
|
|
46
|
+
5. Keep changes focused on the current task.
|
|
47
|
+
6. Do not modify unrelated files.
|
|
48
|
+
7. Run the relevant lint and build commands after making changes.
|
|
49
|
+
8. Do not add secrets, credentials, or local environment values to tracked files.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Template Bricks
|
|
2
|
+
|
|
3
|
+
A ready-to-use frontend distribution for multipage websites, CMS templates, Symfony views, email templates, and static frontend integration.
|
|
4
|
+
|
|
5
|
+
It comes with Gulp 4, Webpack 5, SCSS, PostCSS, Tailwind CSS, template compilation, image processing, SVG/PNG sprites, and BrowserSync.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
npm start
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Local server:
|
|
15
|
+
|
|
16
|
+
- `http://localhost:4200/`
|
|
17
|
+
- `http://localhost:4200/index.html`
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Runs plain `gulp` first, then builds scripts, styles, and the SVG sprite with
|
|
26
|
+
Webpack in development mode. BrowserSync starts only after both steps succeed.
|
|
27
|
+
The development watcher skips its initial build and runs Webpack after source
|
|
28
|
+
changes. Templates and assets are also watched. If the initial build fails, the
|
|
29
|
+
server does not start.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm run build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Builds the production version into the `build` folder.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm run lint
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Runs ESLint for files in `src`.
|
|
42
|
+
|
|
43
|
+
## Structure
|
|
44
|
+
|
|
45
|
+
- `src/templates` — FSD layers and page entry points.
|
|
46
|
+
- `src/styles` — project SCSS styles.
|
|
47
|
+
- `src/js` or `src/ts` — project scripts.
|
|
48
|
+
- `src/assets` — images, SVG files, favicons, and other static files.
|
|
49
|
+
- `build` — build output.
|
|
50
|
+
- `user.config.js` — main project configuration.
|
|
51
|
+
|
|
52
|
+
## Configuration
|
|
53
|
+
|
|
54
|
+
The main build options are defined in `user.config.js`.
|
|
55
|
+
|
|
56
|
+
Commonly changed options:
|
|
57
|
+
|
|
58
|
+
- `templateEngine` — template engine: `pug`, `nunjucks`, or `twig`.
|
|
59
|
+
- `typeScript` — enables TypeScript builds.
|
|
60
|
+
- `folderBuild` — build output folder.
|
|
61
|
+
- `assetsBuild` — path for compiled assets.
|
|
62
|
+
- `serverIndexPage` — development server entry page.
|
|
63
|
+
- `emailsBuild` — enables email template builds.
|
|
64
|
+
- `optimizeImages` — enables image optimization.
|
|
65
|
+
- `spritePng` — enables PNG sprite generation.
|
|
66
|
+
|
|
67
|
+
## Email Templates
|
|
68
|
+
|
|
69
|
+
If email template builds are enabled, the output is available in `build/emails`.
|
|
70
|
+
|
|
71
|
+
Example local URL:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
http://localhost:4200/emails/address.html
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Requirements
|
|
78
|
+
|
|
79
|
+
- Node.js `>= 20.12.0`
|
|
80
|
+
- npm, Yarn, pnpm, or Bun
|
|
81
|
+
|
|
82
|
+
## Source architecture
|
|
83
|
+
|
|
84
|
+
The template directories follow these FSD responsibilities:
|
|
85
|
+
|
|
86
|
+
| Layer | Responsibility |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `layouts` | Shared document layouts |
|
|
89
|
+
| `pages` | Entry templates that compose complete pages for compilation |
|
|
90
|
+
| `widgets` | Independent page blocks, such as the header, footer, and home hero |
|
|
91
|
+
| `features` | User actions and scenarios; add slices when needed |
|
|
92
|
+
| `entities` | Business entities; add slices when needed |
|
|
93
|
+
| `shared` | Reusable template UI and helpers |
|
|
94
|
+
|
|
95
|
+
`features` and `entities` are intentionally absent until the project needs them.
|
|
96
|
+
Use `ui`, `model`, `api`, `lib`, and `config` segments according to a slice's needs.
|
|
97
|
+
Consume widgets through their `index` entry points. Slices should depend on lower
|
|
98
|
+
layers, without importing sibling slices. Shared document layouts live in
|
|
99
|
+
`templates/layouts`; no template `app` directory is used.
|
|
100
|
+
|
|
101
|
+
For this multipage starter, `templates/pages` remains the compiler input. Page
|
|
102
|
+
entries extend `layouts` as a deliberate template-engine convention and compose
|
|
103
|
+
widgets inside layout blocks. Only page entries produce HTML; partials stay in
|
|
104
|
+
other layers. Template JSON data lives beside its owner and is merged by the build.
|
|
105
|
+
|
|
106
|
+
JavaScript, TypeScript, and SCSS retain their existing directory structure.
|
|
107
|
+
|
|
108
|
+
Optional MJML sources use `templates/emails/pages` for complete emails,
|
|
109
|
+
`templates/emails/shared` for common head and font definitions, and
|
|
110
|
+
`templates/emails/widgets` for reusable blocks. Email assets remain in
|
|
111
|
+
`templates/emails/assets`; output remains in `build/emails`.
|
|
112
|
+
|
|
113
|
+
### Template build helpers
|
|
114
|
+
|
|
115
|
+
`tasks/template/plugins/template-dependencies.js` tracks static template references
|
|
116
|
+
for Twig, Pug, and Nunjucks. Development builds update the dependency graph for
|
|
117
|
+
changed files and compile affected pages. Dynamic references trigger a full page
|
|
118
|
+
rebuild. JSON and template configuration changes also rebuild all pages.
|
|
119
|
+
|
|
120
|
+
`generate-static-path.js` replaces the configured asset prefix with a relative
|
|
121
|
+
path based on each output page's depth. An empty prefix leaves contents unchanged.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import gulp from 'gulp';
|
|
2
|
+
import watcherModule from './tasks/watcher.js';
|
|
3
|
+
import archiveModule from './tasks/archive.js';
|
|
4
|
+
import cleanModule from './tasks/clean.js';
|
|
5
|
+
import copyModule from './tasks/copy.js';
|
|
6
|
+
import imagesModule from './tasks/images/index.js';
|
|
7
|
+
import templateModule from './tasks/template/index.js';
|
|
8
|
+
import watchWebpack from './tasks/webpack/watch.js';
|
|
9
|
+
const { task, series, parallel } = gulp;
|
|
10
|
+
const { serveWatcher } = watcherModule;
|
|
11
|
+
const { archive } = archiveModule;
|
|
12
|
+
const { cleanBuild } = cleanModule;
|
|
13
|
+
const { copy } = copyModule;
|
|
14
|
+
const { images } = imagesModule;
|
|
15
|
+
const { templateRun } = templateModule;
|
|
16
|
+
|
|
17
|
+
task('default', series(
|
|
18
|
+
cleanBuild,
|
|
19
|
+
copy(),
|
|
20
|
+
images(),
|
|
21
|
+
parallel(
|
|
22
|
+
templateRun()
|
|
23
|
+
)
|
|
24
|
+
));
|
|
25
|
+
|
|
26
|
+
task('serve', series(
|
|
27
|
+
serveWatcher
|
|
28
|
+
));
|
|
29
|
+
|
|
30
|
+
task('dev', series(
|
|
31
|
+
watchWebpack,
|
|
32
|
+
serveWatcher
|
|
33
|
+
));
|
|
34
|
+
|
|
35
|
+
task('build', series(
|
|
36
|
+
cleanBuild,
|
|
37
|
+
copy(),
|
|
38
|
+
images(),
|
|
39
|
+
parallel(
|
|
40
|
+
templateRun()
|
|
41
|
+
)
|
|
42
|
+
));
|
|
43
|
+
|
|
44
|
+
task('prod', series(
|
|
45
|
+
archive
|
|
46
|
+
));
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "template-bricks",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"exports": "./index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "gulp && cross-env NODE_ENV=development webpack --mode development && cross-env NODE_ENV=development gulp dev",
|
|
8
|
+
"build": "npm run build:gulp && npm run build:webpack && npm run build:prod",
|
|
9
|
+
"build:gulp": "cross-env NODE_ENV=production gulp build",
|
|
10
|
+
"build:webpack": "cross-env NODE_ENV=production webpack --mode production",
|
|
11
|
+
"build:prod": "cross-env NODE_ENV=production gulp prod",
|
|
12
|
+
"update-version-minor": "npm version minor",
|
|
13
|
+
"update-version-major": "npm version major",
|
|
14
|
+
"lint": "eslint src --fix --ext ts,js,tsx --report-unused-disable-directives --max-warnings 0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@babel/core": "^7.12.13",
|
|
18
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
19
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
20
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
21
|
+
"@babel/plugin-transform-runtime": "^7.13.9",
|
|
22
|
+
"@babel/preset-env": "^7.12.1",
|
|
23
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
24
|
+
"@tailwindcss/postcss": "^4.1.12",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
|
26
|
+
"@typescript-eslint/parser": "^5.23.0",
|
|
27
|
+
"autoprefixer": "^10.4.21",
|
|
28
|
+
"babel-loader": "^8.2.1",
|
|
29
|
+
"browser-sync": "^2.26.13",
|
|
30
|
+
"concurrently": "^10.0.4",
|
|
31
|
+
"cross-env": "^7.0.2",
|
|
32
|
+
"css-loader": "^0.28.11",
|
|
33
|
+
"css-minimizer-webpack-plugin": "^3.1.1",
|
|
34
|
+
"del": "^3.0.0",
|
|
35
|
+
"eslint": "^8.15.0",
|
|
36
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
37
|
+
"eslint-plugin-import": "^2.26.0",
|
|
38
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
39
|
+
"gulp": "^4.0.2",
|
|
40
|
+
"gulp-data": "^1.3.1",
|
|
41
|
+
"gulp-debug": "^2.1.2",
|
|
42
|
+
"gulp-html-beautify": "^1.0.1",
|
|
43
|
+
"gulp-htmlmin": "^5.0.1",
|
|
44
|
+
"gulp-if": "^2.0.0",
|
|
45
|
+
"gulp-load-plugins": "^2.0.7",
|
|
46
|
+
"gulp-merge-json": "^1.3.1",
|
|
47
|
+
"gulp-mjml": "^4.0.2",
|
|
48
|
+
"gulp-newer": "^1.3.0",
|
|
49
|
+
"gulp-notify": "^2.2.0",
|
|
50
|
+
"gulp-nunjucks-render": "^2.2.3",
|
|
51
|
+
"gulp-plumber": "^1.0.1",
|
|
52
|
+
"gulp-pug": "^5.0.0",
|
|
53
|
+
"gulp-rename": "^2.0.0",
|
|
54
|
+
"gulp-replace-task": "^0.11.0",
|
|
55
|
+
"gulp-svgmin": "^3.0.0",
|
|
56
|
+
"gulp-twig": "^1.2.0",
|
|
57
|
+
"gulp-zip": "^4.2.0",
|
|
58
|
+
"gulp.spritesmith": "^6.11.0",
|
|
59
|
+
"mini-css-extract-plugin": "^2.4.2",
|
|
60
|
+
"nunjucks": "^3.2.4",
|
|
61
|
+
"postcss": "^8.5.6",
|
|
62
|
+
"postcss-loader": "^8.2.0",
|
|
63
|
+
"sass": "^1.92.0",
|
|
64
|
+
"sass-loader": "^16.0.5",
|
|
65
|
+
"svg-spritemap-webpack-plugin": "^5.1.4",
|
|
66
|
+
"tailwindcss": "^4.1.12",
|
|
67
|
+
"through2": "^3.0.1",
|
|
68
|
+
"ts-loader": "^9.4.1",
|
|
69
|
+
"typescript": "^5.9.2",
|
|
70
|
+
"webpack": "^5.101.3",
|
|
71
|
+
"webpack-cli": "^7.2.2",
|
|
72
|
+
"webpack-merge": "^6.0.1",
|
|
73
|
+
"sharp": "0.35.5"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"core-js": "^3.7.0"
|
|
77
|
+
},
|
|
78
|
+
"browserslist": [
|
|
79
|
+
"> 1%",
|
|
80
|
+
"last 2 versions"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<svg width="44" height="30" viewBox="0 0 44 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_b_2658_11933)">
|
|
3
|
+
<rect x="15.3203" y="15" width="20" height="20" transform="rotate(-45 15.3203 15)" fill="#FDBF5E" fill-opacity="0.9"/>
|
|
4
|
+
</g>
|
|
5
|
+
<g filter="url(#filter1_b_2658_11933)">
|
|
6
|
+
<rect x="10.3203" y="15" width="20" height="20" transform="rotate(-45 10.3203 15)" fill="#FF8A48" fill-opacity="0.7"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g filter="url(#filter2_b_2658_11933)">
|
|
9
|
+
<rect x="5.32031" y="15" width="20" height="20" transform="rotate(-45 5.32031 15)" fill="#FF3D57" fill-opacity="0.6"/>
|
|
10
|
+
</g>
|
|
11
|
+
<rect x="0.178223" y="15" width="20" height="20" transform="rotate(-45 0.178223 15)" fill="#FF3D57"/>
|
|
12
|
+
<defs>
|
|
13
|
+
<filter id="filter0_b_2658_11933" x="8.32031" y="-6.14212" width="42.2843" height="42.2843" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
14
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
15
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="3.5"/>
|
|
16
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_2658_11933"/>
|
|
17
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_2658_11933" result="shape"/>
|
|
18
|
+
</filter>
|
|
19
|
+
<filter id="filter1_b_2658_11933" x="3.32031" y="-6.14212" width="42.2843" height="42.2843" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
20
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
21
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="3.5"/>
|
|
22
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_2658_11933"/>
|
|
23
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_2658_11933" result="shape"/>
|
|
24
|
+
</filter>
|
|
25
|
+
<filter id="filter2_b_2658_11933" x="-1.67969" y="-6.14212" width="42.2843" height="42.2843" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
26
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
27
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="3.5"/>
|
|
28
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_2658_11933"/>
|
|
29
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_2658_11933" result="shape"/>
|
|
30
|
+
</filter>
|
|
31
|
+
</defs>
|
|
32
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.794 1.66669C12.5876 1.66667 11.81 1.81039 10.9186 2.24673C10.5885 2.40828 10.2789 2.60283 9.99132 2.82981C9.71484 2.61556 9.41757 2.42994 9.10118 2.27345C8.19244 1.82398 7.37491 1.66667 6.2118 1.66667C3.09671 1.66667 0.833008 4.24773 0.833008 7.5999C0.833008 10.1315 2.24453 12.5769 4.87371 14.9416C6.25375 16.1828 8.01578 17.4111 9.27768 18.0646L9.99967 18.4384L10.7217 18.0646C11.9836 17.4111 13.7456 16.1828 15.1256 14.9416C17.7548 12.5769 19.1663 10.1315 19.1663 7.5999C19.1663 4.28321 16.8813 1.67947 13.794 1.66669ZM17.4997 7.5999C17.4997 9.58325 16.3215 11.6244 14.0111 13.7024C12.7515 14.8353 11.1321 15.9675 9.99967 16.5614C8.86721 15.9675 7.24786 14.8353 5.98824 13.7024C3.67786 11.6244 2.49967 9.58325 2.49967 7.5999C2.49967 5.1231 4.06938 3.33334 6.2118 3.33334C7.13658 3.33334 7.70645 3.443 8.36229 3.76737C8.74968 3.95898 9.09207 4.21198 9.38845 4.52815L10.0016 5.18226L10.6092 4.52296C10.9123 4.19413 11.2597 3.93537 11.6513 3.74369C12.2879 3.43208 12.8222 3.33334 13.7906 3.33334C15.9065 3.34211 17.4997 5.15747 17.4997 7.5999Z" fill="white"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21 4.9999L2.99998 4.9999C2.81774 5.00047 2.6391 5.05073 2.4833 5.14527C2.3275 5.23982 2.20044 5.37506 2.11578 5.53645C2.03113 5.69784 1.99209 5.87926 2.00287 6.06118C2.01366 6.2431 2.07385 6.41864 2.17698 6.5689L11.177 19.5689C11.55 20.1079 12.448 20.1079 12.822 19.5689L21.822 6.5689C21.9262 6.41895 21.9872 6.24333 21.9986 6.0611C22.01 5.87888 21.9712 5.69702 21.8865 5.53529C21.8017 5.37356 21.6743 5.23814 21.518 5.14375C21.3617 5.04936 21.1826 4.99961 21 4.9999Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
* {
|
|
2
|
+
-webkit-font-smoothing: antialiased;
|
|
3
|
+
-moz-osx-font-smoothing: grayscale;
|
|
4
|
+
-webkit-tap-highlight-color: transparent;
|
|
5
|
+
|
|
6
|
+
&,
|
|
7
|
+
&::before,
|
|
8
|
+
&::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html,
|
|
14
|
+
body {
|
|
15
|
+
-webkit-overflow-scrolling: touch;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html {
|
|
19
|
+
font-size: var(--font-size-base);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
display: grid;
|
|
24
|
+
grid-template-columns: minmax(0, 100%);
|
|
25
|
+
min-height: 100vh;
|
|
26
|
+
font-family: var(--font-family-default), sans-serif;
|
|
27
|
+
font-feature-settings: var(--font-feature, normal);
|
|
28
|
+
font-variant: normal;
|
|
29
|
+
color: var(--text-color);
|
|
30
|
+
background: var(--background-color) none 50% 0 / cover;
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@keyframes fadeIn {
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes fadeOut {
|
|
11
|
+
0% {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
100% {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes fade {
|
|
20
|
+
0% {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
50% {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
100% {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes rotate {
|
|
32
|
+
from {
|
|
33
|
+
transform-origin: center;
|
|
34
|
+
transform: rotate(0deg);
|
|
35
|
+
}
|
|
36
|
+
to {
|
|
37
|
+
transform-origin: center;
|
|
38
|
+
transform: rotate(360deg);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes slideDown {
|
|
43
|
+
from {
|
|
44
|
+
transform: translateY(0);
|
|
45
|
+
}
|
|
46
|
+
to {
|
|
47
|
+
transform: translateY(100%);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use '../../plugins/media' as *;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use '../../../plugins/media' as *;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.page-wrapper {
|
|
2
|
+
flex-grow: 1;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.page-content {
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.container {
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: var(--container-width);
|
|
14
|
+
padding-inline: var(--container-gutter);
|
|
15
|
+
margin-inline: auto;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use "../plugins/mixins" as *;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../../plugins/sprite-mixin' as sprite;
|
|
2
|
+
|
|
3
|
+
svg[class^="icon-"] {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
line-height: 1;
|
|
7
|
+
|
|
8
|
+
&:not([fill="none"]) {
|
|
9
|
+
fill: currentColor;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
svg.icon-stroke {
|
|
14
|
+
stroke: currentColor;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[class*="s-icon"] {
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
background-size: contain;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
background-position: center center;
|
|
24
|
+
|
|
25
|
+
&::before {
|
|
26
|
+
content: "";
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include sprite.retina-sprites(sprite.$retina-groups);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use '../../plugins/mixins' as *;
|
|
2
|
+
@use '../../plugins/media' as *;
|
|
3
|
+
|
|
4
|
+
.invisible-scroll {
|
|
5
|
+
@include scrollbar-invisible();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.invisible-scroll-mobile {
|
|
9
|
+
@media screen and (width < bp('md')) {
|
|
10
|
+
@include scrollbar-invisible();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use "../plugins/media" as *;
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--black: #202833;
|
|
5
|
+
--gray: #626263;
|
|
6
|
+
--white: #ffffff;
|
|
7
|
+
--blue: #278AFE;
|
|
8
|
+
--red: #FF5E5E;
|
|
9
|
+
--purple: rebeccapurple;
|
|
10
|
+
|
|
11
|
+
--primary-color: var(--blue);
|
|
12
|
+
--secondary-color: var(--blue);
|
|
13
|
+
--background-color: var(--purple);
|
|
14
|
+
--text-color: var(--white);
|
|
15
|
+
|
|
16
|
+
--t-time: 0.2s;
|
|
17
|
+
--t-base: var(--t-time) ease-in-out;
|
|
18
|
+
--t-smooth: cubic-bezier(.215, .61, .355, 1);
|
|
19
|
+
--t-elastic: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
20
|
+
|
|
21
|
+
--font-size-base: 16px;
|
|
22
|
+
--font-family-default: 'Open Sans', sans-serif;
|
|
23
|
+
--font-family-secondary: 'Open Sans', sans-serif;
|
|
24
|
+
--font-feature: 'pnum' on, 'lnum' on;
|
|
25
|
+
|
|
26
|
+
--base-container-width: 1320;
|
|
27
|
+
--container-gutter: 15px;
|
|
28
|
+
--container-width: calc(var(--base-container-width) * 1px + var(--container-gutter) * 2);
|
|
29
|
+
|
|
30
|
+
@media (width < bp('lg')) {
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (width < bp('md')) {
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (prefers-color-scheme: dark), (prefers-color-scheme: light) {
|
|
40
|
+
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use 'core/index' as *;
|
|
File without changes
|