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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -1
app.py CHANGED
@@ -14,7 +14,7 @@ st.set_page_config(
14
  st.markdown("""
15
  <style>
16
  body {
17
- background-image: url('https://images.unsplash.com/photo-1581092160613-7f07e5d14c86?auto=format&fit=crop&w=1920&q=80');
18
  background-size: cover;
19
  background-attachment: fixed;
20
  background-position: center;
@@ -36,16 +36,19 @@ body {
36
  color: white;
37
  margin-bottom: 3rem;
38
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
 
39
  }
40
  .hero h1 {
41
  font-size: 3.75em;
42
  font-weight: 700;
43
  margin-bottom: 0.3em;
 
44
  }
45
  .hero p {
46
  font-size: 1.3em;
47
  font-weight: 300;
48
  margin-top: 0.5em;
 
49
  }
50
  .section {
51
  background: rgba(255, 255, 255, 0.85);
@@ -54,6 +57,7 @@ body {
54
  margin-bottom: 2.5rem;
55
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
56
  backdrop-filter: blur(4px);
 
57
  }
58
  h3 {
59
  font-size: 1.8rem;
@@ -72,11 +76,28 @@ ul, ol {
72
  color: white;
73
  margin-top: 3rem;
74
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 
75
  }
76
  .contact-block a {
77
  color: #fff;
78
  text-decoration: underline;
79
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  </style>
81
  """, unsafe_allow_html=True)
82
 
@@ -121,3 +142,4 @@ st.markdown("""
121
  <p>Email: <a href="mailto:your@email.com">your@email.com</a></p>
122
  </div>
123
  """, unsafe_allow_html=True)
 
 
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;
 
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;
49
  font-weight: 300;
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);
 
57
  margin-bottom: 2.5rem;
58
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
59
  backdrop-filter: blur(4px);
60
+ animation: fade-in-up 1s ease-out;
61
  }
62
  h3 {
63
  font-size: 1.8rem;
 
76
  color: white;
77
  margin-top: 3rem;
78
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
79
+ animation: fade-in 2s ease-out;
80
  }
81
  .contact-block a {
82
  color: #fff;
83
  text-decoration: underline;
84
  }
85
+ @keyframes fade-in {
86
+ from { opacity: 0; }
87
+ to { opacity: 1; }
88
+ }
89
+ @keyframes fade-in-up {
90
+ from { opacity: 0; transform: translateY(30px); }
91
+ to { opacity: 1; transform: translateY(0); }
92
+ }
93
+ @keyframes slide-in-top {
94
+ 0% { transform: translateY(-100px); opacity: 0; }
95
+ 100% { transform: translateY(0); opacity: 1; }
96
+ }
97
+ @keyframes slide-in-bottom {
98
+ 0% { transform: translateY(100px); opacity: 0; }
99
+ 100% { transform: translateY(0); opacity: 1; }
100
+ }
101
  </style>
102
  """, unsafe_allow_html=True)
103
 
 
142
  <p>Email: <a href="mailto:your@email.com">your@email.com</a></p>
143
  </div>
144
  """, unsafe_allow_html=True)
145
+