Skip to content

Commit 664702c

Browse files
committed
r0b08x [chore] 2/1/2025, 7:12:10 PM
1 parent 1852fd9 commit 664702c

7 files changed

Lines changed: 162 additions & 117 deletions

File tree

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
},
3838
"homepage": "https://corifeus.com/corifeus-app-web-pages",
3939
"dependencies": {
40-
"@angular/animations": "^19.1.1",
40+
"@angular/animations": "^19.1.2",
4141
"@angular/cdk": "^19.1.0",
42-
"@angular/common": "^19.1.1",
43-
"@angular/compiler": "^19.1.1",
44-
"@angular/core": "^19.1.1",
45-
"@angular/forms": "^19.1.1",
42+
"@angular/common": "^19.1.2",
43+
"@angular/compiler": "^19.1.2",
44+
"@angular/core": "^19.1.2",
45+
"@angular/forms": "^19.1.2",
4646
"@angular/material": "^19.1.0",
47-
"@angular/platform-browser": "^19.1.1",
48-
"@angular/platform-browser-dynamic": "^19.1.1",
49-
"@angular/router": "^19.1.1",
47+
"@angular/platform-browser": "^19.1.2",
48+
"@angular/platform-browser-dynamic": "^19.1.2",
49+
"@angular/router": "^19.1.2",
5050
"@fortawesome/fontawesome-free": "^6.7.2",
5151
"@types/marked": "^6.0.0",
5252
"@types/node": "^22.10.7",
@@ -62,9 +62,9 @@
6262
"zone.js": "~0.15.0"
6363
},
6464
"devDependencies": {
65-
"@angular-devkit/build-angular": "^19.1.2",
66-
"@angular/cli": "^19.1.2",
67-
"@angular/compiler-cli": "^19.1.1",
65+
"@angular-devkit/build-angular": "^19.1.3",
66+
"@angular/cli": "^19.1.3",
67+
"@angular/compiler-cli": "^19.1.2",
6868
"@fontsource/roboto": "^5.1.1",
6969
"@fontsource/roboto-mono": "^5.1.1",
7070
"@types/js-cookie": "^3.0.6",

src/app/modules/material/scss/material/theme/_cory-mat-theme-dark-matrix.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,3 @@
371371
}
372372

373373

374-
#cory-pages-layout-theme-matrix {
375-
// $toolbar-height: 62px;
376-
position: fixed;
377-
// top: $toolbar-height;
378-
top: 0px;
379-
left: 0px;
380-
width: 100%;
381-
height: 100%;
382-
z-index: -1;
383-
pointer-events: none;
384-
}

src/app/modules/material/services/theme.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,26 @@ export class ThemeService {
125125
// }
126126
//document.getElementById('cory-pages-layout-theme-matrix').style.display = 'show';
127127
this.matrixEffectData = this.clearMatrixEffect()
128-
128+
if (this.matrixEffectData) {
129+
this.runMatrixEffect();
130+
}
129131
}
130132

131133

132134
matrixEffectData: any
133135

134136
clearMatrixEffect() {
135137
// geting canvas by Boujjou Achraf
136-
const c: any = document.getElementById("cory-pages-layout-theme-matrix");
138+
const c: any = document.getElementById("cory-pages-layout-background");
139+
140+
if (this.current !== 'cory-mat-theme-dark-matrix') {
141+
c.style.display = 'none';
142+
return null;
143+
}
144+
145+
// Ensure the canvas is cleared and hidden when not in the matrix theme
137146
c.style.display = 'block'
147+
138148
const ctx = c.getContext("2d");
139149

140150
//making the canvas full screen
@@ -186,11 +196,15 @@ export class ThemeService {
186196

187197
this.matrixEffectData = this.clearMatrixEffect()
188198

199+
if (!this.matrixEffectData) {
200+
return; // Do nothing if the theme does not support effects
201+
}
202+
189203
//const fps = 1000 / 6
190204

191205
const draw = () => {
192206

193-
//if (this.current === 'cory-mat-theme-dark-matrix') {
207+
if (this.current === 'cory-mat-theme-dark-matrix') {
194208
// console.info('request draw')
195209
//window.requestAnimationFrame(draw);
196210

@@ -208,7 +222,7 @@ export class ThemeService {
208222
}, 1000 / fps);
209223

210224
//setTimeout(draw, fps)
211-
//}
225+
}
212226

213227
const { c, ctx, font_size, drops, matrix } = this.matrixEffectData
214228
///console.info('draw', self.current)

src/app/page/cory-page.ts

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,36 @@ let testing = false
4848
selector: 'cory-page',
4949
template: `
5050
<span id="cory-page-content"></span>
51-
<a href="https://corifeus.eu" target="_blank" style="text-decoration: none;">Web development</a>
51+
<hr/>
52+
<div id="cory-page">
53+
<!-- Quick and Affordable Web Development Services -->
54+
<section>
55+
<h2>Quick and Affordable Web Development Services</h2>
56+
<p>
57+
If you want to quickly and affordably develop your next digital project, visit
58+
<a href="https://corifeus.eu" target="_blank" rel="noopener">corifeus.eu</a>
59+
for expert solutions tailored to your needs.
60+
</p>
61+
</section>
62+
63+
<hr>
64+
65+
<!-- Powerful Online Networking Tool -->
66+
<section>
67+
<h2>Powerful Online Networking Tool</h2>
68+
<p>
69+
Discover the powerful and free online networking tool at
70+
<a href="https://network.corifeus.com" target="_blank" rel="noopener">network.corifeus.com</a>.
71+
</p>
72+
<ul>
73+
<li><strong>Free:</strong> Designed for professionals and enthusiasts, this tool provides essential features for network analysis, troubleshooting, and management.</li>
74+
<li>Monitoring TCP, HTTP, and Ping to ensure optimal network performance and reliability.</li>
75+
<li>Status page management to track uptime, performance, and incidents in real-time with customizable dashboards.</li>
76+
</ul>
77+
<p>All these features are completely free to use.</p>
78+
</section>
79+
80+
</div>
5281
`,
5382
standalone: true
5483
})
@@ -203,7 +232,7 @@ ${text}
203232
options = {
204233
folder: 'svg',
205234
ext: '.svg',
206-
base: 'https://twemoji.maxcdn.com/v/latest/',
235+
base: 'http://twemoji.maxcdn.com/v/latest/',
207236
}
208237

209238
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
<!--
114114
-->
115-
<canvas id="cory-pages-layout-theme-matrix" style="z-index: -1; display: none;"></canvas>
115+
<canvas id="cory-pages-layout-background" style="z-index: -1; display: none;"></canvas>
116116

117117
</body>
118118
</html>

src/styles.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,17 @@ body.cory-mat-theme-light {
5151

5252
code.hljs {
5353
border-radius: 12px; /* Adjust the radius as needed */
54-
}
54+
}
55+
56+
#cory-pages-layout-background {
57+
// $toolbar-height: 62px;
58+
position: fixed;
59+
// top: $toolbar-height;
60+
top: 0px;
61+
left: 0px;
62+
width: 100%;
63+
height: 100%;
64+
z-index: -1;
65+
pointer-events: none;
66+
}
67+

0 commit comments

Comments
 (0)