Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juangirini committed Jun 7, 2024
1 parent 867863c commit 6e94e0a
Show file tree
Hide file tree
Showing 15 changed files with 10,064 additions and 140 deletions.
77 changes: 14 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,21 @@
# Getting Started with Create React App
# Ideal Network Website

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Usage

## Available Scripts
1. Install dependencies

In the project directory, you can run:
```bash
yarn
```

### `npm start`
2. Start dev server

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
```bash
yarn start
```

The page will reload when you make changes.\
You may also see any lint errors in the console.
3. Build for production

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
```bash
yarn build
```
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"start": "yarn react-scripts start",
"build": "yarn react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand All @@ -34,5 +34,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"sass": "^1.77.4",
"tailwindcss": "^3.4.4"
}
}
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

43 changes: 27 additions & 16 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
import logo from './logo.svg';
import './App.css';
import Header from "./Header";
import Section from "./Section";
import Footer from "./Footer";
import "./styles/App.sass";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<Header />
<main>
<Section title="Decentralized">
The Ideal Network is a blockchain that uses a novel consensus
mechanism. It produces publicly verifiable secret keys in each block
header.
</Section>
<Section title="Onchain Randomness">
Onchain randomness is refreshed with each new block and can be used in
smart contracts and runtime modules for random number generation.
</Section>
<Section title="Timelock Encryption">
The ETF Network enables timelock encryption, allowing you to
effortlessly send messages into the future and unlock them right from
your browser!
</Section>
<Section title="Programmable Privacy">
Encrypt once, decrypt many. The Ideal network enables programmable,
zero-knowledge data encryption mechanisms using practical witness
encryption.
</Section>
</main>
<Footer />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
const linkElement = screen.getByText(/learn more/i);
expect(linkElement).toBeInTheDocument();
});
50 changes: 50 additions & 0 deletions src/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
function Footer() {
return (
<footer className="bg-gray-800 text-white px-8 py-4">
<div className="container mx-auto grid grid-cols-3 gap-4">
<div>
<h3 className="font-bold mb-2">Docs</h3>
<ul>
<li>
<a href="https://etf.idealabs.network/docs/intro">Tutorial</a>
</li>
</ul>
</div>
<div>
<h3 className="font-bold mb-2">Community</h3>
<ul>
<li>
<a href="https://discord.gg/TheXVBdbbu">Discord</a>
</li>
<li>
<a href="https://matrix.to/#/#ideal-labs:matrix.org">Matrix</a>
</li>
<li>
<a href="https://ideallabs.substack.com/">Substack</a>
</li>
<li>
<a href="https://x.com/Ideallabs0">Twitter</a>
</li>
</ul>
</div>
<div>
<h3 className="font-bold mb-2">More</h3>
<ul>
<li>
<a href="https://medium.com/@ideal_labs">Medium</a>
</li>
<li>
<a href="https://github.com/ideal-lab5">GitHub</a>
</li>
<li>
<a href="https://idealabs.network/">Ideal Labs</a>
</li>
</ul>
</div>
</div>
<p className="text-center mt-4">Copyright &copy; 2024 Ideal Labs, LLC</p>
</footer>
);
}

export default Footer;
24 changes: 24 additions & 0 deletions src/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function Header() {
return (
<header>
<nav>
<ul>
<li>
<a href="/docs">Docs</a>
</li>
<li>
<a href="/blog">Blog</a>
</li>
<li>
<a href="https://github.com/">GitHub</a>
</li>
</ul>
</nav>
<h1>Ideal Network</h1>
<strong>Encryption to the Future</strong>
<a href="https://etf.idealabs.network/docs/intro">Learn more</a>
</header>
);
}

export default Header;
10 changes: 10 additions & 0 deletions src/Section.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function Section({ title, children }) {
return (
<section>
<h2>{title}</h2>
<p>{children}</p>
</section>
);
}

export default Section;
13 changes: 0 additions & 13 deletions src/index.css

This file was deleted.

12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom/client";
import "./styles/main.sass";
import App from "./App";
import reportWebVitals from "./reportWebVitals";

const root = ReactDOM.createRoot(document.getElementById('root'));
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<App />
Expand Down
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

1 change: 1 addition & 0 deletions src/styles/App.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* TODO */
3 changes: 3 additions & 0 deletions src/styles/main.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import "tailwindcss/base"
@import "tailwindcss/components"
@import "tailwindcss/utilities"
10 changes: 10 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};
Loading

0 comments on commit 6e94e0a

Please sign in to comment.