dvilasuero HF staff commited on
Commit
12af5c4
1 Parent(s): f37fa23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -5
app.py CHANGED
@@ -24,16 +24,36 @@ demo = gr.TabbedInterface(
24
  css=css,
25
  title="""
26
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  @media (max-width: 600px) {
28
- .logo-container { position: static !important; text-align: center; margin-bottom: 20px; }
29
- .title-container { padding-left: 0 !important; }
 
 
 
 
 
30
  }
31
  </style>
32
- <div style="position: relative; margin-bottom: 1rem;">
33
- <div class="logo-container" style="position: absolute; top: 0; left: 0;">
34
  <img src="https://distilabel.argilla.io/latest/assets/distilabel-black.svg" alt="Distilabel Logo" style="width: 150px; height: auto;">
35
  </div>
36
- <div class="title-container" style="text-align: center; padding-top: 40px; padding-left: 160px;">
37
  <h1 style="margin: 0; font-size: 2em;">🧶 DataCraft</h1>
38
  <p style="margin: 10px 0 0 0; color: #666; font-size: 1.1em;">Build datasets using natural language</p>
39
  </div>
 
24
  css=css,
25
  title="""
26
  <style>
27
+ .header-container {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ position: relative;
32
+ padding: 20px 0;
33
+ }
34
+ .logo-container {
35
+ position: absolute;
36
+ left: 0;
37
+ top: 0;
38
+ }
39
+ .title-container {
40
+ text-align: center;
41
+ }
42
  @media (max-width: 600px) {
43
+ .header-container {
44
+ flex-direction: column;
45
+ }
46
+ .logo-container {
47
+ position: static;
48
+ margin-bottom: 20px;
49
+ }
50
  }
51
  </style>
52
+ <div class="header-container">
53
+ <div class="logo-container">
54
  <img src="https://distilabel.argilla.io/latest/assets/distilabel-black.svg" alt="Distilabel Logo" style="width: 150px; height: auto;">
55
  </div>
56
+ <div class="title-container">
57
  <h1 style="margin: 0; font-size: 2em;">🧶 DataCraft</h1>
58
  <p style="margin: 10px 0 0 0; color: #666; font-size: 1.1em;">Build datasets using natural language</p>
59
  </div>