Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: add footer msg with project link #6

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.19.0
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"private": true,
"version": "0.0.1",
"type": "module",
"engines": {
"node": "16.19.x"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
16 changes: 16 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ input {
/* margin-top: 60px; */
}

.footer {
text-align: center;
}

.footer img {
text-align: center;
height: 30px;
}

.open-source {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}

@media (max-width: 480px) {
.footer-actions > button {
width: 100%;
Expand Down
28 changes: 25 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import './App.css'
import { IonChip } from '@brisanet/ion-react'
import { IonChip, IonButton } from '@brisanet/ion-react'
import Beans from "./assets/coffee-beans.png"
import { useState } from 'react'
import Recipe from './components/Recipe/Recipe'

function App() {
const [minMl, setMinMl] = useState(14)
Expand Down Expand Up @@ -85,9 +86,30 @@ function App() {
</div>
</div>

<div className='footer-actions'>
<span className='subtitle'>Iury Nogueira</span>
{/* <div className='footer-actions'>
<IonButton label="Salvar receita" handleClick={saveRecipe} />
</div> */}

<div className='footer-feedback'>
{showFeedbackToSave && <span>Adicionado com sucesso!</span>}
{/* Substituir depois que estiver fixed na lib */}
{/* <IonAlert message="Example of alert message" /> */}
</div>

{/* <div>
<Recipe />
</div> */}

<div className='footer'>
<p className='subtitle'>Iury Nogueira</p>
<div className='open-source'>
<img src="https://cdn-icons-png.flaticon.com/512/25/25231.png" alt="github icon" />
<p className='subtitle'>Este é um projeto
<a href="https://github.com/iurynogueira/coffee-recipe" target='_blank'> open source </a>
</p>
</div>
</div>

</div>
)
}
Expand Down
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './'