Giter Site home page Giter Site logo

website's Introduction

MetaMask Logo

Built With:

  • React
  • Gatsby
  • ❀️ from ConsenSys Digital Experiences Circle

πŸš€ Quick start

Ask @davidnguyen88 or @jlazoff for config files

  1. Start it up

    git clone [email protected]:MetaMask/website.git
    yarn
    yarn develop
  2. View site

    MetaMask is now running at http://localhost:8000!

    There is also a GraphQL API at http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

What's where?

Gatsby file structure documentation

.
β”œβ”€β”€ public/
β”œβ”€β”€ src/
    β”œβ”€β”€ components/
    β”œβ”€β”€ fonts/
    β”œβ”€β”€ fragments/
      β”œβ”€β”€GraphQL_Documentation.md
    β”œβ”€β”€ images/
      β”œβ”€β”€ icons/
      β”œβ”€β”€ social-icons/
      β”œβ”€β”€ metamask-logo.svg
      β”œβ”€β”€ ...
    β”œβ”€β”€ lib/
      β”œβ”€β”€ theme.js
    β”œβ”€β”€ pages/
      β”œβ”€β”€ index.js
      β”œβ”€β”€ about.js
      β”œβ”€β”€ ...
    β”œβ”€β”€ html.js
β”œβ”€β”€ gatsby-config.js
β”œβ”€β”€ .env
β”œβ”€β”€ GraphQL_Query_Documentation.md
β”œβ”€β”€ package.json
└── README.md

Key Files

gatsby-config.js

The main configuration file for a Gatsby site. This is where you can specify information about your site (metadata), site title ,and description, which Gatsby plugins we are using, etc. (Check out the config docs for more detail).

src/fragments/ GraphQL query fragments that create standard data requests across components

src/lib/theme.js Contains styling constants for font sizes and weights, device sizes for media queries, shadows, and colors.

public/

Automatically generated output of gatsby build process for production.

src/pages

Files within this directory are turned into routes with the name of the file (e.g. about.js becomes /about). Only files within /pages are allowed to make dynamic GraphQL queries which cascade data down to components.

src/html.js Entry file used by Gatsby for all rendered pages html template

website's People

Contributors

baptistebriel avatar brendankirby avatar cjeria avatar danfinlay avatar davidnguyen88 avatar dependabot[bot] avatar eriknson avatar iot-defcon avatar janluna avatar jlazoff avatar jonnysmillie avatar kevin-chassagne avatar kumavis avatar montoya avatar paulbouisset avatar sonhhyns avatar tannn-younet avatar viphan007 avatar whymarrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

website's Issues

Update Team Page

Add Brad Decker, Andre, and Jake. Remove members no longer on the team.

Create an "uninstall" landing page

Webteam Ticket: https://github.com/ConsenSys/dx-team/issues/1339

Desc:

We need to set up a URL that the MetaMask Extension can call when a user removes/uninstalls the extension. If the user has previously opted-in to metrics, we also want to ping Segment of an App Uninstalled event.

There are two parts.

  1. Create new page. Some ideas include:
  1. Add code snippet below to <HEAD> of this page only.
  2. Implement page design (for v1 we will be using the Figma designs here for "without survey". Survey may be a v2).
<script>
const DEV_WRITE_KEY = β€œPZkSwsTBxW1BrbyIYEUjFBEumGvTyjcz”, PROD_WRITE_KEY = β€œMHae0tTVRqyHDim9qQ9ablSZpvm3Tvzc”;
const params = new Proxy(new URLSearchParams(window.location.search), { get: (searchParams, prop) => searchParams.get(prop), });
const WRITE_KEY = (params.env == β€˜prod’) ? PROD_WRITE_KEY : DEV_WRITE_KEY;

!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey=WRITE_KEY;analytics.SNIPPET_VERSION="4.15.2";
  // only ping Segment if an id exists
  if (params.id) {
    analytics.load(WRITE_KEY);

    // identify user by anonId
    analytics.identify(params.id);
    analytics.track('App Uninstalled', {
      app_version: params.av
    });
    // clear session cookies. meant to be one-time event to close loop
    analytics.reset();
  }
}}();
</script>

Add a Swiss financial intermediary to enable swiss francs payments. πŸ‡¨πŸ‡­

Current view in Metamask Portfolio Buy and Sell:

Bildschirmfoto 2023-09-11 um 18 53 57

For users from Switzerland only EUR payments are enabled. No payments in swiss francs.

DFX.swiss is a Swiss company and offers exactly that. Same as Moonpay, Banxa and Transak but with Swiss Francs. Based in Switzerland, regulated in Switzerland, bank account in Switzerland and of course Swiss currency. πŸ‡¨πŸ‡­

What needs to be done to make it possible to integrate DFX?

I apologize if I have opened this issue here in an inappropriate place. I have not found a better place. πŸ™πŸ™ˆ

Fix two broken links on Flask webpage

I have fixed the following two broken links on the /flask/ page:

  1. Try out a live snap with MetaMask Flask here
  2. Get involved with our Snaps developer community and user community on Discord (I removed "and user community" and changed the one link for "developer community")

These changes have been made in the staging section. Please review them, copy over to production and publish.

Header bar over laps card on Uninstall page

Description

The header overlaps the card on the uninstall page in desktop on scroll. Low priority

Screenshots/screencast

Screen Shot 2022-10-07 at 9 14 20 AM

overlap.on.scroll.mov

Suggested solution

Add custom css to header to change position sticky to standard flow layout

[Metamask] Missing a security audit on our audits page

Internal Ticket: https://github.com/ConsenSys/dx-team/issues/1525

Our security page is missing one of the audits that was done in the past:

https://leastauthority.com/blog/audits/metamask_plugin_system_lavamoat_audit/

See https://metamask.io/security/

I am attaching the PDF of the audit report. Please add it to the list like so:

  • Cure53 - August 2017 - Report
  • Least Authority - April 2019 - Report
  • Least Authority - March 2020 - Report
  • Cure53 - March 2023 - Report

Change navbar CTA and fix incorrect hero CTA on SDK page

Hi, I have made two changes on the staging page of the website for /sdk/:

  1. Changed the CTA in the navbar
  2. Changed the URL for the CTA in the hero

I also changed the SDK page to use the dark color theme (so the button in the navbar is black instead of blue).

Please check these changes in the staging area and if there are no issues, push them to master and publish.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.