-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[#18] 초기 진입 화면 터미널스럽게 변경
- Loading branch information
Showing
11 changed files
with
125 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import {Text, Box, useInput, Newline} from 'ink'; | ||
import TextInput from 'ink-text-input'; | ||
import theme from './Theme.js'; | ||
//[[['신촌','강남','숭실대입구'],ls]] | ||
const Output = ({list}) => { | ||
return ( | ||
<Box marginY={1} flexDirection="column"> | ||
{list.map(item => ( | ||
<> | ||
<Text color={theme.purple}>$ {item[1]} </Text> | ||
<Newline /> | ||
{item[0].map((detail, key) => ( | ||
<React.Fragment key={key}> | ||
<Text bold color={theme.neonGreen}> | ||
{item[1] === 'ls' ? detail : detail.original_title} | ||
{/* {detail || detail.original_title} */} | ||
</Text> | ||
<Newline /> | ||
</React.Fragment> | ||
))} | ||
</> | ||
))} | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React, {useState} from 'react'; | ||
import {Text, Box, useInput, Newline} from 'ink'; | ||
import TextInput from 'ink-text-input'; | ||
import Search from './Search.js'; | ||
import Output from './Output.js'; | ||
|
||
const SearchContainer = () => { | ||
const [list, setlist] = useState([]); | ||
return ( | ||
<Box marginY={1} flexDirection="column"> | ||
<Output list={list} /> | ||
<Search setlist={setlist} /> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default SearchContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const theme = { | ||
neonGreen: '#00FF19', | ||
white: '#ffffff', | ||
red: '#FF0000', | ||
purple: '#AD00FF', | ||
}; | ||
|
||
export default theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default { | ||
location: [ | ||
'신촌', | ||
'건대 입구', | ||
'숭실대 입구', | ||
'강남', | ||
'홍대', | ||
'신림', | ||
'신도림', | ||
'서울대입구', | ||
'상봉', | ||
'천호', | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters