Source for the landing page
Test page: https://metasphere-xyz.github.io/landingpage/
There are CSS files in the css
directory.
css/common.css
defines common styles.css/main.css
defines styles used inindex.html
.css/research-explorer.css
: defines styles used inresearch-explorer.html
.
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.
src/js/main.js
attaches a Vue instance toindex.html
.src/js/research-explorer.js
attaches a Vue instance toresearch-explorer.html
.src/js/components/project-list-mixin.js
implements behavior of a project list inindex.html
.src/js/components/section-navigator-mixin.js
implements behavior of a section navigator inresearch-explorer.html
.
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.
You need the following software installed,
- Node.js (tested with v12.14.0)
To compile scripts for the landingpage, please take the following steps,
-
Install dependencies (first time only).
npm ci
-
Run a
build
command.npm run build
-
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.
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