Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 0c30aca

Browse files
author
Matheus Daniel Cristal Comparotto Gomes
committed
Last commit
1 parent 9172185 commit 0c30aca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+10744
-0
lines changed

App.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { useFonts } from 'expo-font';
2+
import * as SplashScreen from 'expo-splash-screen';
3+
import { useCallback } from 'react';
4+
import 'react-native-gesture-handler';
5+
import { ThemeProvider } from 'styled-components/native';
6+
import Routes from './src/routes';
7+
import theme from './src/stylesheets/theme';
8+
import { AppWrapper } from './AppStyles';
9+
import { UserContextProvider } from './src/context/UserContext';
10+
11+
SplashScreen.preventAutoHideAsync();
12+
13+
export default function App() {
14+
const [fontsLoaded] = useFonts({
15+
'Inter-Black': require('./assets/fonts/Inter/Inter-Black.ttf'),
16+
'Inter-Bold': require('./assets/fonts/Inter/Inter-Bold.ttf'),
17+
'Inter-ExtraBold': require('./assets/fonts/Inter/Inter-ExtraBold.ttf'),
18+
'Inter-ExtraLight': require('./assets/fonts/Inter/Inter-ExtraLight.ttf'),
19+
'Inter-Light': require('./assets/fonts/Inter/Inter-Light.ttf'),
20+
'Inter-Medium': require('./assets/fonts/Inter/Inter-Medium.ttf'),
21+
'Inter-Regular': require('./assets/fonts/Inter/Inter-Regular.ttf'),
22+
'Inter-SemiBold': require('./assets/fonts/Inter/Inter-SemiBold.ttf'),
23+
'Inter-Thin': require('./assets/fonts/Inter/Inter-Thin.ttf')
24+
});
25+
26+
const onLayoutRootView = useCallback(async () => {
27+
if (fontsLoaded) {
28+
await SplashScreen.hideAsync();
29+
}
30+
}, [fontsLoaded]);
31+
32+
if (!fontsLoaded) {
33+
return null;
34+
}
35+
36+
return (
37+
<AppWrapper onLayout={onLayoutRootView}>
38+
<ThemeProvider theme={theme}>
39+
<UserContextProvider>
40+
<Routes />
41+
</UserContextProvider>
42+
</ThemeProvider>
43+
</AppWrapper>
44+
);
45+
}

AppStyles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import styled from 'styled-components/native';
2+
3+
export const AppWrapper = styled.SafeAreaView`
4+
flex: 1;
5+
`;

