-
Notifications
You must be signed in to change notification settings - Fork 2
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
10 changed files
with
237 additions
and
473 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,38 +1,113 @@ | ||
.App { | ||
text-align: center; | ||
.vertical-container { | ||
display: flex; | ||
} | ||
|
||
body { | ||
background-color: #fafafa; /* Replace with your desired color */ | ||
} | ||
.vertical-component-left { | ||
flex: 0.35; | ||
border-radius: 12px; | ||
box-shadow: 0 6px 16px 0 rgba(0,0,0,.2); | ||
border-left: 4px solid #ccc; | ||
position: relative; | ||
z-index: 10; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
padding: 60px 60px 30px; | ||
height: 100vh; | ||
|
||
.title{ | ||
font-size: 40px; | ||
font-weight: 700px; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, monospace; | ||
line-height: 1.5; | ||
overflow-wrap: break-word; | ||
flex: 1; | ||
margin-top: 50px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.description{ | ||
color: #7f7f75; | ||
font-size: 18px; | ||
line-height: 1.4; | ||
margin-bottom: 50px; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
img{ | ||
width: 100%; | ||
height: auto; | ||
} | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
.left-footer{ | ||
display: flex; | ||
justify-content: center; | ||
margin-top: 100px; | ||
} | ||
|
||
a{ | ||
color: orange; | ||
} | ||
|
||
.divider{ | ||
margin: 0 10px 0px; | ||
color: #7f7f75; | ||
} | ||
|
||
|
||
|
||
} | ||
.vertical-component-right { | ||
flex: 1; | ||
flex-direction: column; | ||
background-color: #F7F8FD; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
display: flex; | ||
justify-content: center; /* Align items (input field) horizontally */ | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
|
||
.container{ | ||
display: flex; | ||
margin-bottom: 50px; | ||
} | ||
|
||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
.url-input-textbox{ | ||
border: 1px dashed #7f7f75; | ||
padding: 10px; | ||
font-size: 16px; | ||
width: 80%; | ||
height: 30px; | ||
align-items: center; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
.submit-btn{ | ||
margin-left: auto; | ||
height: 50px; | ||
width: 140px; | ||
background: orange; | ||
border: none; | ||
font-size: 18px; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
border-radius: 16px; | ||
} | ||
|
||
.summary-textbox{ | ||
border: 1px solid #dedede; | ||
padding: 10px; | ||
font-size: 16px; | ||
width: 80%; | ||
height: 50%; | ||
align-items: center; | ||
} | ||
|
||
body { | ||
background-color: #fafafa; /* Replace with your desired color */ | ||
} | ||
|
||
|
||
|
||
|
||
|
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
File renamed without changes.
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,34 @@ | ||
import React from "react"; | ||
|
||
const Left = () => { | ||
|
||
const handleExternalLinkClick = (event) => { | ||
event.preventDefault(); | ||
window.open(event.target.href, '_blank'); | ||
}; | ||
|
||
return ( | ||
<div className="vertical-component-left"> | ||
<div className="title"> | ||
Brief Me | ||
</div> | ||
<div className="description"> | ||
Just enter the url of any Youtube video and get summary within few minutes. | ||
</div> | ||
<img src="image.png" alt="Left Section" className="image"/> | ||
|
||
<footer class="left-footer"> | ||
<a href="https://github.com/Maleehak/BriefMe" onClick={handleExternalLinkClick}> | ||
View on Github | ||
</a> | ||
<div class="divider">|</div> | ||
<a href="https://maleehak.github.io/" onClick={handleExternalLinkClick}> | ||
About the Author | ||
</a> | ||
|
||
</footer> | ||
</div> | ||
); | ||
} | ||
|
||
export default Left; |
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,59 @@ | ||
import React, { useState } from "react"; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faClipboard } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const Right = () => { | ||
const [inputValue, setInputValue] = useState(''); | ||
const [outputValue, setOutputValue] = useState(''); | ||
|
||
const handleChange = (event) => { | ||
// Handle changes in the input field | ||
setInputValue(event.target.value); | ||
}; | ||
|
||
const handleClick = () => { | ||
console.log('Button clicked!'); | ||
// Add your custom logic here | ||
setOutputValue(inputValue); | ||
}; | ||
|
||
const handleCopy = () => { | ||
navigator.clipboard.writeText(inputValue); | ||
}; | ||
|
||
return ( | ||
<div className="vertical-component-right"> | ||
<input | ||
type="text" | ||
value={inputValue} | ||
onChange={handleChange} | ||
placeholder="Enter url here" | ||
className="url-input-textbox" | ||
/> | ||
<div style={{ display: "flex", width: "83%" }}> | ||
<button onClick={handleClick} className="submit-btn"> | ||
Click Me | ||
</button> | ||
</div> | ||
<textarea | ||
type="text" | ||
value={outputValue} | ||
onChange={handleChange} | ||
className="summary-textbox" | ||
/> | ||
<FontAwesomeIcon | ||
icon={faClipboard} | ||
style={{ | ||
position: 'absolute', | ||
right: '8%', | ||
top: '39%', | ||
transform: 'translateY(-50%)', | ||
cursor: 'pointer' | ||
}} | ||
onClick={handleCopy} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default Right; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.