mimbres commited on
Commit
6705e2d
·
verified ·
1 Parent(s): 7c7dda7

Update html_helper.py

Browse files
Files changed (1) hide show
  1. html_helper.py +12 -1
html_helper.py CHANGED
@@ -121,4 +121,15 @@ def create_html_youtube_player(youtube_url):
121
  </div>
122
  """
123
  return html
124
-
 
 
 
 
 
 
 
 
 
 
 
 
121
  </div>
122
  """
123
  return html
124
+
125
+ 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