Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions actions/github/common/html_response_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ def generate_html_response(apihost,whisk_user,github_user):
return f"""
<html>
<body style='background-color:#1da1ce;'>
<div style='width: 100%;background-color: #1da1ce;justify-content: flex-start;display: flex;'>
<div style='width: 100%;background-color: #1da1ce;justify-content: flex-start;display: flex;'>
<a href='https://nuvolaris.io' aria-current="page" aria-label='home'>
<img src='https://assets-global.website-files.com/64b64691257b91236b0e7482/64bfcab6bd343008e30e5d06_Nuvolaris%20logo%20white.png' loading='lazy' width='195' alt='Nuvolaris Logo.'>
</a>
<img src='https://raw.githubusercontent.com/apache/openserverless/main/assets/logos/png/os-logo-full-horizontal-transparent.png' loading='lazy' width='195' alt='Apache OpenServerless Logo.'>
</a>
</div>
<div style='width: 100%;height: 50rem;max-width: 100%;background-color: #1da1ce;flex-direction: column;margin-left: 0;margin-right: 0;display: flex;'>
<h1 style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1.75rem;font-weight: 600;'>Congratulations, you have successfully configured a free <strong>nuvolaris</strong> account on domain {apihost}</h1>
<p style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1rem;font-weight: 400;'>Please take note of your account details as you won't be able to access this page again!</p>
<p style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1rem;font-weight: 400;'>Please take note of your account details as you won't be able to access this page again!</p>
<div style='background-color: #fff;flex-direction: column;padding-left: 10px;paddiing-right: 10px;display: flex; color: #000;'>
<ul>
<li>account name: <strong>{github_user['login']}</strong></li>
Expand All @@ -44,7 +44,7 @@ def generate_html_response(apihost,whisk_user,github_user):
To login to your free account via nuv CLI executes in a shell the command <br/><br/> <strong>nuv -login https://{apihost} {github_user['login']}</strong> entering the provided password at the prompt
</p>
</div>
</div>
</div>
</body>
</html>
"""
Expand All @@ -57,20 +57,20 @@ def generate_html_error(apihost,message):
return f"""
<html>
<body style='background-color:#1da1ce;'>
<div style='width: 100%;background-color: #1da1ce;justify-content: flex-start;display: flex;'>
<div style='width: 100%;background-color: #1da1ce;justify-content: flex-start;display: flex;'>
<a href='https://nuvolaris.io' aria-current="page" aria-label='home'>
<img src='https://assets-global.website-files.com/64b64691257b91236b0e7482/64bfcab6bd343008e30e5d06_Nuvolaris%20logo%20white.png' loading='lazy' width='195' alt='Nuvolaris Logo.'>
</a>
<img src='https://raw.githubusercontent.com/apache/openserverless/main/assets/logos/png/os-logo-full-horizontal-transparent.png' loading='lazy' width='195' alt='Apache OpenServerless Logo.'>
</a>
</div>
<div style='width: 100%;height: 50rem;max-width: 100%;background-color: #1da1ce;flex-direction: column;margin-left: 0;margin-right: 0;display: flex;'>
<h1 style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1.75rem;font-weight: 600;'>Oops, something went wront setting a <strong>nuvolaris</strong> account on domain {apihost}</h1>
<p style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1rem;font-weight: 400;'>Please take a look at the provided error description</p>
<div style='background-color: #fff;flex-direction: column;padding-left: 10px;paddiing-right: 10px;display: flex; color: #000;'>
<p style='color: #fff;text-align: left;font-family: Work Sans, sans-serif;font-size: 1rem;font-weight: 400;'>Please take a look at the provided error description</p>
<div style='background-color: #fff;flex-direction: column;padding-left: 10px;paddiing-right: 10px;display: flex; color: #000;'>
<p>
{message}
</p>
</div>
</div>
</div>
</body>
</html>
"""