LakshmiHarika commited on
Commit
bbc82da
·
verified ·
1 Parent(s): ca34e69

Create HomePage.py

Browse files
Files changed (1) hide show
  1. HomePage.py +91 -0
HomePage.py ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;
20
+ }
21
+ .caption {
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 {
40
+ text-align: center;
41
+ margin-top: 20px;
42
+ animation: fadeIn 2.5s ease-in-out;
43
+ }
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
+ """,
54
+ unsafe_allow_html=True,
55
+ )
56
+
57
+ # Title with CSS animation
58
+ st.markdown("<div class='title'>Natural Language Processing</div>", unsafe_allow_html=True)
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
+
66
+ # Centered Image with styling
67
+ st.markdown(
68
+ """
69
+ <div class='image-container'>
70
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/REaH0rQy3lM6fCF0vEBtt.jpeg" alt="NLP Image" width="400">
71
+ </div>
72
+ """,
73
+ unsafe_allow_html=True,
74
+ )
75
+
76
+ # About the app section with CSS styling
77
+ st.subheader(":violet[About the App]")
78
+ st.markdown(
79
+ '''
80
+ <div class='about'>
81
+ <b>From Words to Wonders: Mastering NLP</b><br>
82
+ Natural Language Processing (NLP) is where technology meets human language,
83
+ turning words into powerful tools for innovation.
84
+ Whether you're a curious beginner or a seasoned pro, this journey will take you
85
+ from decoding basics to building smart systems like chatbots, translators, and sentiment analyzers.
86
+ NLP is not just about algorithms—it's about understanding, creating, and transforming how we connect with the world.
87
+ Step into the future of communication and let language lead the way!
88
+ </div>
89
+ ''',
90
+ unsafe_allow_html=True,
91
+ )