Skip to content

Commit 74655b7

Browse files
Migrate to Bootstrap5. (#333)
1 parent cbf7580 commit 74655b7

26 files changed

+286
-119
lines changed

.github/workflows/linter.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ on:
2727
jobs:
2828
phpcs:
2929
uses: yiisoft/yii2-actions/.github/workflows/linter.yml@master
30-
with:
31-
directories: assets/ commands/ controllers/ mail/ models/ tests/

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ features to your application.
2121
[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2-app-basic.svg?style=for-the-badge&logo=codecov&logoColor=white&label=Codecov)](https://codecov.io/gh/yiisoft/yii2-app-basic)
2222
[![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2-app-basic/static.yml?style=for-the-badge&label=Static)](https://github.com/yiisoft/yii2-app-basic/actions/workflows/static.yml)
2323

24+
<picture>
25+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/home-dark.png">
26+
<source media="(prefers-color-scheme: light)" srcset="docs/images/home-light.png">
27+
<img src="docs/images/home-light.png" alt="Web Application Basic">
28+
</picture>
29+
2430
## Docker
2531

26-
[![Apache](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2-app-basic/docker.yml?style=for-the-badge&logo=apache&label=Apache)](https://github.com/yiisoft/yii2-app-basic/tree/apache)
32+
[![Apache](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2-app-basic/docker.yml?style=for-the-badge&logo=apache&label=Apache)](https://github.com/yiisoft/yii2-app-basic/actions/workflows/docker.yml)
2733

2834
DIRECTORY STRUCTURE
2935
-------------------
@@ -222,3 +228,7 @@ You can see code coverage output under the `tests/Support/output` directory.
222228
[![Follow on X](https://img.shields.io/badge/-Follow%20on%20X-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white&labelColor=000000)](https://x.com/yiiframework)
223229
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=for-the-badge&logo=telegram)](https://t.me/yii_framework_in_english)
224230
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=for-the-badge&logo=slack)](https://yiiframework.com/go/slack)
231+
232+
## License
233+
234+
[![License](https://img.shields.io/badge/License-BSD--3--Clause-brightgreen.svg?style=for-the-badge&logo=opensourceinitiative&logoColor=white&labelColor=555555)](LICENSE.md)

assets/AppAsset.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class AppAsset extends AssetBundle
2424
'css/site.css',
2525
];
2626
public $js = [
27+
'js/color-mode.js',
28+
];
29+
public $jsOptions = [
30+
'position' => \yii\web\View::POS_HEAD,
2731
];
2832
public $depends = [
2933
'yii\web\YiiAsset',

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
}
4747
},
4848
"scripts": {
49-
"cs": "./vendor/bin/phpcs -q assets/ commands/ controllers/ mail/ models/ tests/",
50-
"cs-fix": "./vendor/bin/phpcbf -q assets/ commands/ controllers/ mail/ models/ tests/",
49+
"cs": "./vendor/bin/phpcs",
50+
"cs-fix": "./vendor/bin/phpcbf",
5151
"post-install-cmd": [
5252
"yii\\composer\\Installer::postInstall"
5353
],

controllers/SiteController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function actions()
5050
'captcha' => [
5151
'class' => 'yii\captcha\CaptchaAction',
5252
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
53+
'transparent' => true,
5354
],
5455
];
5556
}

docs/images/about-dark.png

38.3 KB
Loading

docs/images/about-light.png

37.4 KB
Loading

docs/images/contact-dark.png

47 KB
Loading

docs/images/contact-light.png

45.4 KB
Loading

docs/images/home-dark.png

102 KB
Loading

0 commit comments

Comments
 (0)