-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: As a user, I want to have a landing page
- Loading branch information
Showing
20 changed files
with
796 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Deploy website | ||
|
||
on: | ||
push: | ||
branches: ["dev", "feat/as-a-user-i-want-to-have-a-landing-page"] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: explorer | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: "./explorer/dist" | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,8 @@ subgraph.yaml | |
# SDK | ||
lib | ||
|
||
# Explorer | ||
dist | ||
|
||
# Misc | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#root { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
footer { | ||
position: fixed; | ||
left: 0; | ||
bottom: 0; | ||
width: 100%; | ||
height: 10vh; | ||
min-height: 150px; | ||
margin: 20px 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.social-icon, | ||
.menu { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 10px 0; | ||
flex-wrap: wrap; | ||
padding: 0; | ||
} | ||
|
||
.social-icon__item, | ||
.menu__item { | ||
list-style: none; | ||
} | ||
|
||
.social-icon__link { | ||
font-size: 2rem; | ||
color: #fff; | ||
margin: 0 10px; | ||
display: inline-block; | ||
transition: 0.5s; | ||
} | ||
|
||
.social-icon__link:hover { | ||
transform: translateY(-10px); | ||
} | ||
|
||
.menu__link { | ||
font-size: 1.2rem; | ||
color: #fff; | ||
margin: 0 10px; | ||
display: inline-block; | ||
transition: 0.5s; | ||
text-decoration: none; | ||
opacity: 0.75; | ||
font-weight: 300; | ||
} | ||
|
||
.menu__link:hover { | ||
opacity: 1; | ||
} | ||
|
||
footer &.bottom { | ||
color: #fff; | ||
margin: 15px 0 10px 0; | ||
font-size: 1rem; | ||
font-weight: 300; | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import "./Footer.css"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faDiscord, faTelegram } from "@fortawesome/free-brands-svg-icons"; | ||
import { Link } from "react-router-dom"; | ||
import { faLeaf } from "@fortawesome/free-solid-svg-icons"; | ||
|
||
function Navbar() { | ||
|
||
return ( | ||
<> | ||
<ul className="social-icon"> | ||
<li className="social-icon__item"> | ||
<Link className="social-icon__link" to={"https://discord.gg/Sq4EmYdBEk"} | ||
target={"_blank"}> | ||
<FontAwesomeIcon icon={faDiscord} /> | ||
</Link> | ||
</li> | ||
|
||
<li className="social-icon__item"> | ||
<Link className="social-icon__link" to={"https://t.me/+C94-EJOoVjVhM2U0"} | ||
target={"_blank"}> | ||
<FontAwesomeIcon icon={faTelegram} /> | ||
</Link> | ||
</li> | ||
|
||
{/* | ||
<li className="social-icon__item"> | ||
<Link className="social-icon__link" to={"#"}> | ||
<FontAwesomeIcon icon={faXTwitter} /> | ||
</Link> | ||
</li> | ||
*/} | ||
|
||
<li className="social-icon__item"> | ||
<Link className="social-icon__link" to={"https://hey.xyz/u/verax"} | ||
target={"_blank"}> | ||
<FontAwesomeIcon icon={faLeaf} /> | ||
</Link> | ||
</li> | ||
</ul> | ||
|
||
<ul className="menu"> | ||
<li className="menu__item"> | ||
<Link className={"menu__link"} to={"/"}>Homepage</Link> | ||
</li> | ||
<li className="menu__item"> | ||
<Link className={"menu__link"} to={"https://docs.ver.ax"} | ||
target={"_blank"}>Documentation</Link> | ||
</li> | ||
<li className="menu__item"> | ||
<Link className={"menu__link"} to={"https://community.ver.ax"} | ||
target={"_blank"}>Discourse</Link> | ||
</li> | ||
</ul> | ||
|
||
<div className={"bottom"}> | ||
<p>Made with ❤️ by Verax</p> | ||
<p>©2023 Verax | All Rights Reserved</p> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.navbar { | ||
& ul { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
overflow: hidden; | ||
background-color: #333; | ||
} | ||
|
||
& li { | ||
float: left; | ||
} | ||
|
||
& li a { | ||
display: block; | ||
color: white; | ||
text-align: center; | ||
padding: 14px 16px; | ||
text-decoration: none; | ||
} | ||
|
||
& li a:hover { | ||
background-color: #111; | ||
} | ||
} | ||
|
Oops, something went wrong.