Skip to content

Commit 9492eae

Browse files
committed
refactor: Update SiteController to final and create separate screenshots documentation.
1 parent c930541 commit 9492eae

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace app\usecase\site;
114114

115115
use yii\web\Controller;
116116

117-
class SiteController extends Controller
117+
final class SiteController extends Controller
118118
{
119119
public function actionIndex(): string
120120
{
@@ -150,13 +150,7 @@ For detailed configuration options and advanced usage:
150150
- 📚 [Installation Guide](docs/installation.md)
151151
- ⚙️ [Configuration Reference](docs/configuration.md)
152152
- 🧪 [Testing Guide](docs/testing.md)
153-
154-
## Screenshots
155-
156-
The web application includes these ready-to-use pages:
157-
158-
- **[404 Error Page](docs/images/404.png)** - Custom error handling
159-
- **[404 Error Page Dark](docs/images/404-dark.png)** - Custom error handling
153+
- 📸 [Screenshots](docs/screenshots.md)
160154

161155
## Our social networks
162156

docs/screenshots.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Screenshots
2+
3+
## Home page
4+
5+
<picture>
6+
<source media="(prefers-color-scheme: dark)" srcset="images/home-dark.png">
7+
<source media="(prefers-color-scheme: light)" srcset="images/home.png">
8+
<img src="images/home.png" alt="Home page">
9+
</picture>
10+
11+
## Error page
12+
13+
<picture>
14+
<source media="(prefers-color-scheme: dark)" srcset="images/404-dark.png">
15+
<source media="(prefers-color-scheme: light)" srcset="images/404.png">
16+
<img src="images/404.png" alt="Error page">
17+
</picture>

0 commit comments

Comments
 (0)