Skip to content

Commit

Permalink
Changed screenshots in landing page plus fixed some bugs in code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
istoleabread committed Mar 13, 2024
1 parent 721d780 commit 38778ef
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 33 deletions.
29 changes: 24 additions & 5 deletions src/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import lastStyles from "./styles/landingpageLast.module.css";
import footerStyles from "./styles/footer.module.css";

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faGithub, faInstagram, faSnapchat, faYoutube } from "@fortawesome/free-brands-svg-icons";
import { faGithub, faReact, faSnapchat } from "@fortawesome/free-brands-svg-icons";
import { useNavigate } from "react-router-dom";
import { faEnvelope } from "@fortawesome/free-solid-svg-icons";

function LandingPage() {
const navigator = useNavigate();
Expand Down Expand Up @@ -194,10 +195,28 @@ function LandingPage() {
</div>
<div className={footerStyles.icons}>
<div>
<FontAwesomeIcon icon={faGithub} />
<FontAwesomeIcon icon={faYoutube} />
<FontAwesomeIcon icon={faInstagram} />
<FontAwesomeIcon icon={faSnapchat} />
<FontAwesomeIcon
icon={faGithub}
onClick={() => {
window.open("https://github.com/istoleabread/snippet-share");
}}
title="Snippet Sphere is open-source!"
/>
<FontAwesomeIcon
icon={faEnvelope}
onClick={() => {
window.open("mailto://[email protected]");
}}
title="Email us!"
/>
<FontAwesomeIcon
icon={faReact}
title="This project was built in React!"
/>
<FontAwesomeIcon
icon={faSnapchat}
title="This place felt empty so added a non-functional snapchat icon"
/>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/assets/laptop-snippet-sphere-cut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions src/assets/laptop-snippet-sphere.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/assets/mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 7 additions & 9 deletions src/assets/snippets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/CodeEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function CodeEditor() {
<>
{loading && <Loading />}
{snippetNotFound && <ErrorPage missingSnippet={true} />}
{showSuccess && <Alert message="Saved Successfully!" type="success" showIcon />}
{showSuccess && <Alert message="Saved Successfully!" type="success" showIcon className={styles.successBox}/>}
{!snippetNotFound && (isPublic || (user !== null && user.uid === uid)) && (
<div className={styles.editorWrapper}>
<div className={styles.headerTop}>
Expand Down
1 change: 0 additions & 1 deletion src/components/Snippet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ function Header({ addSnippet, searchValue, setSearchValue }) {
<div className={styles.reactIcons}>
<Search searchValue={searchValue} setSearchValue={setSearchValue} />
<FontAwesomeIcon icon={faPlus} title="Add new snippet!" onClick={addSnippet} />
<FontAwesomeIcon icon={faUser} title="Your Account" />
</div>
</div>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Snippet.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
padding: 10px;
padding-bottom: 0;
color: #e0e0e0;
padding-right: 25px;
padding-right: 35px;
}

& p {
Expand Down
6 changes: 4 additions & 2 deletions src/styles/codeEditor.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.ant-alert-success {
position: absolute;
.successBox {
position: fixed;
top: 20px;
right: 20px;
}
Expand Down Expand Up @@ -31,6 +31,8 @@
font-family: 'Montserrat', sans-serif;
color: #e0e0e0;
outline: none;
width: 100%;
max-width: 600px;

&:focus {
border-bottom: 1px solid;
Expand Down
6 changes: 4 additions & 2 deletions src/styles/features.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
border-top: none;
padding: 50px;
padding: 80px 10px;
box-shadow: 0px 10px 31px -7px var(--bg-color);
margin-bottom: 50px;

Expand Down Expand Up @@ -141,13 +141,15 @@
}

.heading {
padding: 50px 0px !important;

& img {
margin-top: 0 !important;
width: 100%;
}

& p {
font-size: 1.2rem !important;
font-size: 2rem !important;
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/styles/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
padding-right: 2rem;
justify-content: flex-end;

& svg {
cursor: pointer;
}

& svg:not(:last-child) {
margin-right: 2rem;

Expand Down

0 comments on commit 38778ef

Please sign in to comment.