mimbres commited on
Commit
873b69e
1 Parent(s): 3f3e68d

Update html_helper.py

Browse files
Files changed (1) hide show
  1. html_helper.py +5 -3
html_helper.py CHANGED
@@ -126,10 +126,12 @@ def create_html_oauth():
126
  html = f"""
127
  <div style="display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 100%;">
128
  <style>
129
- .responsive-iframe {{ width: 560px; height: 315px; transform-origin: top left; transition: width 0.3s ease, height 0.3s ease; }}
130
- @media (max-width: 560px) {{ .responsive-iframe {{ width: 100%; height: 100%; }} }}
131
  </style>
132
- <iframe class="responsive-iframe" src="https://www.google.com/device" title="YouTube oauth" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 
 
133
  </div>
134
  """
135
  return html
 
126
  html = f"""
127
  <div style="display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 100%;">
128
  <style>
129
+ .responsive-link {{ display: inline-block; padding: 10px 20px; text-align: center; font-size: 16px; background-color: #007bff; color: white; text-decoration: none; border-radius: 4px; transition: background-color 0.3s ease; }}
130
+ .responsive-link:hover {{ background-color: #0056b3; }}
131
  </style>
132
+ <a href="https://www.google.com/device" target="_blank" rel="noopener noreferrer" class="responsive-link">
133
+ Open Google Device Page
134
+ </a>
135
  </div>
136
  """
137
  return html