Skip to content

Commit

Permalink
Primeira versão do site
Browse files Browse the repository at this point in the history
  • Loading branch information
Alynva committed Sep 20, 2024
1 parent 730a3c1 commit 7bb5e2f
Show file tree
Hide file tree
Showing 21 changed files with 6,898 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v3
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# andifes-isf.github.io
Páginas complementares do IsF

Este projeto utiliza o [**Astro**](https://astro.build/), um framework de desenvolvimento web escolhido pelo seu bom suporte a sites estáticos. Com o Astro, é possível criar páginas de forma eficiente e escalável, utilizando componentes modernos de diferentes frameworks como React, Vue, Svelte e outros. O objetivo principal é construir um site estático otimizado para desempenho e fácil de manter.

## Estrutura do Projeto

Dentro do projeto, você verá as seguintes pastas e arquivos:

```text
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```

O Astro procura por arquivos `.astro` ou `.md` no diretório `src/pages/`. Cada página é exposta como uma rota baseada no nome do arquivo.

Não há nada de especial no `src/components/`, mas é onde gelramente coloca-se quaisquer componentes Astro/React/Vue/Svelte/Preact.

Quaisquer arquivos estáticos, como imagens, podem ser colocados no diretório `public/`.

## Comandos

Todos os comandos são executados a partir da raiz do projeto, em um terminal:

| Comando | Ação |
| :------------------------ | :------------------------------------------------------------- |
| `npm install` | Instala as dependências |
| `npm run dev` | Inicia o servidor de desenvolvimento local em `localhost:4321` |
| `npm run build` | Constrói o site de produção para `./dist/` |
| `npm run preview` | Visualiza a build localmente, antes de implantar |
| `npm run astro ...` | Executa comandos da CLI como `astro add`, `astro check` |
| `npm run astro -- --help` | Obtém ajuda para usar a CLI do Astro |
7 changes: 7 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @ts-check
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
site: 'https://andifes-isf.github.io',
});
Loading

0 comments on commit 7bb5e2f

Please sign in to comment.