-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from mohangolakoti/ReadMore
Feature Added : Implemented Responsive "Read More" Button with Dynamic Project Details #181
- Loading branch information
Showing
14 changed files
with
247 additions
and
26 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
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,94 @@ | ||
.readmore{ | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
padding: 30px 100px; | ||
font-family: sans-serif; | ||
} | ||
.readmore .arrow{ | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
padding: 20px; | ||
width: 90px; | ||
} | ||
.readmore .image{ | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.readmore img{ | ||
width: 100%; | ||
border-radius: 8px; | ||
} | ||
.head{ | ||
padding-top: 40px; | ||
color: #0db5cb; | ||
font-weight: bold; | ||
font-size: large; | ||
line-height: 30px; | ||
} | ||
.upload{ | ||
color: #e9e9ec; | ||
text-transform: uppercase; | ||
} | ||
.title{ | ||
color: #e9e9ec; | ||
text-align: center; | ||
font-weight: bolder; | ||
font-size: 2rem; | ||
padding: 10px; | ||
text-transform: uppercase; | ||
} | ||
.description{ | ||
font-size: large; | ||
font-weight: bold; | ||
color: #e9e9ec; | ||
text-transform: uppercase; | ||
} | ||
.text{ | ||
padding-top: 40px; | ||
} | ||
.dtex{ | ||
padding-top: 15px; | ||
color: #e9e9ec; | ||
text-transform: none; | ||
line-height: 27px; | ||
font-size: large; | ||
word-spacing: 2px; | ||
font-weight: normal; | ||
} | ||
.developer{ | ||
color: #0db5cb; | ||
padding-top: 30px; | ||
font-weight: bold; | ||
font-size: large; | ||
} | ||
.abc{ | ||
padding-top: 10px; | ||
font-size: large; | ||
display: flex; | ||
} | ||
.abc .dp{ | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.readmore .btn button{ | ||
background-color: #0db5cb; | ||
margin-right: 20px; | ||
margin-top: 20px; | ||
} | ||
.readmore .occupation{ | ||
color: #e9e9ec; | ||
} | ||
|
||
@media (max-width:786px) { | ||
.readmore{ | ||
padding: 30px 50px; | ||
} | ||
} | ||
@media (max-width:425px) { | ||
.readmore{ | ||
padding: 30px; | ||
} | ||
} |
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,50 @@ | ||
import React from 'react' | ||
import { useParams } from 'react-router-dom' | ||
import { features } from './projects' | ||
import './Readmore.css' | ||
import { Link } from 'react-router-dom' | ||
import Arrow from '../Components/projects/arrow.png' | ||
|
||
const Readmore = () => { | ||
const { id } = useParams(); | ||
const feature = features.find((item) => item.id === parseInt(id)); | ||
return ( | ||
<div className='readmore'> | ||
<Link className='arrow' to="/"><img src={Arrow} alt="" /></Link> | ||
<div className="title">{feature.title}</div> | ||
<div className="image"> | ||
<img src={feature.img} height={480} alt={feature.title} /> | ||
</div> | ||
|
||
<div className="head"> | ||
<span className='upload'>Uploaded On:</span><br /> | ||
dd:mm:yy | ||
</div> | ||
<div className="head"> | ||
<span className='upload'>By:</span><br /> | ||
<div className='abc'> | ||
<div className="dp"></div> | ||
<div className="details1"> | ||
<p className="name">@Abc</p> | ||
<p className="occupation">Web Designer, Video Editor</p> | ||
</div> | ||
</div> | ||
<div className="dtex"> | ||
I'm a versatile professional skilled in web development and video | ||
editing, creating seamless online experiences and high-quality | ||
multimedia content. | ||
</div> | ||
</div> | ||
<div className="text"> | ||
<span className='description'>Description:</span><br /> | ||
<div className='dtex'>{feature.text}</div> | ||
</div> | ||
<div className="developer"> | ||
Developer-X | ||
</div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default Readmore |
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.