Skip to content

Commit

Permalink
Merge pull request #251 from codeforjapan/develop
Browse files Browse the repository at this point in the history
add api announce bar
  • Loading branch information
ayuki-joto authored May 17, 2024
2 parents 8342ad1 + 94b578a commit e75b968
Show file tree
Hide file tree
Showing 6 changed files with 2,489 additions and 9,604 deletions.
2 changes: 1 addition & 1 deletion components/atoms/inputs/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const RadioGroups: FC<Props> = ({
{options.map((option, index) => (
<Box className={style.radio} key={index} mb={4}>
<Radio
value={option.value}
value={option.value.toString()}
flexDirection="row-reverse"
justifyContent="space-between"
display="flex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const rates = [
const OptionsIntensityRate: FC<Props> = (props) => {
return (
<RadioGroup
value={props.value}
defaultValue={props.defaultValue}
value={props.value?.toString()}
defaultValue={props.defaultValue?.toString()}
onChange={(nextValue: string) => {
props.onChangeRate(props.id, Number(nextValue))
}}
Expand All @@ -41,7 +41,7 @@ const OptionsIntensityRate: FC<Props> = (props) => {
<VStack alignItems="start" spacing="16px" className={styles.stack}>
{rates.map((rate, index) => (
<Radio
value={rate.value}
value={rate.value.toString()}
key={index}
className={styles.radio}
spacing="10px"
Expand Down
15 changes: 14 additions & 1 deletion components/organisms/homes/HomeFooter/HomeFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC, ReactNode } from 'react'
import Image from 'next/image'
import { ExternalLinkIcon } from '@chakra-ui/icons'
import { Box, Container, Grid, GridItem, Text } from '@chakra-ui/react'
import {Box, Container, Grid, GridItem, Heading, Link, Text, VStack} from '@chakra-ui/react'
import classNames from 'classnames'
import BasicButton from 'components/atoms/buttons/Basic'
import HomeContentCatchPhrase from 'components/molecules/homes/HomeContentCatchPhrase/HomeContentCatchPhrase'
Expand Down Expand Up @@ -98,6 +98,19 @@ const HomeFooter: FC<Props> = (props) => {
</Container>
)}


<Container maxW="container.xl" bg="white" borderRadius="md" boxShadow="md" p={6} mt={10}>
<VStack spacing={4} alignItems={'left'}>
<Heading size="sm">Web APIを公開しました</Heading>
<Text>
国立環境研究所が発行している「国内52都市における脱炭素型ライフスタイルの選択肢:カーボンフットプリントと削減効果データブック」のデータをWeb APIで取得できるようになりました。これにより日本の地域別の温室効果ガス排出量(カーボンフットプリント)を活用することができます。<br/>
また、アプリ画面上で質問に答えカーボンフットプリント量を計算するのではなく、質問の回答を投げることで1年間、または1ヶ月のフットプリント量をAPIで取得できるようになりました。詳細については
<Link textDecoration={"underline"} href={'https://codeforjapan.github.io/JibungotoPlanet-API/swagger/'}>APIドキュメント</Link>
をご確認ください。
</Text>
</VStack>
</Container>

<Text fontSize={14} mt={'auto'} pt={{ base: 10, md: 20 }} mb={6}>
本アプリケーションは、日本財団の「グーグル基金」の支援金を受けて一部機能の追加を実施しました
</Text>
Expand Down
Loading

0 comments on commit e75b968

Please sign in to comment.