Skip to content

Commit ae00154

Browse files
First commit
0 parents  commit ae00154

10 files changed

Lines changed: 669 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "20"
31+
32+
- name: Install dependencies
33+
run: npm install
34+
35+
- name: Build site
36+
run: npm run build
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v5
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: ./dist
45+
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
node_modules/
3+
package-lock.json

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 HackAmazônia
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# HackAmazônia Website
2+
3+
🌿 Competition focused on the Amazon Rainforest, empowering youth through tech, teamwork, and environmental impact.
4+
5+
## Development
6+
7+
To start developing locally:
8+
9+
1. Install dependencies:
10+
```sh
11+
npm install
12+
```
13+
14+
2. Start the development server:
15+
```sh
16+
npm run dev
17+
```
18+
This will:
19+
- Watch and rebuild Tailwind CSS
20+
- Serve the site at [http://localhost:5173](http://localhost:5173)
21+
22+
## License
23+
24+
The source code is licensed under the [MIT License](LICENSE).
25+
26+
All site content (text, images, etc.) is licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
27+
You are free to share and adapt the content, provided you give appropriate credit.

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "hackamazonia-website",
3+
"description": "🌿 Competition focused on the Amazon Rainforest, empowering youth through tech, teamwork, and environmental impact.",
4+
"homepage": "https://github.com/HackAmazonia/website",
5+
"bugs": {
6+
"url": "https://github.com/HackAmazonia/website/issues"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/HackAmazonia/website.git"
11+
},
12+
"license": "MIT",
13+
"type": "commonjs",
14+
"devDependencies": {
15+
"@tailwindcss/cli": "^4.1.11",
16+
"concurrently": "^9.2.0",
17+
"html-minifier-terser": "^7.2.0",
18+
"http-server": "^14.1.1",
19+
"rimraf": "^6.0.1",
20+
"tailwindcss": "^4.1.11"
21+
},
22+
"scripts": {
23+
"dev": "concurrently -k \"npx @tailwindcss/cli -i src/assets/styles/main.css -o src/assets/styles.css --watch\" \"npx http-server src -p 5173 -c-1\"",
24+
"clean": "rimraf dist",
25+
"copy": "mkdir dist && cp -r src/* dist/",
26+
"build:css": "npx @tailwindcss/cli -i src/assets/styles/main.css -o dist/assets/styles.css --minify",
27+
"minify:html": "html-minifier-terser --input-dir dist --output-dir dist --file-ext html --collapse-whitespace --remove-comments --remove-redundant-attributes --remove-empty-attributes --remove-optional-tags --minify-css true --minify-js true",
28+
"build": "npm run clean && npm run copy && npm run build:css && npm run minify:html",
29+
"serve": "npx http-server dist -p 8000 -c-1"
30+
}
31+
}

src/404.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
8+
<title>Página não encontrada - HackAmazônia</title>
9+
<meta name="description" content="Erro 404 - Página não encontrada no HackAmazônia." />
10+
11+
<meta property="og:title" content="404 - Página não encontrada | HackAmazônia" />
12+
<meta property="og:description" content="A página que você procura não foi encontrada." />
13+
<meta property="og:type" content="website" />
14+
<meta property="og:url" content="https://hackamazonia.org/404.html" />
15+
16+
<meta name="twitter:card" content="summary_large_image" />
17+
18+
<link rel="stylesheet" href="./assets/styles.css" />
19+
<link rel="icon" href="./assets/img/favicon.ico" />
20+
</head>
21+
22+
<body
23+
class="font-sans text-gray-800 dark:text-gray-100 bg-white dark:bg-gray-950 flex flex-col items-center justify-center min-h-screen text-center p-6">
24+
<h1 class="text-4xl md:text-6xl font-bold mb-4">404</h1>
25+
<p class="text-xl md:text-2xl mb-6">Ops! Página não encontrada.</p>
26+
<p class="mb-8">Parece que você seguiu um caminho errado. Que tal voltar para a <a href="/"
27+
class="text-blue-600 dark:text-blue-400 underline">página inicial</a>?</p>
28+
<img src="https://http.cat/404" alt="Erro 404" class="max-w-xs" />
29+
30+
</body>
31+
32+
</html>

src/assets/img/favicon.ico

3.69 KB
Binary file not shown.

0 commit comments

Comments
 (0)