Jintonic92 commited on
Commit
50c1ea5
ยท
verified ยท
1 Parent(s): 6e2ba07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
app.py CHANGED
@@ -19,6 +19,38 @@ st.set_page_config(
19
  initial_sidebar_state="expanded"
20
  )
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  @st.cache_resource
23
  def load_answer_verifier():
24
  """๋‹ต์•ˆ ๊ฒ€์ฆ ๋ชจ๋ธ ๋กœ๋“œ"""
 
19
  initial_sidebar_state="expanded"
20
  )
21
 
22
+ # landing page ํ•จ์ˆ˜
23
+ # Custom CSS ์ถ”๊ฐ€
24
+ def add_custom_css_landing():
25
+ st.markdown(
26
+ """
27
+ <style>
28
+ /* ํŽ˜์ด์ง€ ์ค‘์•™์— ์ œ๋ชฉ ๋ฐฐ์น˜ */
29
+ .center-title {
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ height: 80vh; /* ํ™”๋ฉด์˜ 80% ๋†’์ด ์ค‘์•™ */
34
+ font-size: 50px;
35
+ font-weight: bold;
36
+ color: #FF6B6B; /* ์ œ๋ชฉ ์ƒ‰๊น” */
37
+ }
38
+
39
+ /* ๋ฐฐ๊ฒฝ ์ƒ‰๊น” */
40
+ body {
41
+ background-color: #f9f9f9; /* ๋ฐ์€ ํšŒ์ƒ‰ ๋ฐฐ๊ฒฝ */
42
+ color: #333333; /* ๊ธฐ๋ณธ ํ…์ŠคํŠธ ์ƒ‰๊น” */
43
+ }
44
+ </style>
45
+ """,
46
+ unsafe_allow_html=True,
47
+ )
48
+
49
+ # CSS ์ถ”๊ฐ€
50
+ add_custom_css_landing()
51
+ st.markdown('<div class="center-title">MisconcepTutor</div>', unsafe_allow_html=True)
52
+
53
+
54
  @st.cache_resource
55
  def load_answer_verifier():
56
  """๋‹ต์•ˆ ๊ฒ€์ฆ ๋ชจ๋ธ ๋กœ๋“œ"""