initial commit
This commit is contained in:
170
popup.html
Normal file
170
popup.html
Normal file
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Praxis</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #000000;
|
||||
color: #ffffff;
|
||||
width: 320px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
#root {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.flow-header h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.flow-header p {
|
||||
text-align: center;
|
||||
color: #cccccc;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
#logo {
|
||||
display: block;
|
||||
margin: 0 auto 8px auto;
|
||||
height: 128px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#onboarding-issues-container,
|
||||
#confirmation-issues-list-wrapper { /* Apply to the new wrapper */
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
#confirmation-issues-list-wrapper {
|
||||
display: flex;
|
||||
justify-content: center; /* Center the list wrapper */
|
||||
width: 100%; /* Ensure it takes full width to allow centering */
|
||||
}
|
||||
|
||||
#confirmation-issues-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
margin-bottom: 16px;
|
||||
padding-left: 20px;
|
||||
list-style-position: inside; /* Keep bullets inside the list item for better alignment */
|
||||
text-align: left; /* Ensure text remains left justified */
|
||||
width: fit-content; /* Allow the list to shrink to its content's width */
|
||||
}
|
||||
|
||||
#confirmation-issues-list li {
|
||||
list-style-type: disc;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.issue-button {
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background-color: #222222;
|
||||
padding: 8px 16px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
|
||||
transition: all 200ms ease-in-out;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.issue-button:hover {
|
||||
background-color: #333333;
|
||||
}
|
||||
|
||||
.issue-button:focus {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
|
||||
}
|
||||
|
||||
.issue-button.selected {
|
||||
background-color: #003366;
|
||||
border-color: #0055aa;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.action-button {
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
padding: 8px 16px;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
margin-top: 8px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#save-onboarding-issues {
|
||||
background-color: #004d99;
|
||||
}
|
||||
|
||||
#save-onboarding-issues:hover {
|
||||
background-color: #003366;
|
||||
}
|
||||
|
||||
#confirm-issues {
|
||||
background-color: #28a745;
|
||||
}
|
||||
|
||||
#confirm-issues:hover {
|
||||
background-color: #218838;
|
||||
}
|
||||
|
||||
#reselect-issues {
|
||||
background-color: #6c757d;
|
||||
}
|
||||
|
||||
#reselect-issues:hover {
|
||||
background-color: #5a6268;
|
||||
}
|
||||
|
||||
#onboarding-flow,
|
||||
#confirmation-flow {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="root">
|
||||
<div id="onboarding-flow">
|
||||
<div class="flow-header">
|
||||
<img id="logo" src="praxis-logo.jpg" alt="Praxis Logo" />
|
||||
<h1>Welcome to Praxis</h1>
|
||||
<p>Select the issues you care about:</p>
|
||||
</div>
|
||||
<div id="onboarding-issues-container">
|
||||
</div>
|
||||
<button id="save-onboarding-issues" class="action-button">Save Preferences</button>
|
||||
</div>
|
||||
|
||||
<div id="confirmation-flow">
|
||||
<div class="flow-header">
|
||||
<img id="logo" src="praxis.jpg" alt="Praxis Logo" />
|
||||
<p>Status: Active</p>
|
||||
<p>Here are the issues you've chosen:</p>
|
||||
</div>
|
||||
<div id="confirmation-issues-list-wrapper">
|
||||
<ul id="confirmation-issues-list">
|
||||
<li>No issues selected yet.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<button id="confirm-issues" class="action-button">Close</button>
|
||||
<button id="reselect-issues" class="action-button">Reselect Issues</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="browser-polyfill.min.js"></script>
|
||||
<script src="popup.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user