-
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.
- Loading branch information
mechanic0688
authored and
mechanic0688
committed
Aug 21, 2024
1 parent
477ccff
commit 4929869
Showing
8 changed files
with
110 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import '../index.css'; | ||
|
||
import Item from './items/Item'; | ||
|
||
import img1 from './imgs/project1.png'; | ||
|
||
function App() { | ||
return ( | ||
<main className="w-screen h-screen"> | ||
<section className="mx-auto" style={{ width: '800px' }}> | ||
<Item title="광고 없이 깔끔한 오늘의 뉴스" img={img1} /> | ||
</section> | ||
</main> | ||
) | ||
} | ||
|
||
export default App; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Every day in every way, I am getting better and better.</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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,10 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
|
||
import App from './App'; | ||
|
||
const domNode = document.getElementById('root'); | ||
if (domNode) { | ||
const root = createRoot(domNode); | ||
root.render(<App />); | ||
} |
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,32 @@ | ||
import React from 'react'; | ||
|
||
import Spec from './Spec'; | ||
|
||
import githubMark from '../imgs/github-mark.png'; | ||
|
||
type TProps = { | ||
title: string; | ||
img: string; | ||
}; | ||
|
||
function Item({ title, img }: TProps) { | ||
return ( | ||
<div className="p-3 flex border-y"> | ||
<img className="w-60 h-48 object-cover" src={img} /> | ||
<div className="px-3 flex-1 flex flex-col"> | ||
<h4 className="font-semibold text-xl text-gray-900">{title}</h4> | ||
<Spec items={['Electron', 'React', 'Typescript', 'Tailwind']} /> | ||
<p className="mt-2 flex-1 text-gray-800"> | ||
RSS 뉴스피드로 목록을 불러옵니다. 기사를 클릭하면 본문을 가져와 보여줍니다. 광고 없이 기사 내용에 집중하고 싶은 분들을 위한 앱 | ||
</p> | ||
<p className="flex justify-end"> | ||
<a href="https://github.com/MechanicKim/rss-news-reader/tree/main" target="_blank"> | ||
<img className="w-6" src={githubMark} /> | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Item; |
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 from 'react'; | ||
|
||
type TProps = { | ||
items: string[]; | ||
}; | ||
|
||
function Spec({ items }: TProps) { | ||
return ( | ||
<p className="mt-1"> | ||
{items.map((item, i) => ( | ||
<span key={i} className="py-1 px-2 mr-1 text-xs rounded bg-gray-200">{item}</span> | ||
))} | ||
</p> | ||
); | ||
} | ||
|
||
export default Spec; |
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