Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: faq button #263

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@
<div id="build">
<a target="_blank" rel="noopener noreferrer"></a>
</div>
<a class="faq-icon" href="https://github.com/ubiquity/work.ubq.fi/discussions/53" target="_blank">
<div>
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#808080">
<div id="faq-icon">
<a href="https://github.com/ubiquity/work.ubq.fi/discussions/53" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px">
<path
d="M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"
/>
</svg>
</div>
</a>
</a>
</div>
</div>
</footer>
</main>
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/rewards/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ grid(document.getElementById("grid") as HTMLElement, gridLoadedCallback); // @DE
readClaimDataFromUrl(app).catch(console.error); // @DEV: read claim data from URL

const footer = document.querySelector(".footer") as Element;
footer.classList.add("animate");
footer.classList.add("ready");

// cSpell:ignore llback
function gridLoadedCallback() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Success = boolean;

export async function renderTransaction(): Promise<Success> {
if (app.claims && app.claims.length > 1) {
carousel.className = "flex";
carousel.className = "ready";
const rewardsCount = document.getElementById("rewardsCount") as Element;
rewardsCount.innerHTML = `${app.rewardIndex + 1}/${app.claims.length} reward`;
}
Expand Down
2 changes: 1 addition & 1 deletion static/styles/rewards/claim-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ table hr {
height: 1px;
border: none;
}
table svg path {
svg path {
fill: currentColor;
}
table td div {
Expand Down
2 changes: 1 addition & 1 deletion static/styles/rewards/light-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#rewardAmount > a {
color: #000;
}
table svg path {
svg path {
fill: #000;
}
#logo-icon > svg {
Expand Down
44 changes: 29 additions & 15 deletions static/styles/rewards/pay.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ a {
/* font-weight: 400; */
}

div#build {
div.footer > div {
/* bottom: 48px; */
padding: 48px 0;
text-align: center;
Expand All @@ -112,15 +112,17 @@ div#build {
/* font-weight: 100; */
/* width: 48px; */
margin: auto;
display: inline-block;
vertical-align: middle;
}

div#build > a {
footer a {
opacity: 0.25;
font-size: 12px;
color: #fff;
}

div#build > a:hover {
footer a:hover {
opacity: 1;
}
header a #logo {
Expand All @@ -145,17 +147,20 @@ footer {
/* height: 108px; */
/* width: 100%; */
/* padding-bottom: env(safe-area-inset-bottom); */
width: 100%;
position: relative;
}

#carousel {
flex-direction: row;
align-items: center;
align-self: center;
margin: 12px auto;
/* margin: 12px auto; */
/* opacity: 0.5; */
/* display: none; */
opacity: 0;
transition: opacity 1s;
text-align: center;
}
#carousel > div {
color: #808080;
Expand All @@ -164,8 +169,7 @@ footer {
#carousel > div:hover {
color: #fff;
}
#carousel.flex {
/* display: flex; */
#carousel.ready {
opacity: 1;
}
#carousel > #rewardsCount {
Expand Down Expand Up @@ -194,28 +198,38 @@ footer {
border-left-color: transparent;
}

.faq-icon {
position: fixed;
right: 20px;
cursor: pointer;
#faq-icon > a {
/* position: fixed; */
/* right: 20px; */
/* cursor: pointer; */
}

a.faq-icon > div {
#faq-icon > a > div {
font-size: 12px;
color: #fff;
}

a.faq-icon > div:hover {
#faq-icon > a > div:hover {
opacity: 1;
}

.footer {
display: flex;
align-items: center;
/* display: flex; */
/* align-items: center; */
opacity: 0;
transition: opacity 1s;
text-align: center;
}

.footer.animate {
.footer.ready {
opacity: 1;
}

#faq-icon{
position: absolute;
/* right: 0; */
/* height: 24px; */
/* display: inline-block; */
padding: 42px;
right: 0;
}
Loading
Loading