Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 84dc227

Browse files
committed
improvements, fixes and cleaning
Left to do: Stats
1 parent 3730f53 commit 84dc227

14 files changed

+1504
-1203
lines changed

_src/scss/1-helpers/_globals.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ $g-colors: red, blue, green;
243243

244244
@include screen-md {
245245
flex-direction: column;
246-
align-items: flex-start;
246+
align-items: center;
247247
}
248248

249249
.cta-area {

app.js

+55-53
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
//test for github traffic github api
2-
const repoName = 'AIProf'; // repository name
3-
//env variable for github access token
4-
//const accessToken = GH_ACCESS_TOKEN; GitHub access token
5-
const apiUrl = `https://api.github.com/repos/MeetYourAI/${repoName}/traffic/views`;
1+
// //test for github traffic github api
2+
// const repoName = 'AIProf'; // repository name
3+
// //env variable for github access token
4+
// //const accessToken = GH_ACCESS_TOKEN; GitHub access token
5+
// const apiUrl = `https://api.github.com/repos/MeetYourAI/${repoName}/traffic/views`;
66

7-
// GitHub API headers with your access token
8-
const headers = {
9-
Accept: 'application/vnd.github.v3+json',
10-
Authorization:'Basic ' + btoa('MeetYourAI' + ':' + accessToken),
11-
};
7+
// // GitHub API headers with your access token
8+
// const headers = {
9+
// Accept: 'application/vnd.github.v3+json',
10+
// Authorization:'Basic ' + btoa('MeetYourAI' + ':' + accessToken),
11+
// };
1212

13-
// Fetch traffic data from GitHub API
14-
fetch(apiUrl, { headers })
15-
.then((response) => response.json())
16-
.then((data) => {
17-
const dates = data.views.map((entry) => new Date(entry.timestamp).getDate() + " / " + (new Date(entry.timestamp).getMonth() + 1) + " / " + new Date(entry.timestamp).getFullYear());
18-
const counts = data.views.map((entry) => entry.count);
13+
// // Fetch traffic data from GitHub API
14+
// fetch(apiUrl, { headers })
15+
// .then((response) => response.json())
16+
// .then((data) => {
17+
// const dates = data.views.map((entry) => new Date(entry.timestamp).getDate() + " / " + (new Date(entry.timestamp).getMonth() + 1) + " / " + new Date(entry.timestamp).getFullYear());
18+
// const counts = data.views.map((entry) => entry.count);
1919

20-
// Create a chart
21-
const ctx = document.getElementById('trafficChart').getContext('2d');
22-
new Chart(ctx, {
23-
type: 'line',
24-
data: {
25-
labels: dates,
26-
datasets: [
27-
{
28-
label: 'Daily Visitors/Views',
29-
data: counts,
30-
fill: false,
31-
borderColor: 'rgba(75, 192, 192, 1)',
32-
borderWidth: 2,
33-
},
34-
],
35-
},
36-
options: {
37-
scales: {
38-
x: {
39-
title: {
40-
display: true,
41-
text: 'Dates'
42-
},
43-
},
44-
y: {
45-
title: {
46-
display: true,
47-
text: 'Counts'
48-
},
49-
},
50-
},
51-
},
52-
});
53-
})
54-
.catch((error) => {
55-
console.error('Failed to fetch data:', error);
56-
});
20+
// // Create a chart
21+
// const ctx = document.getElementById('trafficChart').getContext('2d');
22+
// new Chart(ctx, {
23+
// type: 'line',
24+
// data: {
25+
// labels: dates,
26+
// datasets: [
27+
// {
28+
// label: 'Daily Visitors/Views',
29+
// data: counts,
30+
// fill: false,
31+
// borderColor: 'rgba(75, 192, 192, 1)',
32+
// borderWidth: 2,
33+
// },
34+
// ],
35+
// },
36+
// options: {
37+
// scales: {
38+
// x: {
39+
// title: {
40+
// display: true,
41+
// text: 'Dates'
42+
// },
43+
// },
44+
// y: {
45+
// title: {
46+
// display: true,
47+
// text: 'Counts'
48+
// },
49+
// },
50+
// },
51+
// },
52+
// });
53+
// })
54+
// .catch((error) => {
55+
// console.error('Failed to fetch data:', error);
56+
// });
5757

5858

5959
// for contact form post
@@ -94,3 +94,5 @@ if (response.ok) {
9494
}
9595

9696
form.addEventListener(submitButton, handleSubmit);
97+
98+
Loading
Loading
Loading

css/main-LTR.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ a:hover {
284284
@media (max-width: 991px) {
285285
.sec-heading {
286286
flex-direction: column;
287-
align-items: flex-start;
287+
align-items: center;
288288
}
289289
}
290290
.sec-heading .cta-area {
@@ -295,7 +295,7 @@ a:hover {
295295
@media (max-width: 991px) {
296296
.sec-heading .cta-area {
297297
width: 100%;
298-
justify-content: flex-start;
298+
justify-content: center;
299299
}
300300
}
301301
.sec-heading .title {
@@ -4478,6 +4478,7 @@ body.rounded-btns .read-more {
44784478
text-transform: capitalize;
44794479
transition: all 0.3s ease-in-out 0s;
44804480
box-shadow: 1px 1px 10px 0px rgba(var(--clr-dark-blue-rgb), 0.15);
4481+
height: 600px;
44814482
}
44824483
@media (max-width: 1199px) {
44834484
.pricing .plan {

css/main-RTL.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ a:hover {
283283
@media (max-width: 991px) {
284284
.sec-heading {
285285
flex-direction: column;
286-
align-items: flex-start;
286+
align-items: center;
287287
}
288288
}
289289
.sec-heading .cta-area {
@@ -294,7 +294,8 @@ a:hover {
294294
@media (max-width: 991px) {
295295
.sec-heading .cta-area {
296296
width: 100%;
297-
justify-content: flex-start;
297+
justify-content: center;
298+
align-items: center;
298299
}
299300
}
300301
.sec-heading .title {
@@ -4472,6 +4473,7 @@ body.rounded-btns .read-more {
44724473
text-transform: capitalize;
44734474
transition: all 0.3s ease-in-out 0s;
44744475
box-shadow: 1px 1px 10px 0px rgba(var(--clr-dark-blue-rgb), 0.15);
4476+
height: 600px;
44754477
}
44764478
@media (max-width: 1199px) {
44774479
.pricing .plan {

0 commit comments

Comments
 (0)