Skip to content

metasphere-xyz/landingpage

Repository files navigation

landingpage

Source for the landing page

Test page: https://metasphere-xyz.github.io/landingpage/

CSS files

There are CSS files in the css directory.

JavaScript files

There are JavaScript files in the js and src directories. Files in the js directory are built from files in the src directory. Please refer to the section Compiling scripts for how to compile scripts.

Here are brief descriptions about files in the src directory.

Compiling scripts

Vue.js is supplementally used to add some dynamic behavior to the landing page. No CSS is defined in JavaScript code since no single component file is used.

Prerequisites

You need the following software installed,

Steps

To compile scripts for the landingpage, please take the following steps,

  1. Install dependencies (first time only).

    npm ci
    
  2. Run a build command.

    npm run build
    
  3. You will find scripts in a js directory.

    • js/main.js: script for the main page.
    • js/research-explorer.js: script for the details page of the research explorer.

Compiling scripts for production

By default, scripts are compiled for development. To compile scripts for production, please run the following command at the step 2 instead.

npm run build -- --mode=production