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

Fix styles in mobile view #527

Open
wants to merge 1 commit 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
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @stackflow/docs

## 2.0.1

### Patch Changes

- Fix style in mobile view

## 2.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/components/index-page/Tile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function Tile({ title, content }: { title: string; content: string }) {
return (
<div className="bg-neutral-100 dark:bg-neutral-900 rounded-xl p-6">
<div className="bg-neutral-100 dark:bg-neutral-900 rounded-xl p-6 w-full box-border">
<p className="text-gray-900 dark:text-white text-base font-bold truncate">
{title}
</p>
Expand Down
6 changes: 3 additions & 3 deletions docs/components/index-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function IndexPage({ lang = "ko" }: { lang: "ko" | "en" }) {
<div className="flex flex-col items-center gap-4 my-8 lg:ml-8 lg:items-start lg:gap-1 lg:m-0">
<h1 className="text-5xl lg:text-8xl font-extrabold">Stackflow</h1>

<p className="text-sm lg:text-xl text-center">
<p className="text-sm px-4 lg:px-0 lg:text-xl text-center">
{getLocaleText(
"JavaScript와 TypeScript를 위한 가장 간편한 스택 네비게이션 프레임워크.",
"The Simplest Stack Navigation for JavaScript and TypeScript.",
Expand Down Expand Up @@ -63,7 +63,7 @@ export function IndexPage({ lang = "ko" }: { lang: "ko" | "en" }) {
height={500}
className="absolute w-full -z-10 top-20 left-0 opacity-40"
/>
<ChevronsDown className="absolute mx-auto bottom-10 size-8 animate-bounce opacity-75" />
<ChevronsDown className="absolute lg:mx-auto bottom-10 size-8 animate-bounce opacity-75" />
</section>

<section className="w-full flex flex-col items-center px-6 pb-8 gap-16">
Expand All @@ -74,7 +74,7 @@ export function IndexPage({ lang = "ko" }: { lang: "ko" | "en" }) {
</h1>
"
</div>
<div className="grid lg:grid-cols-3 gap-8">
<div className="grid lg:grid-cols-3 gap-6 lg:gap-8">
<Tile
title="Headless Architecture"
content={getLocaleText(
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackflow/docs",
"version": "2.0.0",
"version": "2.0.1",
"private": true,
"description": "Mobile-first stack navigator framework with Composable Plugin System",
"license": "MIT",
Expand Down
Loading