JeCabrera commited on
Commit
1eab75b
verified
1 Parent(s): 5d69377

Upload 11 files

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. style.py +20 -12
app.py CHANGED
@@ -173,7 +173,7 @@ if submit_ad:
173
 
174
  # Bot贸n de descarga with timestamp in filename
175
  st.download_button(
176
- label="Descargar Anuncio",
177
  data=generated_ad,
178
  file_name=f"anuncio_facebook_{timestamp}.txt",
179
  mime="text/plain"
@@ -199,7 +199,7 @@ elif 'current_ad' in st.session_state:
199
 
200
  # Bot贸n de descarga with timestamp in filename
201
  st.download_button(
202
- label="Descargar Anuncio",
203
  data=st.session_state.current_ad,
204
  file_name=f"anuncio_facebook_{timestamp}.txt",
205
  mime="text/plain"
 
173
 
174
  # Bot贸n de descarga with timestamp in filename
175
  st.download_button(
176
+ label="DESCARGAR ANUNCIO",
177
  data=generated_ad,
178
  file_name=f"anuncio_facebook_{timestamp}.txt",
179
  mime="text/plain"
 
199
 
200
  # Bot贸n de descarga with timestamp in filename
201
  st.download_button(
202
+ label="DESCARGAR ANUNCIO",
203
  data=st.session_state.current_ad,
204
  file_name=f"anuncio_facebook_{timestamp}.txt",
205
  mime="text/plain"
style.py CHANGED
@@ -9,13 +9,18 @@ styles = {
9
  "button": """
10
  <style>
11
  .stButton > button {
12
- width: 100%;
13
- margin-top: 1rem;
 
14
  background: linear-gradient(to right, #FFD700, #FFA500);
15
  color: black;
16
  font-weight: bold;
17
  border: none;
18
  transition: all 0.3s ease;
 
 
 
 
19
  }
20
  .stButton > button:hover {
21
  background: linear-gradient(to right, #FFC800, #FF8C00);
@@ -26,11 +31,6 @@ styles = {
26
  }
27
  </style>
28
  """,
29
- "results_container": """
30
- padding: 15px;
31
- border: 1px solid #ddd;
32
- border-radius: 8px;
33
- """,
34
  "download_button": """
35
  <style>
36
  [data-testid="stDownloadButton"] {
@@ -38,7 +38,7 @@ styles = {
38
  display: flex;
39
  justify-content: center;
40
  margin-top: 5px;
41
- width: 80%;
42
  margin-left: auto;
43
  margin-right: auto;
44
  }
@@ -47,17 +47,25 @@ styles = {
47
  width: 100%;
48
  border-radius: 5px;
49
  height: 3em;
50
- background-color: #00D100;
51
- color: black;
52
  font-weight: bold;
53
  transition: all 0.3s ease;
54
- border: 1px solid black;
 
 
55
  }
56
 
57
  [data-testid="stDownloadButton"] button:hover {
58
- background-color: #00C000;
59
  transform: translateY(-2px);
 
60
  }
61
  </style>
 
 
 
 
 
62
  """
63
  }
 
9
  "button": """
10
  <style>
11
  .stButton > button {
12
+ width: 90%;
13
+ margin: 1rem auto;
14
+ display: block;
15
  background: linear-gradient(to right, #FFD700, #FFA500);
16
  color: black;
17
  font-weight: bold;
18
  border: none;
19
  transition: all 0.3s ease;
20
+ text-transform: uppercase;
21
+ letter-spacing: 1px;
22
+ border-radius: 5px;
23
+ padding: 0.5rem 1rem;
24
  }
25
  .stButton > button:hover {
26
  background: linear-gradient(to right, #FFC800, #FF8C00);
 
31
  }
32
  </style>
33
  """,
 
 
 
 
 
34
  "download_button": """
35
  <style>
36
  [data-testid="stDownloadButton"] {
 
38
  display: flex;
39
  justify-content: center;
40
  margin-top: 5px;
41
+ width: 90%;
42
  margin-left: auto;
43
  margin-right: auto;
44
  }
 
47
  width: 100%;
48
  border-radius: 5px;
49
  height: 3em;
50
+ background: linear-gradient(to right, #00D100, #009900);
51
+ color: white;
52
  font-weight: bold;
53
  transition: all 0.3s ease;
54
+ border: none;
55
+ text-transform: uppercase;
56
+ letter-spacing: 1px;
57
  }
58
 
59
  [data-testid="stDownloadButton"] button:hover {
60
+ background: linear-gradient(to right, #00C000, #008800);
61
  transform: translateY(-2px);
62
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
63
  }
64
  </style>
65
+ """,
66
+ "results_container": """
67
+ padding: 15px;
68
+ border: 1px solid #ddd;
69
+ border-radius: 8px;
70
  """
71
  }