osheina commited on
Commit
225e1c6
·
verified ·
1 Parent(s): 81e8759

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -4
app.py CHANGED
@@ -14,12 +14,13 @@ st.set_page_config(
14
  st.markdown("""
15
  <style>
16
  body {
17
- background-image: url('https://images.unsplash.com/photo-1581091012184-7d0dca5a5d1e?auto=format&fit=crop&w=1920&q=80');
18
  background-size: cover;
19
  background-attachment: fixed;
20
  background-position: center;
21
  font-family: 'Segoe UI', sans-serif;
22
  color: #333;
 
23
  }
24
  .sidebar .sidebar-content {
25
  background-color: rgba(255, 255, 255, 0.75);
@@ -31,18 +32,19 @@ body {
31
  .hero {
32
  text-align: center;
33
  padding: 5rem 2rem;
34
- background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9));
35
  border-radius: 24px;
36
  color: white;
37
  margin-bottom: 3rem;
38
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
39
  animation: fade-in 2s ease-out;
 
40
  }
41
  .hero h1 {
42
  font-size: 3.75em;
43
  font-weight: 700;
44
  margin-bottom: 0.3em;
45
- animation: slide-in-top 1s ease-out;
46
  }
47
  .hero p {
48
  font-size: 1.3em;
@@ -50,6 +52,15 @@ body {
50
  margin-top: 0.5em;
51
  animation: slide-in-bottom 1.2s ease-out;
52
  }
 
 
 
 
 
 
 
 
 
53
  .section {
54
  background: rgba(255, 255, 255, 0.85);
55
  border-radius: 20px;
@@ -72,7 +83,7 @@ ul, ol {
72
  text-align: center;
73
  padding: 3rem;
74
  border-radius: 20px;
75
- background: linear-gradient(to right, #ff416c, #ff4b2b);
76
  color: white;
77
  margin-top: 3rem;
78
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
@@ -98,12 +109,17 @@ ul, ol {
98
  0% { transform: translateY(100px); opacity: 0; }
99
  100% { transform: translateY(0); opacity: 1; }
100
  }
 
 
 
 
101
  </style>
102
  """, unsafe_allow_html=True)
103
 
104
  # --- Hero Section ---
105
  st.markdown("""
106
  <div class="hero">
 
107
  <h1>GestureGuru</h1>
108
  <p>AI for Sign Language Understanding & Accessibility</p>
109
  </div>
@@ -143,3 +159,4 @@ st.markdown("""
143
  </div>
144
  """, unsafe_allow_html=True)
145
 
 
 
14
  st.markdown("""
15
  <style>
16
  body {
17
+ background-image: url('https://images.unsplash.com/photo-1633113210877-2dbb0fd770f5?auto=format&fit=crop&w=1920&q=80');
18
  background-size: cover;
19
  background-attachment: fixed;
20
  background-position: center;
21
  font-family: 'Segoe UI', sans-serif;
22
  color: #333;
23
+ animation: fade-in 2s ease-out;
24
  }
25
  .sidebar .sidebar-content {
26
  background-color: rgba(255, 255, 255, 0.75);
 
32
  .hero {
33
  text-align: center;
34
  padding: 5rem 2rem;
35
+ background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(70,70,70,0.7));
36
  border-radius: 24px;
37
  color: white;
38
  margin-bottom: 3rem;
39
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
40
  animation: fade-in 2s ease-out;
41
+ position: relative;
42
  }
43
  .hero h1 {
44
  font-size: 3.75em;
45
  font-weight: 700;
46
  margin-bottom: 0.3em;
47
+ animation: glow-text 2s infinite alternate;
48
  }
49
  .hero p {
50
  font-size: 1.3em;
 
52
  margin-top: 0.5em;
53
  animation: slide-in-bottom 1.2s ease-out;
54
  }
55
+ .hero img.logo {
56
+ width: 120px;
57
+ position: absolute;
58
+ top: 20px;
59
+ left: 20px;
60
+ border-radius: 50%;
61
+ border: 2px solid white;
62
+ box-shadow: 0 4px 12px rgba(0,0,0,0.4);
63
+ }
64
  .section {
65
  background: rgba(255, 255, 255, 0.85);
66
  border-radius: 20px;
 
83
  text-align: center;
84
  padding: 3rem;
85
  border-radius: 20px;
86
+ background: linear-gradient(to right, #00c6ff, #0072ff);
87
  color: white;
88
  margin-top: 3rem;
89
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 
109
  0% { transform: translateY(100px); opacity: 0; }
110
  100% { transform: translateY(0); opacity: 1; }
111
  }
112
+ @keyframes glow-text {
113
+ from { text-shadow: 0 0 5px #fff, 0 0 10px #92faff, 0 0 20px #00ffe5; }
114
+ to { text-shadow: 0 0 10px #fff, 0 0 20px #00f2ff, 0 0 30px #00f2ff; }
115
+ }
116
  </style>
117
  """, unsafe_allow_html=True)
118
 
119
  # --- Hero Section ---
120
  st.markdown("""
121
  <div class="hero">
122
+ <img src="https://cdn-icons-png.flaticon.com/512/3062/3062634.png" class="logo" alt="logo">
123
  <h1>GestureGuru</h1>
124
  <p>AI for Sign Language Understanding & Accessibility</p>
125
  </div>
 
159
  </div>
160
  """, unsafe_allow_html=True)
161
 
162
+