README.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# holy-mary
2+
3+
## Sumário
4+
5+
- [holy-mary](#holy-mary)
6+
- [Sumário](#sumário)
7+
- [Motivação](#motivação)
8+
- [Pilha de tecnologia](#pilha-de-tecnologia)
9+
- [Como rodar](#como-rodar)
10+
- [Pré-requisitos](#pré-requisitos)
11+
- [Passo a passo](#passo-a-passo)
12+
13+
## Motivação
14+
15+
Este aplicativo é uma bíblia digital que oferece acesso a diversas versões da Bíblia em português. Com a integração da API ABíbliaDigital, é possível buscar por passagens específicas, visualizar capítulos completos e até mesmo salvar versículos favoritos. O app é fácil de usar e oferece uma grande quantidade de recursos para os usuários interessados em estudar conteúdo bíblico. Ao utilizar a ABíbliaDigital neste projeto, os usuários poderão desfrutar de uma experiência completa de leitura e estudo da Bíblia dentro do aplicativo.
16+
17+
Este foi o quinto repositório de código apresentado no [Curso Superior de TSI](https://www.ifms.edu.br/campi/campus-aquidauana/cursos/graduacao/sistemas-para-internet/sistemas-para-internet) do IFMS como requisito para obtenção da nota parcial das atividades da unidade curricular Programação para Dispositivos Móveis I.
18+
19+
| [&larr; Repositório anterior](https://github.com/mdccg/weather-app) | [Próximo repositório &rarr;](https://github.com/mdccg/chart-plotting-demo-app) |
20+
|-|-|
21+
22+
## Pilha de tecnologia
23+
24+
| Papel | Tecnologia |
25+
|-|-|
26+
| [Prototipagem](https://figma.fun/U3r0LD) | [Figma](https://figma.com/) |
27+
| Ambiente de execução | [Node](https://nodejs.org/en/) |
28+
| Plataforma | [Expo](https://expo.dev/) |
29+
| Linguagem de programação | [TypeScript](https://www.typescriptlang.org/) |
30+
| Front-end | [React Native](https://reactnative.dev/) |
31+
| Base de dados | [ABíbliaDigital](https://www.abibliadigital.com.br/pt) |
32+
33+
Os créditos pelas mídias disponibilizadas estão disponíveis [aqui](./assets/README.md).
34+
35+
<!-- Adicionar galeria aqui -->
36+
37+
## Como rodar
38+
39+
### Pré-requisitos
40+
41+
- [Node](https://nodejs.org/en/download/);
42+
- [Yarn](https://yarnpkg.com/) (opcional);
43+
- Dispositivo móvel:
44+
- [Expo Go](https://expo.dev/client).
45+
46+
### Passo a passo
47+
48+
1. Clone o repositório de código em sua máquina;
49+
50+
2. Abra um shell de comando de sua preferência (prompt de comando, PowerShell, terminal _etc_.);
51+
52+
3. Instale as dependências do projeto através do seguinte comando:
53+
54+
```console
55+
$ npm install
56+
```
57+
58+
Caso esteja utilizando o gerenciador de pacotes Yarn, execute o seguinte comando como alternativa:
59+
60+
```console
61+
$ yarn
62+
```
63+
64+
4. Execute o seguinte comando para iniciar o app:
65+
66+
Para npm:
67+
68+
```console
69+
$ npm run start
70+
```
71+
72+
Para Yarn:
73+
74+
```console
75+
$ yarn start
76+
```
77+
78+
5. Uma vez iniciado, aparecerá um QR Code. Você deve escaneá-lo com o aplicativo [Expo Go](https://expo.dev/client), disponível para Android e iOS;
79+
80+
6. Como alternativa, você pode executar o app no seu navegador, pressionando o atalho `w`. Entretanto, alguns módulos podem não funcionar na versão web do app.

app.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"expo": {
3+
"name": "holy-mary",
4+
"slug": "holy-mary",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
9+
"splash": {
10+
"image": "./assets/splash.png",
11+
"resizeMode": "contain",
12+
"backgroundColor": "#ffffff"
13+
},
14+
"assetBundlePatterns": [
15+
"**/*"
16+
],
17+
"ios": {
18+
"supportsTablet": true
19+
},
20+
"android": {
21+
"adaptiveIcon": {
22+
"foregroundImage": "./assets/adaptive-icon.png",
23+
"backgroundColor": "#ffffff"
24+
}
25+
},
26+
"web": {
27+
"favicon": "./assets/favicon.png"
28+
}
29+
}
30+
}

assets/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[&larr; Voltar](./../README.md)
2+
3+
# Créditos pelas mídias utilizadas
4+
5+
## Fontes tipográficas
6+
7+
- [Inter - Google Fonts](https://fonts.google.com/specimen/Inter)
8+
9+
## Imagens
10+
11+
- [Free Photo | Still life of crown of thorns](https://www.freepik.com/free-photo/still-life-crown-thorns_25212055.htm#query=jesus&position=4&from_view=search&track=sph)
12+
- [Free Photo | Free photo medium shot senior priest praying](https://www.freepik.com/free-photo/medium-shot-senior-priest-praying_25775959.htm#query=catholic%20priest&position=1&from_view=search&track=ais)
13+
14+
## Paleta de cores
15+
16+
- [Palettes | Flat UI Colors 🎨 280 handpicked colors ready for COPY & PASTE](https://flatuicolors.com/)
17+
18+
## Ícones
19+
20+
- [Magnifying Glass Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/magnifying-glass?f=classic&s=solid)
21+
- [Bookmark Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/bookmark?f=classic&s=solid)
22+
- [Language Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/language?f=classic&s=solid)
23+
- [Book Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/book?f=classic&s=solid)
24+
- [Arrow Left Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/arrow-left?f=classic&s=solid)
25+
- [Chevron Left Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/chevron-left?f=classic&s=solid)
26+
- [Arrow Up A Z Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/arrow-up-a-z?f=classic&s=solid)
27+
- [Trash Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/trash?f=classic&s=solid)
28+
- [Share Nodes Classic Solid Icon | Font Awesome](https://fontawesome.com/icons/share-nodes?f=classic&s=solid)

assets/adaptive-icon.png

125 KB
Loading

assets/favicon.png

1.79 KB
Loading

assets/fonts/Inter/Inter-Black.ttf

303 KB
Binary file not shown.

assets/fonts/Inter/Inter-Bold.ttf

303 KB
Binary file not shown.
303 KB
Binary file not shown.

0 commit comments

Comments
 (0)