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

feat: visual redesign and removal of obsolete content #445

Merged
merged 12 commits into from
Aug 20, 2024

Conversation

huijing
Copy link
Collaborator

@huijing huijing commented Mar 15, 2024

Closes #444
Will also resolve #460

This will end up being a mega-PR where the home page is completely re-worked. Is currently a fork of @melissahenderson's working branch and will be constantly rebased as that branch is updated.
Plans change. ¯\_(ツ)_/¯

Potential new chronology of events might be:
1. Launch of WM alpha extension
2. Add docs pages related to alpha, i.e. how to get set up with testnet, screenshots of how to configure extension (potentially in conjunction with home page update)
3. Update home page (this PR)
4. WM beta extension is available
5. mh branch gets published

For now, just send good thoughts.

Okay, we've changed plans yet again. This PR has been open for way too long, some people's infants have probably started walking by now.
The long and short of it is, since @raducristianpopa has added 2 pages with the new design already, it highlighted the fact that the new design is ready and has been ready for months now. There is no reason to not roll it out. Therefore, we are separating the content rewrite from the redesign.

Copy link

netlify bot commented Mar 15, 2024

Deploy Preview for webmonetization-preview ready!

Name Link
🔨 Latest commit 8ea8494
🔍 Latest deploy log https://app.netlify.com/sites/webmonetization-preview/deploys/66c46f4f1b7610000824cbc8
😎 Deploy Preview https://deploy-preview-445--webmonetization-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@huijing huijing force-pushed the chj/444/home-page-revamp branch 2 times, most recently from fd3c3a9 to 96a5c5d Compare March 19, 2024 08:13
@huijing huijing force-pushed the chj/444/home-page-revamp branch from d01e8f1 to 45898b3 Compare April 1, 2024 04:47
@@ -0,0 +1,17 @@
---
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huijing huijing force-pushed the chj/444/home-page-revamp branch 3 times, most recently from 9c30cdf to 6e0358b Compare April 8, 2024 01:51
@huijing huijing force-pushed the chj/444/home-page-revamp branch 3 times, most recently from ca75c70 to 5c7ef33 Compare April 23, 2024 09:42
@huijing huijing force-pushed the chj/444/home-page-revamp branch from 76484a0 to 07dbdc6 Compare May 9, 2024 09:32
@huijing huijing force-pushed the chj/444/home-page-revamp branch from df0f45b to 6dc82f1 Compare July 30, 2024 15:01
@huijing huijing force-pushed the chj/444/home-page-revamp branch from 6dc82f1 to 36f096a Compare August 19, 2024 09:03
@huijing huijing changed the title feat: home page redesign and content update feat: visual redesign and removal of obsolete content Aug 19, 2024
@@ -1,5 +1,5 @@
---
const { tools } = Astro.props;
const { plugins } = Astro.props;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed this to plugins because Arpi's tools are coming soon

@@ -48,7 +48,7 @@ export default function LinkTagGenerator() {
}}
/>
<button
className={styles.btn}
className='btn'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved btn styles into shared styles instead

