generated from zama-ai/fhevm-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d46a63e
commit 64c4a7c
Showing
11 changed files
with
119 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ['main'] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload dist repository | ||
path: './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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,45 @@ | ||
import { BrowserProvider } from 'ethers'; | ||
|
||
import { Back, Subtitle, Title } from '../../../common-ui'; | ||
|
||
type RulesProps = { | ||
account: string; | ||
provider: BrowserProvider; | ||
}; | ||
|
||
export const Rules = (_: RulesProps) => { | ||
return ( | ||
<div> | ||
<Back /> | ||
<Title>Story</Title> | ||
<p> | ||
In the shadows of the digital realm, a formidable hacker known as Natalya Encryptova has assembled a team called | ||
the Red Cipher to concoct a nefarious plan and unleash chaos upon the world. Natalya has infiltrated the core | ||
servers of a highly secure data center, planting a malevolent program that will encrypt all available data and | ||
demand a ransom for its release. As the countdown to encryption begins, a group of elite hackers, led by | ||
CrunchCracker and known as the Decryptors, races against time to prevent the impending catastrophe. | ||
</p> | ||
<p> | ||
The game begins with players secretly discovering whether they belong to the Decryptors or the Red Cipher, and | ||
they must navigate the intricate web of alliances and deceptions within the hacker community. As the turns | ||
unfold, players choose a vulnerability in the encryption algorithm to exploit, attempting to detonate or defuse | ||
the bomb according to which team you belong. The Decryptors wins if they defuse the bomb, while the Red Cipher | ||
wins if they detonate the bomb. | ||
</p> | ||
<Title>Rules</Title> | ||
<Subtitle>Role</Subtitle> | ||
<p> | ||
The Decryptors members are represented by the Role cards with a blue background. The objective of these members | ||
is defusing the bomb. | ||
</p> | ||
<p> | ||
Members of the Red Cipher are represented by the role cards with a red background. The purpose of these members | ||
is to detonate the bomb. | ||
</p> | ||
<Subtitle>Card</Subtitle> | ||
<p>Terminal: no effect</p> | ||
<p>Vulnerability: founding a vulnerability brings you close to victory if you are part of the Decryptors.</p> | ||
<p>Bomb: triggering the bomb encrypts the digital world and hands victory to the Red Cipher</p> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
export * from './Rules'; |
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 +1,2 @@ | ||
export * from './components/Home'; | ||
export * from './components/Rules'; |