Cristobal299 commited on
Commit
12b7a9b
·
verified ·
1 Parent(s): 3f52cb9

Upload gradio_theme_fenix.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. gradio_theme_fenix.py +30 -0
gradio_theme_fenix.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ import gradio as gr
3
+
4
+ FENIX_CSS = """
5
+ /* Simple custom CSS for the Fenix theme */
6
+ body {font-family: Arial, sans-serif;}
7
+ """
8
+
9
+ def apply_fenix_theme():
10
+ """Return a Gradio theme object. Using the Soft theme as a base."""
11
+ return gr.themes.Soft()
12
+
13
+ def fenix_header(title: str, description: str):
14
+ """Create a header component with a title and short description."""
15
+ html = f"""
16
+ <div style="text-align:center; padding:20px;">
17
+ <h1>{title}</h1>
18
+ <p>{description}</p>
19
+ </div>
20
+ """
21
+ return gr.HTML(html)
22
+
23
+ def fenix_footer():
24
+ """Create a simple footer component."""
25
+ html = """
26
+ <div style="text-align:center; padding:10px; font-size:small;">
27
+ © 2024 PDF Reader
28
+ </div>
29
+ """
30
+ return gr.HTML(html)