@@ -60,9 +60,9 @@ export default function LinkTagGenerator() {
</button>
</div>
{invalidUrl ? (
<span className={styles.error}>
<p className='error'>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this

@@ -18,24 +18,3 @@
border: 1px solid var(--sl-color-gray-2);
padding: var(--space-2xs);
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to webm.css since it's shared

@@ -10,15 +10,15 @@ const compatData = json.api
<td></td>
<th class="desktop" colspan='6' title='desktop'>
<img
src={`/img/icon-desktop.svg`}
src={`/img/components/browsercompat/icon-desktop.svg`}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file is path updates because I reorganised the img folder

@@ -0,0 +1,19 @@
---
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used in the "new" home page that you can see at /index-beta

@@ -0,0 +1,23 @@
---
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also used for "new" home page at /index-beta

@@ -21,16 +21,13 @@ export function ImportView() {
setError('')
}}
/>
<p className={styles.error}>{error}</p>
<p className='error'>{error}</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shared styles can be found in webm.css

@@ -55,22 +55,6 @@
margin-block-end: var(--space-m);
}

.btn {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styles moved to webm.css

@@ -6,4 +6,4 @@ tableOfContents: false
import Libraries from '/src/components/docs/Libraries.astro'
import data from '/src/data/home.json'

<Libraries tools={data.tools} />
<Libraries plugins={data.plugins} />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON key renamed from tools to plugins

@@ -1,107 +1,106 @@
{
"browsers": [],
"providers": [],
"search": [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworked this JSON data file to remove the obsolete bits

@@ -10,6 +10,9 @@ changeLanguage("en");

const title = t("site.title");
const description = t("site.description");
const pluginsList = data.plugins.filter(function(plugin){
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point displaying all the old ones. I've added text to send people to the full list if they want to help with the updating

Copy link
Collaborator

@raducristianpopa raducristianpopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Can we remove the footer from the playground?
  • The WM logo that was present in the playground is now missing. It is only displayed as text. If this was intentional - I am okay with this approach.

The welcome screen looks good! A few comments for the playground.

</div>
<Base title={title} description={description}>
<section class="section">
<div class="contentWrapperMd">
Copy link
Collaborator

@raducristianpopa raducristianpopa Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to utilize all the available width. Can we remove the contentWrapperMd or update so it doesn't have a max width and add an inline padding of 2rem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -54,113 +24,42 @@ changeLanguage('en')
required
/>
</div>
<button class='full-width' type='submit' disabled>
<button class='btn full-width' type='submit' disabled>
Copy link
Collaborator

@raducristianpopa raducristianpopa Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initial button had a padding of 0.75rem and the font size was higher as well. The previous one was more prominent and I think we were using the default font size for the button.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've bumped the font size back up. the previous button styles used the smaller text, but your point is good, buttons should be prominent.

margin-block: 0.5rem;
padding-block-start: 0.5rem;
padding-inline-start: 0.5rem;
margin-block: var(--space-2xs);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text in the ul is significantly higher on a desktop screen size. I feel like we can make it a bit smaller. This is probably coming from the applied styles to main.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've tried to make it smaller, i think it kinda matches the current version now

@JoblersTune
Copy link
Collaborator

@huijing going through the new site I found this in src/components/pages/PrCta.astro

---
const { label } = Astro.props;
---
<div class="cta">
  <img class="iconMerge" src="/img/icon-merge.svg" alt="" />
  <p>
    Do you know another {label}?{" "}
    <a
      href="https://github.com/WICG/webmonetization/edit/main/docusaurus.config.js"
      target="_blank"
      rel="noreferrer noopener"
    >
      Make a PR
    </a>
  </p>
</div>

Shouldn't the link be: https://github.com/WICG/webmonetization/pulls

Perhaps we can just as well fix that here too.

@JoblersTune
Copy link
Collaborator

You mentioned fixing #460 but I still see
image

@JoblersTune
Copy link
Collaborator

Also just wondering what happened to

  1. Linking the spec?
  2. Mentioning "Web Monetization Enabled Search Engines"

{
"name": "Fynbos",
"image": "logo-wallet-fynbos.svg",
"link": "https://fynbos.app/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"link": "https://fynbos.app/"
"link": "https://wallet.fynbos.app/wallet"

You're linking to their investment page not the wallet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing.

@@ -13,18 +13,23 @@ const description = t("site.description");
<div class="contentWrapperMd">
<h1 class="heading2">Probabilistic Revshare Generator</h1>
<p>Probabilistic revenue sharing (revshare) is one way to share a portion of a web monetized page’s earnings between multiple payment pointers.</p>
<p>Use this tool to define a list of payment pointers and their weights. Then, add the generated monetization <code>link</code> element to your site. The <code>link</code> will contain a unique URL hosted on <code>https://webmonetization.org/api/revshare/pay/</code>. If you'd prefer to not use a hosted URL, you can set up revshare by <a href="/docs/guides/set-up-probabilistic-revenue-sharing" target="_blank">adding a script to your site</a>.</p>
<p>Use this tool to define a list of payment pointers and their weights. Then, add the generated monetization <code>link</code> element to your site. The <code>link</code> will contain a unique URL hosted on <code>https://webmonetization.org/api/revshare/pay/</code>. If you'd prefer to not use a hosted URL, you can set up revshare by <a href="/docs/resources/set-up-probabilistic-revenue-sharing" target="_blank">adding a script to your site</a>.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely we need to still move these files if we want the new links to work? They're not working for me, but the files are still in the guides folder.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing

@melissahenderson
Copy link
Collaborator

Re "Web Monetization Enabled Search Engines": Mojeek's site appears to only have the meta tag, not the link tag. So I'm not sure we have any WM-enabled search engines at the moment.

Copy link
Collaborator

@raducristianpopa raducristianpopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Playground and welcome screen looks good!

@JoblersTune
Copy link
Collaborator

I realise this is also kind of out of scope of this PR but I'm also wondering if we have the correct link here?
<p> Web Monetization is being proposed as a W3C standard at <a href="https://github.com/WICG/webmonetization" rel="noreferrer noopener" target="_blank" > the Web Platform Incubator Community Group</a>. </p>

Shouldn't it rather be https://wicg.io/?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find where this is used. Can you help me?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u're right. it's not used.

</div>
</section>

<section class="section">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can have the LinkCards stack vertically on smaller screens?

And can we add a aria-hidden="true" to the svgs in the cards?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

src/pages/index.astro Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following @melissahenderson comment, perhaps we should remove the "Web Monetization Enabled Search Engines". Sorry for duplicating work.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here to remove the "Web Monetization Enabled Search Engines" section and also the Mojeek logo then.

@huijing huijing force-pushed the chj/444/home-page-revamp branch from 9357701 to 8c90c6d Compare August 20, 2024 10:12
@huijing huijing merged commit 8e3f01f into main Aug 20, 2024
6 checks passed
@huijing huijing deleted the chj/444/home-page-revamp branch August 20, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update visual design of webmonetization.org
4 participants