This is a Next.js project bootstrapped with create-next-app.
First, install packages and run the development server:
yarn install
yarn dev
For the UI I chose to use tailwindcss because of both prior experience and the ability easily create a simple & consistent style. The tailwind ui also facilitates the creation of a mobile user interface.
Rather than loading the data in on the frontend, I chose to simulate API calls by making use of NextJS's serverless architecture. Enabling a separation of concerns and allowing for significantly less code bloat on the frontend.
Data Example: Customer.json:
- Partnership: "Chooose SAF Demo" (partnership ID: 682fa8c19340de8ea5338e8a)
- Customer: "Kanu's Tea Shop"
- Organization that does business travel
- Has employees who fly
- Tracks their flight emissions
- Can purchase SAF attributes
The Flow:
- Acme Airlines (Partnership) → Signs up with Chooose
- Delta Corp (Customer) → A company that flies with Acme Airlines regularly
- Delta Corp's employees → Take business flights
- Delta Corp → Uses the emissions dashboard to: - See: "Your organization emitted 11,366 tCO₂e from 1,251 flights" - Purchase SAF attributes to offset those emissions - Get certificates for sustainability reporting
Chooose Platform
│
└─ Partnership: "Acme Airlines"
│
└─ Customer: "Delta Corp" (a business that flies with Acme)
│
├─ Employees/Travelers who take flights
├─ Tracks emissions from their business travel
└─ Purchases SAF attributes to offset their footprint
So in the context of "Kanu's Tea Shop" (from Customer.json):
- They're a business customer of the partnership
- They track their company's flight emissions
- They purchase SAF attributes to reduce their carbon footprint
- They use it for ESG/sustainability reporting
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.