Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Yudi committed Mar 18, 2024
1 parent a19d2f1 commit 87eb98c
Show file tree
Hide file tree
Showing 50 changed files with 1,835 additions and 3,800 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:

- name: Build for production
run: yarn build

- name: Generate license disclaimer
run: yarn licenses generate-disclaimer > build/static/licenses.txt

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -45,12 +48,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Build-artifacts
path: build

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
47 changes: 0 additions & 47 deletions docs/intro.md

This file was deleted.

48 changes: 30 additions & 18 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

import { setDefaultOptions } from 'date-fns';
import { ptBR } from 'date-fns/locale';

setDefaultOptions({ locale: ptBR });

const config: Config = {
title: 'CACiC',
tagline: 'Centro Acadêmico de Ciência da Computação FCT-Unesp',
Expand All @@ -20,6 +25,7 @@ const config: Config = {

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
trailingSlash: false,

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
Expand All @@ -35,34 +41,36 @@ const config: Config = {
{
docs: {
sidebarPath: './sidebars.ts',
path: 'knowledge-base',
routeBasePath: 'kb',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
editUrl: 'https://github.com/cacic-fct/manual-do-calouro/tree/main/',
},
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-14H61HB1MW',
},
} satisfies Preset.Options,
],
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
alt: 'CACiC',
src: 'logo/1024-ionicblue.png',
srcDark: 'logo/1024-ionicblue.png',
},
items: [
{ to: '/link-tree', label: 'Árvore de links', position: 'left' },
{ to: '/links', label: 'Árvore de links', position: 'left' },
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
sidebarId: 'sidebar',
position: 'left',
label: 'Docs',
label: 'Base de conhecimento',
},
],
},
Expand All @@ -78,11 +86,15 @@ const config: Config = {
},
{
label: 'Árvore de links',
to: '/link-tree',
to: '/links',
},
{
label: 'Base de conhecimento',
to: '/kb/intro',
},
{
label: 'Docs',
to: '/docs/intro',
label: 'Política de privacidade',
to: '/legal/privacy-policy',
},
],
},
Expand All @@ -91,20 +103,20 @@ const config: Config = {
items: [
{
label: 'Instagram',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
href: 'https://instagram.com/cacic-fct',
},
{
label: 'Facebook',
href: 'https://discordapp.com/invite/docusaurus',
href: 'https://fb.com/cacic-fct',
},
{
label: 'YouTube',
href: 'https://twitter.com/docusaurus',
href: 'https://youtube.com/@cacicfct',
},

{
label: 'GitHub',
href: 'https://twitter.com/docusaurus',
href: 'https://github.com/cacic-fct',
},

{
Expand All @@ -114,12 +126,12 @@ const config: Config = {
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
plugins: ['./plugins/configure-webpack'],
} satisfies Preset.ThemeConfig,
};

Expand Down
88 changes: 88 additions & 0 deletions knowledge-base/cacic/recursos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Recursos

Recursos gerenciados pelo CACiC.

## Utilitários

### Site do CACiC

Este site.

- [Repositório](https://github.com/cacic-fct/homepage)

### FCT App

Web app para listagem de eventos, gerenciamento de inscrições, coleta de presenças e emissão de certificados.

- [Repositório](https://github.com/cacic-fct/fct-app)

### [Manual do calouro](https://cacic-fct.github.io/manual-do-calouro)

- [Repositório](https://github.com/cacic-fct/manual-do-calouro)

---

## Desenvolvimento

### [Organização do CACiC no GitHub](https://github.com/cacic-fct)

Essa organização contém repositórios de projetos desenvolvidos pelo CACiC.
Os membros são os diretores do CACiC e colaboradores selecionados.

### [Organização FCT-Coders no GitHub](https://github.com/fct-coders)

Essa organização contém os alunos do curso de Ciência da Computação.
Aqui são desenvolvidos os projetos de atividades extracurriculares (minicursos, eventos, etc).

---

## Comunicação

### Lista de e-mails do curso

Contém alunos e professores.
A atualização dessa lista é realizada anualmente, após a matrícula dos calouros.

### Lista de e-mails dos alunos do curso

Contém apenas alunos.
A atualização dessa lista é realizada anualmente, após a matrícula dos calouros.

### [Canal do CACiC no YouTube](https://youtube.com/@cacicfct)

### Servidor do CACiC no Discord

Confira o link de convite na descrição do Grupo Geral da Computação no WhatsApp.

### [Página do CACiC no Instagram](https://instagram.com/cacic-fct)

### [Página do CACiC no Facebook](https://fb.com/cacic-fct)

### Comunidade do curso de Ciência da Computação no WhatsApp

Se você é aluno do curso, solicite o convite para um de seus colegas.

### Grupo da FCT no Facebook

### Grupo do curso de Ciência da Computação no Facebook

---

## Físicos

### Sala do CACiC

Laboratório 5, no Discente 1.
Uso exclusivo dos membros do CACiC mediante autorização prévia.

---

## Legado

Recursos que não existem mais ou que não são mais utilizados.

### Homepage da SECOMPP em hospedagem da FCT

### SYSCOMPP

### Grupo do Restaurante Universitário no Facebook
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { CardActions } from '@mui/material';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import CardMedia from '@mui/material/CardMedia';
import Typography from '@mui/material/Typography';
import Grid from '@mui/material/Unstable_Grid2';
import Button from '@mui/material/Button';

const gridContainer = {
maxWidth: 345,
minWidth: 165,
// Same height for all cards
display: 'flex',
};

const gridItem = {
minHeight: 140,
minWidth: 140,
margin: '1em',
// Same height for all cards
flex: 1,
};

const cardImage = {
minHeight: 140,
objectFit: 'cover',
};

export default function AchievementsCards({
achievementsData,
}: {
achievementsData: Achievements[];
}) {
return (
<Grid container spacing={2}>
{achievementsData.map((achievement, index) => (
<Grid sx={gridContainer} xs={4} key={index}>
<Card sx={gridItem}>
<CardMedia
sx={cardImage}
component="img"
image={
achievement.image
? require(`@site/static/openness/${achievement.image}`)
.default
: require('@site/static/openness/placeholder.webp').default
}
title={achievement.title}
/>
<CardContent>
<Typography gutterBottom variant="h5" component="div">
{achievement.title}
</Typography>
<Typography variant="body2" color="text.secondary">
{achievement.content}
</Typography>
{achievement.url && (
<CardActions>
<Button size="small" href={achievement.url}>
Ver mais
</Button>
</CardActions>
)}
</CardContent>
</Card>
</Grid>
))}
</Grid>
);
}

export interface Achievements {
image?: string;
title: string;
content: string;
url?: string;
}
28 changes: 28 additions & 0 deletions knowledge-base/cacic/transparencia/components/main-accordion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Accordion from '@mui/material/Accordion';
import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import AchievementsCards from '@site/knowledge-base/cacic/transparencia/components/achievements-cards';
import MeetingsAccordion from '@site/knowledge-base/cacic/transparencia/components/meetings-accordion';
import {
achievementsHamilton,
meetingsHamilton,
} from '@site/knowledge-base/cacic/transparencia/data/2021-margaret-hamilton';

export default function MainAccordion() {
return (
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1-content"
id="panel1-header">
Chapa Margaret Hamilton (2021-2023)
</AccordionSummary>
<AccordionDetails>
<MeetingsAccordion meetingsData={meetingsHamilton} />

<AchievementsCards achievementsData={achievementsHamilton} />
</AccordionDetails>
</Accordion>
);
}
Loading

0 comments on commit 87eb98c

Please sign in to comment.