Skip to content

Commit

Permalink
Rework everything again
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzJammyZz committed Sep 4, 2023
1 parent f4b14ee commit 3bcc687
Show file tree
Hide file tree
Showing 31 changed files with 686 additions and 1,275 deletions.
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"react": "^18.2.0",
"react-bootstrap": "^2.7.2",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-icons": "^4.8.0",
"react-responsive-masonry": "^2.1.7",
"react-router-dom": "^6.14.2",
Expand Down
7 changes: 4 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Welcome to Early Steps Daycare"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=fUuf6Y5hGO8tnKuts6q3Kbet3if2pR8N8doaKQ7B1Fq9FdUyz9VMlVeFmOlB"></script>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -24,10 +25,10 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Early Step</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<noscript>Welcome to Early Steps Daycare.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Early Steps Daycare",
"name": "Early Steps Daycare",
"icons": [
{
"src": "favicon.ico",
Expand Down
54 changes: 54 additions & 0 deletions src/ErrorPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.contentError {
display: table;
background-color: rgba(255, 255, 255, 0.95);
margin-top: 7rem;
margin-bottom: 2rem;
margin-left: 5vw;
height: 70vh;
width: 90vw;
min-height: 50%;
max-height: 100%;
border-bottom-right-radius: 80px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.3);
}

.contentError h1{
display:inline-flexbox;
margin-top: 2rem;
font-size: 5rem;
color: rgba(2, 2, 2, 0.719);
text-align: center;
font-family:serif;
/* font-family: 'Times New Roman', Times, serif; */
font-weight: 600;
}

.contentError p:nth-child(2) {
display:inline-flexbox;
margin-top: 2rem;
font-size: 1.5rem;
color: rgba(0, 0, 0, 0.719);
text-align: center;
/* font-family: 'Times New Roman', Times, serif; */
font-family:monospace;
}

.contentError p:nth-child(3) {
display:inline-flexbox;
margin-top: 2rem;
font-size: 2.5rem;
font-weight: 900;
color: rgba(255, 0, 0, 0.719);
text-align: center;
font-family:monospace;
}

.contentError p:nth-child(4) {
display:inline-flexbox;
margin-top: 2rem;
font-size: 1.5rem;
color: rgba(0, 0, 0, 0.719);
text-align: center;
font-family:monospace;
}
10 changes: 6 additions & 4 deletions src/ErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { useRouteError } from "react-router-dom";
import './ErrorPage.css'

export default function ErrorPage() {
const error = useRouteError();
console.error(error);

return (
<div id="error-page">
<h1>Oops!</h1>
<div className='contentError' id="error-page">
<h1>Oops...!<span className="line3"></span></h1>
<p>Sorry, an unexpected error has occurred.</p>
<p>
<i>{error.statusText || error.message}</i>
<p> <span className="errorwarn"><strong>Error:</strong>
<i> {error.statusText || error.message}</i></span>
</p>
<p>Please click on Home at top to direct to the right page.</p>
</div>
);
}
40 changes: 40 additions & 0 deletions src/components/Contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.contactContent {
display: table;
/* background-color: rgb(255, 255, 255); */
/* background-image: linear-gradient(rgb(255, 255, 255), rgb(221, 221, 221)); */
/* background: url('./images/baby.png') no-repeat;
background-size: 15%; */
background-color: rgba(255, 255, 255, 0.938);
height: 15vh;
width: 100%;
min-height: 50%;
max-height: 100%;
/* border-bottom-right-radius: 80px; */
border-style:dotted;
border-color: rgb(0, 0, 0);
}

.contactContent h2 {
text-align: center;
padding: 1rem;
}

.contactIcons {
display: flex;
justify-content: space-around;
text-align: center;
padding: 1rem;
font-size: 4rem;
}

.contactIcons a {
color: rgba(0, 0, 0, 0.897)
}

.contactIcons a:hover {
color: rgba(179, 179, 179, 0.486);
}

img {

}
18 changes: 18 additions & 0 deletions src/components/Contact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react'
import './Contact.css'
import {FaInstagram, FaTwitterSquare, FaFacebookSquare} from 'react-icons/fa'

function Contact() {
return (
<div className='contactContent'>
<h2>Follow Us<span className='line'></span></h2>
<div className='contactIcons'>
<a href='https://www.instagram.com/earlysteps_daycare/'>< FaInstagram /></a>
<a href='https://x.com/earlystepsdcare?s=11&t=XgxLi9cN0VBRn9seAql5Yg'>< FaTwitterSquare/></a>
<a href='https://www.facebook.com/profile.php?id=100095376022429'>< FaFacebookSquare/></a>
</div>
</div>
)
}

export default Contact
Loading

0 comments on commit 3bcc687

Please sign in to comment.