M17idd commited on
Commit
a5b2194
·
1 Parent(s): 408d87c

right align

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -7,6 +7,7 @@ st.markdown("""
7
  background-color: #f4f6f7;
8
  }
9
 
 
10
  .stChatMessage {
11
  background-color: #e8f0fe;
12
  border-radius: 12px;
@@ -17,47 +18,51 @@ st.markdown("""
17
  font-family: 'Tahoma', sans-serif;
18
  }
19
 
 
20
  .stMarkdown, .stTextInput, .stTextArea {
21
  direction: rtl !important;
22
  text-align: right !important;
23
  font-family: 'Tahoma', sans-serif;
24
  }
25
 
 
26
  .center-header {
27
  display: flex;
28
  flex-direction: column;
29
  align-items: center;
30
  justify-content: center;
 
31
  margin-bottom: 30px;
32
  }
33
 
34
  .center-header img {
35
- width: 150px; /* اندازه بزرگ‌تر برای لوگو */
36
  height: auto;
37
- border-radius: 20px;
38
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
39
  margin-bottom: 10px;
40
  }
41
 
42
  .center-header h1 {
43
- font-size: 28px;
44
  font-weight: bold;
45
  color: #2c3e50;
46
  font-family: 'Tahoma', sans-serif;
47
  text-align: center;
48
  margin: 0;
 
49
  }
50
  </style>
51
  """, unsafe_allow_html=True)
52
 
 
53
  st.markdown("""
54
  <div class="center-header">
55
- <img src="https://your-logo-url.com/logo.png" alt="لوگو">
56
- <h1>اسم اپلیکیشن یا شرکت شما</h1>
57
  </div>
58
  """, unsafe_allow_html=True)
59
 
60
-
61
  from langchain.document_loaders import PyPDFLoader
62
  from langchain.text_splitter import RecursiveCharacterTextSplitter
63
  from langchain.embeddings.base import Embeddings
 
7
  background-color: #f4f6f7;
8
  }
9
 
10
+ /* استایل پیام‌های چت */
11
  .stChatMessage {
12
  background-color: #e8f0fe;
13
  border-radius: 12px;
 
18
  font-family: 'Tahoma', sans-serif;
19
  }
20
 
21
+ /* راست‌چین کردن همه اجزای متنی */
22
  .stMarkdown, .stTextInput, .stTextArea {
23
  direction: rtl !important;
24
  text-align: right !important;
25
  font-family: 'Tahoma', sans-serif;
26
  }
27
 
28
+ /* استایل لوگو و نام در مرکز */
29
  .center-header {
30
  display: flex;
31
  flex-direction: column;
32
  align-items: center;
33
  justify-content: center;
34
+ margin-top: 50px;
35
  margin-bottom: 30px;
36
  }
37
 
38
  .center-header img {
39
+ width: 200px; /* اندازه بزرگ‌تر برای لوگو */
40
  height: auto;
41
+ border-radius: 15px;
42
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
43
  margin-bottom: 10px;
44
  }
45
 
46
  .center-header h1 {
47
+ font-size: 32px;
48
  font-weight: bold;
49
  color: #2c3e50;
50
  font-family: 'Tahoma', sans-serif;
51
  text-align: center;
52
  margin: 0;
53
+ letter-spacing: 1px;
54
  }
55
  </style>
56
  """, unsafe_allow_html=True)
57
 
58
+ # حالا در جای مناسب در برنامه:
59
  st.markdown("""
60
  <div class="center-header">
61
+ <img src="army.png" alt="لوگو">
62
+ <h1> هوش مصنوعی توانا/h1>
63
  </div>
64
  """, unsafe_allow_html=True)
65
 
 
66
  from langchain.document_loaders import PyPDFLoader
67
  from langchain.text_splitter import RecursiveCharacterTextSplitter
68
  from langchain.embeddings.base import Embeddings