-
-
Notifications
You must be signed in to change notification settings - Fork 45
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 #80 from SandeepVashishtha/main
Mobile Responsive for LandingPage
- Loading branch information
Showing
5 changed files
with
109 additions
and
101 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,5 @@ | ||
{ | ||
"githubPullRequests.ignoredPullRequestBranches": [ | ||
"main" | ||
] | ||
} |
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,22 +1,50 @@ | ||
.output pre { | ||
background-color: #e35757; /* Change background color */ | ||
padding: 10px; /* Add padding */ | ||
border-radius: 5px; /* Add rounded corners */ | ||
transition: background-color 0.3s ease; /* Smooth transition */ | ||
} | ||
/* EditorComponent.css */ | ||
|
||
.output pre:hover { | ||
background-color: #9d4444; /* Change background color on hover */ | ||
.editor-container { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
height: 100vh; | ||
} | ||
|
||
.layout { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.sidebar { | ||
display: flex; | ||
flex-direction: column; | ||
width: 15vw; | ||
gap: 1rem; | ||
align-items: center; | ||
width: 100%; | ||
margin-top: 1rem; | ||
} | ||
|
||
.editor { | ||
width: 100%; | ||
height: 70vh; | ||
} | ||
|
||
.output { | ||
background-color: #d8dbcc; | ||
height: 22.3vh; | ||
overflow-y: auto; | ||
padding: 1rem; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.layout { | ||
flex-direction: row; | ||
} | ||
|
||
.sidebar { | ||
width: 15vw; | ||
margin-top: 0; | ||
} | ||
|
||
.editor { | ||
width: 85vw; | ||
height: 70vh; | ||
} | ||
} |
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,46 @@ | ||
/* LandingPage.css */ | ||
.landing-page { | ||
text-align: center; | ||
margin-top: 100px; | ||
} | ||
|
||
.landing-page h1 { | ||
font-size: 4em; | ||
color: #333; | ||
} | ||
|
||
.landing-page a { | ||
display: block; | ||
margin-top: 20px; | ||
text-decoration: none; | ||
color: #007bff; | ||
font-size: 1.2em; | ||
} | ||
|
||
.landing-page button { | ||
margin-top: 20px; | ||
padding: 10px 20px; | ||
background-color: #252525; | ||
color: #fff; | ||
border: none; | ||
border-radius: 10px; | ||
font-size: 1.2em; | ||
cursor: pointer; | ||
} | ||
|
||
/* Media query for screens smaller than 768px */ | ||
/* for mobile responsiveness for Landing page edit this only */ | ||
@media (max-width: 768px) { | ||
.landing-page h1 { | ||
font-size: 2em; | ||
} | ||
|
||
.landing-page a { | ||
font-size: 1em; | ||
} | ||
|
||
.landing-page button { | ||
padding: 8px 15px; | ||
font-size: 1em; | ||
} | ||
} |
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,44 +1,18 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
import Stars from "../components/js/Stars"; | ||
import styles from "./LandingPage.css"; | ||
|
||
function LandingPage() { | ||
return ( | ||
<div className="landing-page" style={styles.container}> | ||
<h1 style={styles.heading}>Welcome</h1> | ||
<Stars/> | ||
<Link to="/editor" style={styles.link}><button style={styles.button}>Click Here to Proceed</button></Link> | ||
<Stars /> | ||
<Link to="/editor" style={styles.link}> | ||
<button style={styles.button}>Click Here to Proceed</button> | ||
</Link> | ||
</div> | ||
); | ||
} | ||
|
||
const styles = { | ||
container: { | ||
textAlign: "center", | ||
marginTop: "100px", | ||
}, | ||
heading: { | ||
fontSize: "4em", | ||
color: "#333", | ||
}, | ||
link: { | ||
display: "block", | ||
marginTop: "20px", | ||
textDecoration: "none", | ||
color: "#007bff", | ||
fontSize: "1.2em", | ||
}, | ||
button: { | ||
marginTop: "20px", | ||
padding: "10px 20px", | ||
backgroundColor: "#252525", | ||
color: "#fff", | ||
border: "none", | ||
borderRadius: "10px", | ||
fontSize: "1.2em", | ||
cursor: "pointer", | ||
boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)", | ||
} | ||
}; | ||
|
||
export default LandingPage; |