Skip to content

Commit

Permalink
fix(docs): styles in mobile view (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
ho991217 authored Oct 21, 2024
1 parent 6396121 commit d7855c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
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

0 comments on commit d7855c3

Please sign in to comment.