sreelekhaputta2 commited on
Commit
59349f4
·
verified ·
1 Parent(s): 570cd5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +89 -26
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
 
3
  css_code = """
 
4
  .gradio-container {
5
  background-image: url('https://img.freepik.com/premium-photo/abstract-black-gold-lines-background-with-light-effect_760214-2131.jpg');
6
  background-size: cover;
@@ -9,31 +10,93 @@ css_code = """
9
  font-family: 'Segoe UI', sans-serif;
10
  color: white;
11
  margin: 0;
12
- padding: 0;
13
  }
 
 
14
  #box {
15
  animation: glow 2s infinite alternate;
16
  padding: 20px;
17
  border-radius: 12px;
18
  background: linear-gradient(135deg, #1e1e2f, #3f3f5f);
19
  color: white;
20
- font-size: 18px;
21
  text-align: center;
22
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
23
  margin-bottom: 20px;
24
  }
 
 
25
  @keyframes glow {
26
  from { box-shadow: 0 0 10px #00f; }
27
  to { box-shadow: 0 0 20px #0ff; }
28
  }
29
- a {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  color: #00ffff;
31
  text-decoration: none;
32
  font-weight: bold;
33
  }
34
- a:hover {
35
- text-decoration: underline;
36
  color: #ffffff;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
38
  """
39
 
@@ -41,27 +104,27 @@ with gr.Blocks(css=css_code) as demo:
41
  gr.Markdown("## 🌌 Welcome to AR/VR Learning Portal")
42
  gr.HTML('<div id="box">✨ Click a link below to explore immersive tech ✨</div>')
43
  gr.HTML("""
44
- <div>
45
- <h3>🔮 AR Tutorials</h3>
46
- <ul>
47
- <li><a href="https://youtu.be/WzfDo2Wpxks?si=46aXUUDbDa3MxCgu" target="_blank">Augmented Reality for Everyone – Full Course</a></li>
48
- <li><a href="https://www.youtube.com/watch?v=iqjcNRJf-Nc" target="_blank">Immersive Learning with AR/VR</a></li>
49
- <li><a href="https://www.youtube.com/watch?v=9NmDP8PNCPs" target="_blank">AR/VR Development & Design Workshop</a></li>
50
- <li><a href="https://www.youtube.com/watch?v=wyxI10Et_q4" target="_blank">Intro to AR/VR Development – Industry Workshop</a></li>
51
- <li><a href="https://www.youtube.com/watch?v=EVIDMRayeT0" target="_blank">Beginner’s Guide to AR/VR – XR Terms & Tools</a></li>
52
- <li><a href="https://www.youtube.com/watch?v=JYqG1gqzFZQ" target="_blank">Unity AR Foundation Tutorial</a></li>
53
- <li><a href="https://www.youtube.com/watch?v=ZVJ3asMoZ18" target="_blank">Spark AR Studio Basics</a></li>
54
- </ul>
55
- <h3>🧠 VR Tutorials</h3>
56
- <ul>
57
- <li><a href="https://youtu.be/wqjJU4V6bGM?si=yfX7n32whAdEePuk" target="_blank">VR Game Development Tutorial</a></li>
58
- <li><a href="https://www.youtube.com/watch?v=YBQ_ps6e71k" target="_blank">Learn VR Development in 3 Hours</a></li>
59
- <li><a href="https://www.youtube.com/watch?v=X13ZXd-2CHI" target="_blank">Learning Science in VR</a></li>
60
- <li><a href="https://www.youtube.com/watch?v=JYqG1gqzFZQ" target="_blank">Unity VR Setup & Interaction</a></li>
61
- <li><a href="https://www.youtube.com/watch?v=ZVJ3asMoZ18" target="_blank">VR UI/UX Design Principles</a></li>
62
- <li><a href="https://www.youtube.com/watch?v=JZ6z5J5pU3g" target="_blank">VR in Education & Training</a></li>
63
- <li><a href="https://www.youtube.com/watch?v=KJz5J5pU3g" target="_blank">Building VR Worlds with Unity</a></li>
64
- </ul>
65
  </div>
66
  """)
67
 
 
1
  import gradio as gr
2
 
3
  css_code = """
4
+ /* Full-screen background */
5
  .gradio-container {
6
  background-image: url('https://img.freepik.com/premium-photo/abstract-black-gold-lines-background-with-light-effect_760214-2131.jpg');
7
  background-size: cover;
 
10
  font-family: 'Segoe UI', sans-serif;
11
  color: white;
12
  margin: 0;
13
+ padding: 20px;
14
  }
15
+
16
+ /* Glowing header box */
17
  #box {
18
  animation: glow 2s infinite alternate;
19
  padding: 20px;
20
  border-radius: 12px;
21
  background: linear-gradient(135deg, #1e1e2f, #3f3f5f);
22
  color: white;
23
+ font-size: 20px;
24
  text-align: center;
25
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
26
  margin-bottom: 20px;
27
  }
28
+
29
+ /* Glow animation */
30
  @keyframes glow {
31
  from { box-shadow: 0 0 10px #00f; }
32
  to { box-shadow: 0 0 20px #0ff; }
33
  }
34
+
35
+ /* Tutorials container */
36
+ .tutorials {
37
+ display: flex;
38
+ gap: 40px;
39
+ flex-wrap: wrap;
40
+ justify-content: space-between;
41
+ }
42
+
43
+ /* Each tutorial section */
44
+ .tutorial-section {
45
+ flex: 1 1 45%;
46
+ background: rgba(0,0,0,0.5);
47
+ padding: 15px;
48
+ border-radius: 12px;
49
+ margin-bottom: 20px;
50
+ }
51
+
52
+ /* Section headings */
53
+ .tutorial-section h3 {
54
+ text-align: center;
55
+ color: #FFD700;
56
+ margin-bottom: 10px;
57
+ }
58
+
59
+ /* Each link box */
60
+ .link-box {
61
+ animation: glow 2s infinite alternate;
62
+ background: linear-gradient(135deg, #2a2a3f, #4f4f6f);
63
+ padding: 10px 15px;
64
+ margin: 8px 0;
65
+ border-radius: 10px;
66
+ box-shadow: 0 0 10px rgba(0,255,255,0.3);
67
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
68
+ }
69
+ .link-box:hover {
70
+ transform: scale(1.05);
71
+ box-shadow: 0 0 25px #0ff;
72
+ }
73
+ .link-box a {
74
  color: #00ffff;
75
  text-decoration: none;
76
  font-weight: bold;
77
  }
78
+ .link-box a:hover {
 
79
  color: #ffffff;
80
+ text-decoration: underline;
81
+ }
82
+
83
+ /* Responsive adjustments for mobile */
84
+ @media screen and (max-width: 768px) {
85
+ #box {
86
+ font-size: 18px;
87
+ padding: 15px;
88
+ }
89
+ .tutorials {
90
+ flex-direction: column;
91
+ gap: 15px;
92
+ }
93
+ .tutorial-section {
94
+ flex: 1 1 100%;
95
+ padding: 10px;
96
+ }
97
+ .link-box a {
98
+ font-size: 16px;
99
+ }
100
  }
101
  """
102
 
 
104
  gr.Markdown("## 🌌 Welcome to AR/VR Learning Portal")
105
  gr.HTML('<div id="box">✨ Click a link below to explore immersive tech ✨</div>')
106
  gr.HTML("""
107
+ <div class="tutorials">
108
+ <div class="tutorial-section">
109
+ <h3>🔮 AR Tutorials</h3>
110
+ <div class="link-box"><a href="https://youtu.be/WzfDo2Wpxks?si=46aXUUDbDa3MxCgu" target="_blank">Augmented Reality for Everyone – Full Course</a></div>
111
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=iqjcNRJf-Nc" target="_blank">Immersive Learning with AR/VR</a></div>
112
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=9NmDP8PNCPs" target="_blank">AR/VR Development & Design Workshop</a></div>
113
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=wyxI10Et_q4" target="_blank">Intro to AR/VR Development – Industry Workshop</a></div>
114
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=EVIDMRayeT0" target="_blank">Beginner’s Guide to AR/VR – XR Terms & Tools</a></div>
115
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=JYqG1gqzFZQ" target="_blank">Unity AR Foundation Tutorial</a></div>
116
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=ZVJ3asMoZ18" target="_blank">Spark AR Studio Basics</a></div>
117
+ </div>
118
+ <div class="tutorial-section">
119
+ <h3>🧠 VR Tutorials</h3>
120
+ <div class="link-box"><a href="https://youtu.be/wqjJU4V6bGM?si=yfX7n32whAdEePuk" target="_blank">VR Game Development Tutorial</a></div>
121
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=YBQ_ps6e71k" target="_blank">Learn VR Development in 3 Hours</a></div>
122
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=X13ZXd-2CHI" target="_blank">Learning Science in VR</a></div>
123
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=JYqG1gqzFZQ" target="_blank">Unity VR Setup & Interaction</a></div>
124
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=ZVJ3asMoZ18" target="_blank">VR UI/UX Design Principles</a></div>
125
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=JZ6z5J5pU3g" target="_blank">VR in Education & Training</a></div>
126
+ <div class="link-box"><a href="https://www.youtube.com/watch?v=KJz5J5pU3g" target="_blank">Building VR Worlds with Unity</a></div>
127
+ </div>
128
  </div>
129
  """)
130