Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchourajr committed May 30, 2024
1 parent 07a5c22 commit 2edfa98
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 66 deletions.
36 changes: 0 additions & 36 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +0,0 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](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`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
8 changes: 4 additions & 4 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion example/src/styles/globals.css → example/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
@tailwind components;
@tailwind utilities;

@import "./fonts.css";
@font-face {
font-family: "GoshaSans-Ultrabold";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("../fonts/PPGoshaSans-Ultrabold.woff2") format("woff2");
}

@font-face {
font-family: "GoshaSans-Regular";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/PPGoshaSans-Regular.woff2") format("woff2");
}

:root {
--foreground-rgb: 0, 255, 10;
Expand Down
2 changes: 1 addition & 1 deletion example/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import React from "react";
import "../styles/globals.css";
import "./globals.css";

export const metadata: Metadata = {
title: "Create Next App",
Expand Down
6 changes: 3 additions & 3 deletions example/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TypeScale } from "@/components/TypeScale";
import { DEFAULT_HEADLINE, DEFAULT_TEXT } from "@root/src/defaults";
import { headlineDefault, textDefault } from "@buen/type";
import Image from "next/image";
import Link from "next/link";

Expand All @@ -26,8 +26,8 @@ export default function Home() {
</div>
</section>
<section className="flex flex-col items-start justify-between px-10 md:px-24">
<TypeScale typeData={DEFAULT_HEADLINE} />
<TypeScale typeData={DEFAULT_TEXT} />
<TypeScale typeData={headlineDefault} />
<TypeScale typeData={textDefault} />
</section>
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/TypeScale.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TypeDefinition } from "@buen/type";
import clsx from "clsx";
import { TypeDefinition } from "../../../src/types";

export type TypeScaleProps = {
typeData: Record<string, TypeDefinition>;
Expand Down
15 changes: 0 additions & 15 deletions example/src/styles/fonts.css

This file was deleted.

7 changes: 2 additions & 5 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"allowImportingTsExtensions": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
Expand All @@ -18,12 +17,10 @@
"name": "next"
}
],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@root/*": ["../*"]
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "../src", "src"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 2edfa98

Please sign in to comment.