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

Bring minimal viable website to life #394

Merged
merged 13 commits into from
May 11, 2021

Conversation

cburgdorf
Copy link
Collaborator

@cburgdorf cburgdorf commented May 7, 2021

What was wrong?

We've received an amazing website draft from @PascalPrecht that we now need to integrate with docs, fill with actual content and just iterate on to reach a minimal viable version that can go live.

Well...strictly speaking it is already live at http://fe.ethereum.org as I'm just treating that as my staging ground for now (we don't promote that URL anywhere yet).

How was it fixed?

  • Created a website directory in the root that hosts the html and logos
    • The logos are actually duplicated from the "logos" directory but as far as git bloat is concerned that isn't a problem since git deduplicates everything on a level of binary blobs
  • Turned the existing docs sites and spec into an mdBook
  • Migrated the deployWebsite.sh into a few new make tasks
    • make build-website -> Build the website, docs, api-docs into target/website
    • make serve-website -> Build and serve on localhost:8000
    • make deploy-website -> Deploy to live site
    • It's rudimentary but gets the job done for now
  • Code of Conduct
  • Created a Quickstart stub
  • Came up with actual texts for the various design elements and linked to places that make sense

@cburgdorf cburgdorf changed the title Bring minimal viable website to live Bring minimal viable website to life May 7, 2021
@codecov-commenter
Copy link

codecov-commenter commented May 7, 2021

Codecov Report

Merging #394 (96f0431) into master (ae5c2a8) will not change coverage.
The diff coverage is n/a.

❗ Current head 96f0431 differs from pull request most recent head 5f505ef. Consider uploading reports for the commit 5f505ef to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #394   +/-   ##
=======================================
  Coverage   86.06%   86.06%           
=======================================
  Files          67       67           
  Lines        4004     4004           
=======================================
  Hits         3446     3446           
  Misses        558      558           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae5c2a8...5f505ef. Read the comment docs.

@cburgdorf cburgdorf marked this pull request as ready for review May 10, 2021 15:39
@cburgdorf cburgdorf requested a review from g-r-a-n-t May 10, 2021 15:39
@cburgdorf
Copy link
Collaborator Author

cburgdorf commented May 10, 2021

@g-r-a-n-t @sbillig This is ready for review. It's not entirely finished yet. E.g. the Quickstart doesn't have any actual content yet but I created a stub site for it. I plan to spend some more time on that. I actually want to write a proper tutorial that even deploys some code to the Görli network. But I think there's enough in this PR to get it in and then keep iterating. Everything can be viewed live on https://fe.ethereum.org already

23

</div>
<code class="flex-auto relative block text-white pt-4 pb-4 px-4 overflow-auto">contract Ownable:
Copy link
Member

@g-r-a-n-t g-r-a-n-t May 10, 2021

Choose a reason for hiding this comment

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

I think we should use the guest book demo here, since ownable is used as an inherited contract.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah good point. Eventually it would be nice to demo something that uses the new string<100> syntax when it is ready. I'll use the guest book for now.

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 put in some comments and syntax highlighting (Python for now) because the example is shorter and I needed it to consume a bit more space to fit in nicely

image

<img class="h-52 lg:h-72 lg:ml-8 xl:ml-0 hidden sm:block" src="fe-logo.svg" alt="Fe Programming language">
<div class="sm:mt-14 md:ml-16 md:mt-0 max-w-3xl lg:max-w-2xl xl:max-w-3xl xl:-ml-4">
<h2 class="text-5xl sm:text-6xl xl:text-6xl leading-none font-semibold tracking-tight">The <span class="text-gray-100">next generation</span><br> smart contract language for Ethereum</h2>
<p class="text-lg sm:text-2xl text-gray-700 leading-6 sm:leading-8 mt-4">Create <span class="text-gray-900 font-semibold">decentralized applications</span> in a powerful, future-proof and <span class="text-gray-900 font-semibold">statically typed</span> language that is very <span class="text-gray-900 font-semibold">easy to learn</span>.<p>
Copy link
Member

@g-r-a-n-t g-r-a-n-t May 10, 2021

Choose a reason for hiding this comment

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

IMO the text-gray-700 and text-gray-900 colors are a bit too close. Also, I think we want 900 to pop a bit more, so maybe that one should be the lighter shade.

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 increased the contrast between them but switching them didn't look good to me. Probably because then we would not have the contrast to the headline above. But if truly suck at design work so if there is potential for optimizations I would ask Pascal post-merge to give it a make over.

Copy link
Member

Choose a reason for hiding this comment

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

looks good 👍

@sbillig
Copy link
Collaborator

sbillig commented May 10, 2021

Looks great! I think we should add a note that fe is alpha software and not ready for production use, near the download button. Or a flashing 'under construction' gif.

@g-r-a-n-t
Copy link
Member

g-r-a-n-t commented May 11, 2021

Very exciting. I just have a few suggestions for the page head.

Create decentralized applications in a powerful, future-proof and statically typed language that is very easy to learn.

I think it would read better if we got rid of "very". It makes things more concise, which I think is important here.

The syntax of Fe is inspired by Python and Rust. It is easy to learn, even for those who have never dealt with EVM before. Fe was developed with audits in mind making it very easy to write safe code.

Suggestion: The syntax of Fe is inspired by Python and Rust. It is easy to learn, even for those who have never dealt with the EVM before. Fe is designed to be safe and equipped with the tooling needed to validate contracts.

Fe restricts dynamic program behavior making the language more reliable in return. Features such as generic types over constant values improve decidability without compromising expressiveness.

Suggestion: Fe seeks to restrict dynamic behavior without limiting expressiveness. Features like constant generics let you write clean code without sacrificing compile-time guarantees.

@cburgdorf
Copy link
Collaborator Author

add a note that fe is alpha software and not ready for production use, near the download button

I added a note. Might need a follow up design tweaking.

image

Also, the Download button currently links to the release page from where the user will have to navigation through more information to find the actual binary. We might want to read out the current Fe version and then directly link to the binary. But that will need to go with an OS detection to link to the correct binary (or show multiple buttons "Download for Mac", "Download for Linux" etc.). But that's something we can tackle later.

@cburgdorf
Copy link
Collaborator Author

@g-r-a-n-t Thanks for the suggestions. I took them all 👍

So, are we good to merge this? I'll keep working on Quickstart, Tutorial and other guides for a bit but I can ping Pascal post-merge to check my changes and maybe tweak them design wise.

@g-r-a-n-t
Copy link
Member

LGTM

@g-r-a-n-t g-r-a-n-t self-requested a review May 11, 2021 14:15
@cburgdorf cburgdorf merged commit 442e0b7 into ethereum:master May 11, 2021
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.

4 participants