Skip to content

Commit

Permalink
💄About&&Allowance /index
Browse files Browse the repository at this point in the history
  • Loading branch information
noeypatt committed Mar 30, 2020
1 parent 70f6a60 commit 1c8fdd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pages/index/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ const About = () => {
const [subHead, setSubHead] = useState("เว็บฐานข้อมูลผู้สูงอายุ ภายในอำเภอกะทู้ จังหวัดภูเก็ต")
const [summary, setSummary] = useState("เว็บไซต์ฐานข้อมูลผู้สูงอายุ เป็นการนำข้อมูลทางสถิติเกี่ยวกับผู้สูงอายุมาเเสดงผลในรูปของกราฟรูปแบบต่าง ๆ")

const [image, setImage] = useState("/static/")

const [status, setStatus] = useState(false)

const [home, setHome] = useState(
Expand Down
13 changes: 8 additions & 5 deletions pages/index/Allowance.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { useMediaQuery } from 'react-responsive';

const Allowance = () => {
const isSmallScreen = useMediaQuery({ maxDeviceWidth: 575.98 })
const [header, setHeader] = useState("เบี้ยยังชีพผู้สูงอายุ")
const [subHead, setSubHead] = useState("เว็บฐานข้อมูลผู้สูงอายุ ภายในอำเภอกะทู้ จังหวัดภูเก็ต")

const [data, setData] = useState([
{
title: "ระดับเริ่มต้น (Aging society)",
Expand All @@ -28,15 +31,15 @@ const Allowance = () => {
const [home, setHome] = useState(
[
{ name: "เกี่ยวกับเรา", href: "/index/about" },
{ name: "เบี้ยยังชีพ", href: "#" },
{ name: "สังคมผู้สูงอายุ", href: "/index/society" },
{ name: "เข้าสู่หน้าหลัก", href: "/main" }
]
)

const [homeMin, setHomeMin] = useState(
[
{ name: "เกี่ยวกับเรา", href: "/index/about" },
{ name: "เบี้ยยังชีพ", href: "#" },
{ name: "สังคมผู้สูงอายุ", href: "/index/society" },
{ name: "เข้าสู่หน้าหลัก", href: "/main" },
]
)
Expand All @@ -58,7 +61,7 @@ const Allowance = () => {
isSmallScreen ?
<div className="container-fluid">
<div className="head-content">
<h4>สังคมผู้สูงอายุ <br />และระดับของการเข้าสู่สังคมผู้สูงอายุ</h4>
<h4>{header}</h4>
<h5> ถูกแบ่งออกเป็น 3 ระดับ</h5>
</div>

Expand All @@ -80,12 +83,12 @@ const Allowance = () => {
:
<div className="container-fluid">
<div className="head-content">
<h3>สังคมผู้สูงอายุ และระดับของการเข้าสู่สังคมผู้สูงอายุ</h3>
<h3>{header}</h3>
<h3> ถูกแบ่งออกเป็น 3 ระดับ</h3>
</div>

<div className="detail-content">
<img src="/static/trstcover2.gif" />
{/* <img src="/static/trstcover2.gif" /> */}
<div className="data-detail-content">
{
data.map((item, index) => (
Expand Down

1 comment on commit 1c8fdd0

@vercel
Copy link

@vercel vercel bot commented on 1c8fdd0 Mar 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.