Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
84589d0
chore: Cleaning up unused files and adding shadcn UI.
Brenner-Costa Jun 13, 2025
dc11e54
feat: home screen to redirect to checkout implemented.
Brenner-Costa Jun 14, 2025
a626656
feat: Checkout page UI completed. Starting to build the form.
Brenner-Costa Jun 14, 2025
60ea05f
refactor: Checkout page completed in mobile first and masks applied t…
Brenner-Costa Jun 14, 2025
879e6d6
feat: Success and error pages completed in mobile first. StatusPage c…
Brenner-Costa Jun 14, 2025
17fa2c6
refactor: Responsive checkout page applied. Status page UI improvements.
Brenner-Costa Jun 14, 2025
e5d23bf
refactor: componentized inputs at checkout.
Brenner-Costa Jun 14, 2025
ecf1062
feat: loading component created and added to checkout.
Brenner-Costa Jun 14, 2025
43b1975
feat: Api getCreditPrice and processPayment created.
Brenner-Costa Jun 15, 2025
7803e4c
refactor: Improvements to the payment and creditPrice APIs. Improved …
Brenner-Costa Jun 15, 2025
fae5fb7
chore: Checkout page changes for build.
Brenner-Costa Jun 15, 2025
dfd124a
style: Change in images on success and error pages.
Brenner-Costa Jun 15, 2025
8f88812
refactor: Dynamic installment options.
Brenner-Costa Jun 15, 2025
f01eb1a
feat: Improved home page with carbon credit selection. New cards crea…
Brenner-Costa Jun 16, 2025
a5bc382
refactor: Placing the shadcnui pagination component in the page file
Brenner-Costa Jun 16, 2025
92f356a
refactor:
Brenner-Costa Jun 16, 2025
e962be6
refactor: Adjusting the api responses.
Brenner-Costa Jun 16, 2025
0c8e882
refactor: Adjustments to fonts and adjustments to pagination responsi…
Brenner-Costa Jun 16, 2025
eea6110
doc: Readme update
Brenner-Costa Jun 16, 2025
ed0b710
chore: deploy vercel
Brenner-Costa Jun 16, 2025
688cf70
doc: Add deployment URL to Readme.md file
Brenner-Costa Jun 16, 2025
20b2668
fix: Checkout redirect bug fixes.
Brenner-Costa Jun 16, 2025
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
41 changes: 41 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
19 changes: 19 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 🌿 Carbon Checkout - Next.js

Um sistema moderno de checkout para compensação de créditos de carbono, desenvolvido com Next.js e TypeScript.

## ✨ Funcionalidades

- **Catálogo de Créditos**: Visualize créditos de carbono disponíveis. Selecione o crédito desejado e a quantidade desejada.
- **Checkout Intuitivo**: Processo de compra baseado na quantidade de créditos desejados.
- **Responsivo**: Design adaptável para todos os dispositivos.
- **Formulário de compra utilizando Zod**: Para melhorar o tratamento de erros e trazer mais segurança.
- **Componentização**: Páginas componentizadas para melhorar a performance e aprimorar a manutenibilidade.
- **Design inclusivo**: Para melhorar a experiência de todos os usuãrios, foram utilizados botões levemente maiores e largos. Auxiliando pessoas com deficiência.

## 🚀 Tecnologias

- **Framework**: Next.js 14 (App Router)
- **Linguagem**: TypeScript
- **Estilização**: Tailwind CSS + ShadCN/ui
- **Deploy**: https://frontend-test-tree-lac.vercel.app/
21 changes: 21 additions & 0 deletions frontend/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
7 changes: 7 additions & 0 deletions frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
Loading