Skip to content

Commit

Permalink
working on guide button
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed May 1, 2023
1 parent bd94258 commit cbb102f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/components/Buttons/Guide.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Button } from '@mantine/core'

export const GuideButton = () => {
return (
<>
<Button
variant='gradient'
gradient={{ from: 'teal', to: 'lime', deg: 105 }}
>
Guide
</Button>
</>
)
}
1 change: 1 addition & 0 deletions src/components/Screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export const Home = () => {
{token !== undefined ? (
<Text>Available Tokens: {token}</Text>
) : null}
<Text>This is an open source project</Text>
</Stack>
) : (
<Login />
Expand Down
7 changes: 5 additions & 2 deletions src/components/Screens/Recording.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack } from '@mantine/core'
import { Stack, Title } from '@mantine/core'
import { useState } from 'react'
import { AudioRecorder } from 'react-audio-voice-recorder'
import { queryClient } from '~/client'
Expand All @@ -17,7 +17,10 @@ export const Recording = ({
const [url, setURL] = useState<string | null>(null)
const auth = useFirebaseStore((state) => state.auth)
return (
<Stack align='center' justify='center'>
<Stack align='center' justify='center' mb='1.5rem'>
<Title mb='1.5rem' align='center'>
Translate Your Speech Into Japanese
</Title>
<AudioRecorder
onRecordingComplete={async (blob) => {
setURL(null)
Expand Down

0 comments on commit cbb102f

Please sign in to comment.