Harika22 commited on
Commit
347c0aa
·
verified ·
1 Parent(s): 9a54a30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -5
app.py CHANGED
@@ -1,16 +1,19 @@
1
  import streamlit as st
2
 
3
- # Custom CSS for styling and animations
4
  st.markdown(
5
  """
6
  <style>
 
 
 
 
7
  @keyframes fadeIn {
8
  0% { opacity: 0; transform: translateY(-20px); }
9
  100% { opacity: 1; transform: translateY(0); }
10
  }
11
  .title {
12
  text-align: center;
13
- color: #2c3e50;
14
  font-size: 3rem;
15
  font-weight: bold;
16
  animation: fadeIn 1s ease-in-out;
@@ -19,14 +22,18 @@ st.markdown(
19
  text-align: center;
20
  font-style: italic;
21
  font-size: 1.2rem;
22
- color: #7f8c8d;
23
  animation: fadeIn 1.5s ease-in-out;
24
  }
25
  .about {
26
  font-size: 1.1rem;
27
  text-align: justify;
28
  line-height: 1.8;
29
- color: #34495e;
 
 
 
 
30
  animation: fadeIn 2s ease-in-out;
31
  }
32
  .image-container {
@@ -37,6 +44,10 @@ st.markdown(
37
  .image-container img {
38
  border-radius: 15px;
39
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 
 
 
 
40
  }
41
  </style>
42
  """,
@@ -48,7 +59,7 @@ st.markdown("<div class='title'>Natural Language Processing</div>", unsafe_allow
48
 
49
  # Caption with animation
50
  st.markdown(
51
- "<div class='caption'>***Unlock the Power of Language: Bridging Communication Between Humans and Machines with NLP!***</div>",
52
  unsafe_allow_html=True,
53
  )
54
 
 
1
  import streamlit as st
2
 
 
3
  st.markdown(
4
  """
5
  <style>
6
+ body {
7
+ background-color: #f9f9f9; /* Light, soft background */
8
+ font-family: 'Arial', sans-serif;
9
+ }
10
  @keyframes fadeIn {
11
  0% { opacity: 0; transform: translateY(-20px); }
12
  100% { opacity: 1; transform: translateY(0); }
13
  }
14
  .title {
15
  text-align: center;
16
+ color: #2c3e50; /* Deep gray-blue */
17
  font-size: 3rem;
18
  font-weight: bold;
19
  animation: fadeIn 1s ease-in-out;
 
22
  text-align: center;
23
  font-style: italic;
24
  font-size: 1.2rem;
25
+ color: #7f8c8d; /* Soft gray */
26
  animation: fadeIn 1.5s ease-in-out;
27
  }
28
  .about {
29
  font-size: 1.1rem;
30
  text-align: justify;
31
  line-height: 1.8;
32
+ color: #34495e; /* Muted gray */
33
+ background: #ffffff; /* White card-style background */
34
+ padding: 15px;
35
+ border-radius: 10px;
36
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
37
  animation: fadeIn 2s ease-in-out;
38
  }
39
  .image-container {
 
44
  .image-container img {
45
  border-radius: 15px;
46
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
47
+ transition: transform 0.3s ease-in-out;
48
+ }
49
+ .image-container img:hover {
50
+ transform: scale(1.05); /* Subtle zoom effect on hover */
51
  }
52
  </style>
53
  """,
 
59
 
60
  # Caption with animation
61
  st.markdown(
62
+ "<div class='caption'>Unlock the Power of Language: Bridging Communication Between Humans and Machines with NLP!</div>",
63
  unsafe_allow_html=True,
64
  )
65