-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
0578f54
commit 820876d
Showing
10 changed files
with
295 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,27 @@ | ||
.channelRow { | ||
display: flex; | ||
align-items: center; | ||
width: 70%; | ||
} | ||
|
||
.channelRow_text { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.channelRow_text > p { | ||
color: #606060; | ||
font-size: small !important; | ||
} | ||
|
||
.channelRow_logo { | ||
height: 120px !important; | ||
width: 120px !important; | ||
margin: 10px 60px; | ||
} | ||
|
||
.channelRow_text > h4 { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} |
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,21 @@ | ||
import React from 'react'; | ||
import './ChannelRow.css'; | ||
import { Avatar } from '@material-ui/core'; | ||
import VerifiedIcon from '@material-ui/icons/CheckCircleOutlineOutlined'; | ||
|
||
function ChannelRow({image, channel, verified, subs, noOfVideos, description}) { | ||
return ( | ||
<div className="channelRow"> | ||
<Avatar className="channelRow_logo" | ||
alt={channel} src={image} | ||
/> | ||
<div className="channelRow_text"> | ||
<h4>{channel} {verified && <VerifiedIcon/>} </h4> | ||
<p>{subs} subscribers • {noOfVideos} videos</p> | ||
<p>{description}</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default ChannelRow; |
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,24 @@ | ||
.searchPage { | ||
flex: 0.8; | ||
background-color: #f9f9f9; | ||
padding: 20px 20px; | ||
} | ||
|
||
.searchPage_filter { | ||
display:flex; | ||
align-items: center; | ||
color: #606060; | ||
font-size: xx-small !important; | ||
} | ||
|
||
.searchPage_filter > h2 { | ||
margin-left: 10px; | ||
} | ||
|
||
.searchPage > hr { | ||
height: 1px; | ||
border: 0; | ||
background-color: lightgray; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} |
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,39 @@ | ||
import React from 'react'; | ||
import ChannelRow from './ChannelRow'; | ||
import VideoRow from './VideoRow'; | ||
|
||
import TuneOutlinedIcon from "@material-ui/icons/TuneOutlined"; | ||
import './SearchPage.css'; | ||
import { Link } from '@material-ui/core'; | ||
|
||
function SearchPage() { | ||
return ( | ||
<div className="searchPage"> | ||
<div className="searchPage_filter"> | ||
<TuneOutlinedIcon/> | ||
<h2>FILTER</h2> | ||
</div> | ||
<hr/> | ||
<ChannelRow | ||
image="https://avatars1.githubusercontent.com/u/39636292?s=460&u=a29bef077d71d9e8eff9624c63d6451cbd8f79df&v=4" | ||
channel="Hasan Tunc" | ||
verified | ||
subs="3M" | ||
noOfVideos={422} | ||
description="You can find awesome programming videos." | ||
/> | ||
<hr/> | ||
<VideoRow | ||
title="React Courses" | ||
views="2.3M Views" | ||
timestamp="3 days ago" | ||
channel="Hasan Tunc" | ||
image="https://i.ytimg.com/vi/DLX62G4lc44/maxresdefault.jpg" | ||
description="Let's get started to React." | ||
subs="1M" | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
export default SearchPage; |
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,38 @@ | ||
.videoRow { | ||
display: flex; | ||
margin-bottom: 30px; | ||
max-width: 700px; | ||
} | ||
|
||
.videoRow > img { | ||
object-fit: contain; | ||
width: 246px; | ||
height: 138px; | ||
} | ||
|
||
.videoRow_text { | ||
margin-left: 14px; | ||
font-size: 16px; | ||
color: #606060; | ||
} | ||
|
||
.videoRow_headline { | ||
font-size: 14px; | ||
color: #606060; | ||
} | ||
|
||
.videoRow_description { | ||
margin-top: 20px; | ||
font-size: 14px; | ||
color: #606060; | ||
} | ||
|
||
.videoRow_subsNumber { | ||
font-weight: bolder; | ||
color: rgb(84, 157, 211); | ||
} | ||
|
||
.videoRow_subs { | ||
background-color: lightgray; | ||
padding: 2px; | ||
} |
Oops, something went wrong.