Skip to content

Commit

Permalink
Merge pull request #39 from effectai/nuxt3
Browse files Browse the repository at this point in the history
New website
  • Loading branch information
jeisses authored Mar 17, 2024
2 parents 1d1da27 + 7f6def9 commit 0ac52ef
Show file tree
Hide file tree
Showing 401 changed files with 23,413 additions and 24,617 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FORCE_CONTRACT=force.efx
EFX_TOKEN_CONTRACT=efx.token
FEEPOOL_CONTRACT=feepool.efx
DAO_PROPOSAL_CONTRACT=dao.proposal
STATISTICS_CACHE_TIME_MS=600000
EOS_RPC_URL=https://eos.greymass.com
6 changes: 6 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FORCE_CONTRACT=force.efx
EFX_TOKEN_CONTRACT=efx.token
FEEPOOL_CONTRACT=feepool.efx
DAO_PROPOSAL_CONTRACT=daoproposals
STATISTICS_CACHE_TIME_MS=600000
EOS_RPC_URL=https://eos.greymass.com
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '12.x'
node-version: '18.x'

- name: Cache dependencies
uses: actions/[email protected]
Expand All @@ -24,8 +24,8 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run generate
- run: yarn
- run: yarn generate

- name: deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ sw.*

# Vim swap files
*.swp

.output
.unlighthouse
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ WORKDIR /app

# Install app dependencies
COPY package*.json ./

# Install dependencies
RUN npm ci

# Bundle app source
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Effect AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
46 changes: 22 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
# [Effect Network Website](https://effect.network)

This repo contains the source code for the Effect Network website. The website is built using [Nuxt.js](https://nuxtjs.org/).
This repo contains the source code for the Effect Network website. Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Development
## Setup

The node version needed for this project is **V12.X.Y**.
[NVM](https://github.com/nvm-sh/nvm) can be used to set the correct Node version.
A `.nvmrc` file is included in the project to make this easier.
Just run the following command in the root of the project to set the correct Node version:
Make sure to install the dependencies:

```bash
nvm use
```
# npm
npm install

Docker is also provided to run the project locally. To run the project with Docker, run the following command in the root of the project:
# pnpm
pnpm install

```bash
docker-compose up
# yarn
yarn install

# bun
bun install
```

The website will be available at [http://localhost:3000](http://localhost:3000).
## Development Server

## Build Setup
Start the development server on `http://localhost:3000`:

```bash
# install dependencies
$ npm install
# npm
npm run dev

# serve with hot reload at localhost:3000
$ npm run dev
# pnpm
pnpm run dev

# build for production and launch server
$ npm run build
$ npm run start
# yarn
yarn dev

# generate static project
$ npm run generate
# bun
bun run dev
```

For a detailed explanation of how things work, check out [Nuxt.js docs](https://nuxtjs.org).
1 change: 1 addition & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default defineAppConfig({});
51 changes: 51 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>

<script setup lang="ts">
onMounted(() => {
const nuxtApp = useNuxtApp();
useNuxtApp().$aos().init({
once: true,
});
nuxtApp.hook("page:finish", () => {
window.scrollTo(0, 0);
});
});
const description =
"Effect AI is the data network for training next-gen transparent AI models. Join the workforce by collecting and enriching datasets and get paid instantly.";
useSeoMeta({
title: "Effect AI",
ogTitle: "Effect AI",
twitterTitle: "Effect AI",
ogDescription: description,
twitterDescription: description,
description,
ogImage: "https://effect.ai/logo.png",
twitterImage: "https://effect.ai/logo.png",
ogUrl: "https://effect.ai",
ogSiteName: "Effect AI",
ogType: "website",
twitterCard: "summary",
});
useHead({
htmlAttrs: {
lang: "en",
},
link: [
{
rel: "icon",
type: "image/png",
href: "/favicon.png",
},
],
});
</script>
3 changes: 3 additions & 0 deletions assets/css/prism.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed assets/img/DAO-screen-2.png
Binary file not shown.
Binary file removed assets/img/DAO-screen.png
Binary file not shown.
Binary file removed assets/img/ambassadors/andre.jpeg
Binary file not shown.
Binary file removed assets/img/ambassadors/bree.png
Binary file not shown.
Binary file removed assets/img/ambassadors/ian.png
Binary file not shown.
Binary file removed assets/img/ambassadors/ish.png
Binary file not shown.
Binary file removed assets/img/ambassadors/jehudah.jpg
Binary file not shown.
Binary file removed assets/img/ambassadors/konstantin.png
Binary file not shown.
Binary file removed assets/img/ambassadors/larry.png
Binary file not shown.
Binary file removed assets/img/ambassadors/maksim.png
Binary file not shown.
Binary file removed assets/img/ambassadors/marc.png
Binary file not shown.
Binary file removed assets/img/ambassadors/melicio.png
Binary file not shown.
Binary file removed assets/img/ambassadors/mustafa.jpeg
Binary file not shown.
Binary file removed assets/img/ambassadors/rochelle.png
Binary file not shown.
Binary file removed assets/img/ambassadors/scott.png
Binary file not shown.
Binary file removed assets/img/ambassadors/stepan.png
Binary file not shown.
Binary file removed assets/img/ambassadors/wisse.jpeg
Binary file not shown.
Binary file removed assets/img/asendia_infograph.png
Binary file not shown.
Loading

0 comments on commit 0ac52ef

Please sign in to comment.