-
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
Showing
11 changed files
with
266 additions
and
27 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
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,56 @@ | ||
import { h } from 'preact'; | ||
import styles from '../../styles/home.module.scss'; | ||
import { Wrap } from '../../components/Application'; | ||
export function Home() { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.sidebar}> | ||
<div class={styles.head}> | ||
<Wrap title="My name" /> | ||
<div class={styles.divider} /> | ||
</div> | ||
<div class={styles.options}> | ||
<Wrap image={` `} title="My name" /> | ||
<Wrap image={` `} title="My name" /> | ||
<Wrap image={` `} title="My name" /> | ||
<Wrap image={` `} title="My name" /> | ||
</div> | ||
<div class={styles.tail}> | ||
<div className={styles.divider} /> | ||
<Wrap image={` `} title="My name" /> | ||
</div> | ||
</div> | ||
<div className={styles.home}> | ||
<div class={styles.head}> | ||
<div class={styles.title}> | ||
<div class={styles.name}>Your library</div> | ||
<div class={styles.divider} /> | ||
<div class={styles.description}>here is some description</div> | ||
</div> | ||
<div class={styles.divider} /> | ||
</div> | ||
<div className={styles.content}> | ||
<Video /> | ||
<Video /> | ||
<Video /> <Video /> <Video /> <Video /> <Video /> <Video /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function Video() { | ||
return ( | ||
<div class={styles.video}> | ||
<img | ||
src="https://cdn.discordapp.com/attachments/1195575834426220604/1195636639083540581/image.png?ex=65b4b664&is=65a24164&hm=28341ca9d72876bc98df3798b3d3ab31e670718380246f4cce2e1dfa47db33f0&" | ||
alt="" | ||
/> | ||
<div class={styles.background}></div> | ||
<div class={styles.text}> | ||
<div class={styles.title}>Let’s learn react native in 100sec!!</div> | ||
<div class={styles.views}>10K views</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './Login'; | ||
export * from './Application'; | ||
export * from './Home'; |
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,120 @@ | ||
.container { | ||
display: flex; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
|
||
.chat_section { | ||
min-width: 322px; | ||
background-color: #1c1c1c; | ||
} | ||
.video_section { | ||
display: flex; | ||
width: 100%; | ||
background-color: #161616; | ||
} | ||
.sidebar { | ||
min-width: 305px; | ||
padding-inline: 16px; | ||
padding-block: 25px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 24px; | ||
background-color: #111; | ||
& > .head { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
& > .divider { | ||
width: 101px; | ||
height: 1px; | ||
background: #595959; | ||
} | ||
} | ||
& > .options { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
} | ||
& > .tail { | ||
height: fit-content; | ||
} | ||
} | ||
|
||
.home { | ||
width: 100%; | ||
height: 100%; | ||
padding: 24px; | ||
display: flex; | ||
flex-direction: column; | ||
& > .head { | ||
margin-top: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
width: 100%; | ||
justify-content: center; | ||
& > .title { | ||
align-items: center; | ||
display: flex; | ||
gap: 20px; | ||
& > .name { | ||
color: #fff; | ||
font-family: Oswald; | ||
font-size: 32px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
} | ||
& > .divider { | ||
background: #717171; | ||
width: 1px; | ||
height: 10px; | ||
} | ||
& > .description { | ||
color: #fff; | ||
|
||
font-family: Oswald; | ||
font-size: 16px; | ||
font-style: normal; | ||
line-height: normal; | ||
} | ||
} | ||
& > .divider { | ||
max-width: 656px; | ||
background: rgba(255, 255, 255, 0.1); | ||
height: 1px; | ||
} | ||
} | ||
& > .content { | ||
display: flex; | ||
max-width: 2000px; | ||
gap: 24px; | ||
flex-wrap: wrap; | ||
& > .video { | ||
border-radius: 10px; | ||
max-width: 336px; | ||
max-height: 188px; | ||
position: relative; | ||
& > img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
& > .background { | ||
background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.00) 100%); | ||
rotate: 180deg; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
} | ||
& > .text { | ||
position: absolute; | ||
bottom: 10px; | ||
left: 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,36 @@ | ||
declare const classNames: { | ||
readonly container: 'container'; | ||
readonly chat_section: 'chat_section'; | ||
readonly video_section: 'video_section'; | ||
readonly sidebar: 'sidebar'; | ||
readonly head: 'head'; | ||
readonly divider: 'divider'; | ||
readonly options: 'options'; | ||
readonly tail: 'tail'; | ||
readonly home: 'home'; | ||
readonly title: 'title'; | ||
readonly name: 'name'; | ||
readonly description: 'description'; | ||
readonly content: 'content'; | ||
readonly video: 'video'; | ||
readonly background: 'background'; | ||
readonly text: 'text'; | ||
}; | ||
export default classNames; | ||
export type ClassNames = | ||
| 'container' | ||
| 'chat_section' | ||
| 'video_section' | ||
| 'sidebar' | ||
| 'head' | ||
| 'divider' | ||
| 'options' | ||
| 'tail' | ||
| 'home' | ||
| 'title' | ||
| 'name' | ||
| 'description' | ||
| 'content' | ||
| 'video' | ||
| 'background' | ||
| 'text'; |
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
Oops, something went wrong.