pvanand commited on
Commit
065c470
·
verified ·
1 Parent(s): be2ede1

Upload 2 files

Browse files
Files changed (2) hide show
  1. static/v0/app.js +70 -0
  2. static/v0/particles.js +95 -0
static/v0/app.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ new Vue({
2
+ el: '#app',
3
+ data: {
4
+ selectedApp: null,
5
+ aiApps: [
6
+ {
7
+ id: 1,
8
+ name: 'MindScribe',
9
+ shortDescription: 'AI-powered journal and mood tracker',
10
+ longDescription: 'MindScribe is your personal AI therapist and journal. It analyzes your daily entries to provide insights into your emotional well-being and offers personalized suggestions for improving your mental health.',
11
+ icon: 'fas fa-brain',
12
+ color: '#FF6B6B',
13
+ link: '#'
14
+ },
15
+ {
16
+ id: 2,
17
+ name: 'EcoSense',
18
+ shortDescription: 'Smart home energy optimization',
19
+ longDescription: 'EcoSense uses advanced AI algorithms to optimize your homes energy usage. It learns your habits and adjusts your smart home devices to maximize efficiency without sacrificing comfort.',
20
+ icon: 'fas fa-leaf',
21
+ color: '#4ECDC4',
22
+ link: '#'
23
+ },
24
+ {
25
+ id: 3,
26
+ name: 'LinguaGenius',
27
+ shortDescription: 'AI language learning assistant',
28
+ longDescription: 'LinguaGenius revolutionizes language learning by adapting to your personal learning style. It creates custom lesson plans, provides real-time pronunciation feedback, and engages you in AI-powered conversations.',
29
+ icon: 'fas fa-language',
30
+ color: '#45B7D1',
31
+ link: '#'
32
+ },
33
+ {
34
+ id: 4,
35
+ name: 'NutriAI',
36
+ shortDescription: 'Personalized nutrition and meal planning',
37
+ longDescription: 'NutriAI is your personal nutritionist powered by artificial intelligence. It analyzes your dietary preferences, health goals, and biometrics to create tailored meal plans and provide real-time nutritional advice.',
38
+ icon: 'fas fa-utensils',
39
+ color: '#FF9FF3',
40
+ link: '#'
41
+ },
42
+ {
43
+ id: 5,
44
+ name: 'CreativeForge',
45
+ shortDescription: 'AI-assisted creative content generator',
46
+ longDescription: 'CreativeForge is an AI-powered tool for artists, writers, and musicians. It provides inspiration, generates ideas, and even collaborates with you to create unique pieces of art, stories, or musical compositions.',
47
+ icon: 'fas fa-paint-brush',
48
+ color: '#FFC75F',
49
+ link: '#'
50
+ },
51
+ {
52
+ id: 6,
53
+ name: 'SafeGuardAI',
54
+ shortDescription: 'Intelligent home and personal security',
55
+ longDescription: 'SafeGuardAI uses advanced computer vision and anomaly detection to keep your home and loved ones safe. It integrates with your existing security systems and provides real-time alerts and recommendations.',
56
+ icon: 'fas fa-shield-alt',
57
+ color: '#6A5ACD',
58
+ link: '#'
59
+ }
60
+ ]
61
+ },
62
+ methods: {
63
+ selectApp(app) {
64
+ this.selectedApp = app;
65
+ },
66
+ closeDetails() {
67
+ this.selectedApp = null;
68
+ }
69
+ }
70
+ });
static/v0/particles.js ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', async function() {
2
+ await tsParticles.load("tsparticles", {
3
+ fullScreen: {
4
+ enable: false
5
+ },
6
+ background: {
7
+ color: {
8
+ value: "transparent"
9
+ }
10
+ },
11
+ fpsLimit: 60,
12
+ interactivity: {
13
+ events: {
14
+ onClick: {
15
+ enable: true,
16
+ mode: "push"
17
+ },
18
+ onHover: {
19
+ enable: true,
20
+ mode: "grab"
21
+ },
22
+ resize: true
23
+ },
24
+ modes: {
25
+ push: {
26
+ quantity: 4
27
+ },
28
+ grab: {
29
+ distance: 140,
30
+ links: {
31
+ opacity: 1
32
+ }
33
+ }
34
+ }
35
+ },
36
+ particles: {
37
+ color: {
38
+ value: "#ffffff"
39
+ },
40
+ links: {
41
+ color: "#ffffff",
42
+ distance: 150,
43
+ enable: true,
44
+ opacity: 0.5,
45
+ width: 1
46
+ },
47
+ collisions: {
48
+ enable: true
49
+ },
50
+ move: {
51
+ direction: "none",
52
+ enable: true,
53
+ outModes: {
54
+ default: "bounce"
55
+ },
56
+ random: false,
57
+ speed: 2,
58
+ straight: false
59
+ },
60
+ number: {
61
+ density: {
62
+ enable: true,
63
+ area: 800
64
+ },
65
+ value: 80
66
+ },
67
+ opacity: {
68
+ value: 0.5
69
+ },
70
+ shape: {
71
+ type: "circle"
72
+ },
73
+ size: {
74
+ value: { min: 1, max: 5 }
75
+ }
76
+ },
77
+ detectRetina: true
78
+ });
79
+
80
+ function toggleDarkMode() {
81
+ document.body.classList.toggle('dark-mode');
82
+ updateParticleColors();
83
+ }
84
+
85
+ function updateParticleColors() {
86
+ const isDarkMode = document.body.classList.contains('dark-mode');
87
+ const color = isDarkMode ? "#4299e1" : "#ffffff";
88
+ tsParticles.domItem(0).options.particles.color.value = color;
89
+ tsParticles.domItem(0).options.particles.links.color = color;
90
+ tsParticles.domItem(0).refresh();
91
+ }
92
+
93
+ // Expose toggleDarkMode to global scope
94
+ window.toggleDarkMode = toggleDarkMode;
95
+ });