areeba-ai commited on
Commit
99d92ae
Β·
verified Β·
1 Parent(s): 9bd9bf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -27
app.py CHANGED
@@ -58,47 +58,54 @@ Be friendly, professional, and supportive.
58
  return f"Error: {str(e)}"
59
 
60
  css = """
 
61
  body {
62
- background: #f0f4ff;
63
  min-height: 100vh;
64
  }
65
  .gradio-container {
66
- max-width: 800px !important;
67
- margin: auto !important;
68
  font-family: 'Segoe UI', sans-serif !important;
 
69
  }
70
- .chat-header {
71
- text-align: center;
72
- padding: 24px 20px;
73
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
74
- border-radius: 16px;
75
- margin-bottom: 20px;
76
- box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
 
 
 
77
  }
78
- .chat-header h1 {
79
- color: white !important;
80
- font-size: 2.2em !important;
81
- font-weight: 800 !important;
82
- margin: 0 0 8px 0 !important;
83
- letter-spacing: 1px;
84
  }
85
- .chat-header .creator {
86
- color: rgba(255,255,255,0.95) !important;
87
- font-size: 1em !important;
88
- font-weight: 600 !important;
89
- background: rgba(255,255,255,0.2);
90
- padding: 4px 16px;
91
- border-radius: 20px;
92
- display: inline-block;
 
 
 
93
  }
94
  footer { display: none !important; }
95
  """
96
 
97
  with gr.Blocks(css=css) as demo:
98
  gr.HTML("""
99
- <div class="chat-header">
100
- <h1>πŸ“š AI Study Buddy</h1>
101
- <span class="creator">✨ Created by Areeba Iqbal</span>
 
 
 
102
  </div>
103
  """)
104
 
 
58
  return f"Error: {str(e)}"
59
 
60
  css = """
61
+ * { box-sizing: border-box; }
62
  body {
63
+ background: #fafafa;
64
  min-height: 100vh;
65
  }
66
  .gradio-container {
67
+ max-width: 780px !important;
68
+ margin: 0 auto !important;
69
  font-family: 'Segoe UI', sans-serif !important;
70
+ padding-top: 20px !important;
71
  }
72
+ .header-box {
73
+ background: white;
74
+ border: 1px solid #e8e8e8;
75
+ border-radius: 12px;
76
+ padding: 28px 32px;
77
+ margin-bottom: 16px;
78
+ display: flex;
79
+ align-items: center;
80
+ gap: 16px;
81
+ box-shadow: 0 2px 8px rgba(0,0,0,0.06);
82
  }
83
+ .header-icon {
84
+ font-size: 40px;
 
 
 
 
85
  }
86
+ .header-text h1 {
87
+ margin: 0;
88
+ font-size: 1.8em;
89
+ font-weight: 700;
90
+ color: #1a1a2e;
91
+ letter-spacing: -0.5px;
92
+ }
93
+ .header-text p {
94
+ margin: 4px 0 0;
95
+ font-size: 0.9em;
96
+ color: #888;
97
  }
98
  footer { display: none !important; }
99
  """
100
 
101
  with gr.Blocks(css=css) as demo:
102
  gr.HTML("""
103
+ <div class="header-box">
104
+ <div class="header-icon">πŸ“š</div>
105
+ <div class="header-text">
106
+ <h1>AI Study Buddy</h1>
107
+ <p>Created by Areeba Iqbal &nbsp;β€’&nbsp; Ask me anything</p>
108
+ </div>
109
  </div>
110
  """)
111