Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
.idea/vcs.xml
.idea/workspace.xml

.vscode/*
.vscode/*
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# location

Note: Please ensure you have installed <code><a href="https://nodejs.org/en/download/">nodejs</a></code>

To preview and run the project on your device:
1) Open project folder in <a href="https://code.visualstudio.com/download">Visual Studio Code</a>
2) In the terminal, run `npm install`
3) Run `npm start` to view project in browser

41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "location",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^29.5.0",
"@types/node": "^16.11.14",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"typescript": "^4.5.4",
"react-router-dom": "^6.2.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"root": true
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file added public/google-maps-image@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/group-151@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta property="og:image" content="%PUBLIC_URL%/thumbnail.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000" />
<meta name="description" content="Web site created using Locofy" />
<title>location</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
Binary file added public/rectangle-49@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/simplification@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/social-media-buttons@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import { useEffect } from "react";
import {
Routes,
Route,
useNavigationType,
useLocation,
} from "react-router-dom";
import Contact from "./pages/Contact";
import Frame from "./pages/Frame";
import Group from "./pages/Group";
import Frame1 from "./pages/Frame1";

function App() {
const action = useNavigationType();
const location = useLocation();
const pathname = location.pathname;

useEffect(() => {
if (action !== "POP") {
window.scrollTo(0, 0);
}
}, [action, pathname]);

useEffect(() => {
let title = "";
let metaDescription = "";

switch (pathname) {
case "/":
title = "";
metaDescription = "";
break;
case "/frame":
title = "";
metaDescription = "";
break;
case "/group-151":
title = "";
metaDescription = "";
break;
case "/frame1":
title = "";
metaDescription = "";
break;
}

if (title) {
document.title = title;
}

if (metaDescription) {
const metaDescriptionTag: HTMLMetaElement | null = document.querySelector(
'head > meta[name="description"]'
);
if (metaDescriptionTag) {
metaDescriptionTag.content = metaDescription;
}
}
}, [pathname]);

return (
<Routes>
<Route path="/" element={<Contact />} />
<Route path="/frame" element={<Frame />} />
<Route path="/group-151" element={<Group />} />
<Route path="/frame1" element={<Frame1 />} />
</Routes>
);
}
export default App;
9 changes: 9 additions & 0 deletions src/components/LocationText.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.location {
font-size: 40px;
display: inline-block;
font-family: var(--font-space-grotesk);
color: var(--color-white);
text-align: center;
width: 310px;
height: 109px;
}
8 changes: 8 additions & 0 deletions src/components/LocationText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./LocationText.module.css";

const LocationText: FunctionComponent = () => {
return <b className={styles.location}>Location</b>;
};

export default LocationText;
5 changes: 5 additions & 0 deletions src/components/Rectangle.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.rectangleDiv {
background-color: #843b3b;
width: 642px;
height: 481px;
}
8 changes: 8 additions & 0 deletions src/components/Rectangle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./Rectangle.module.css";

const Rectangle: FunctionComponent = () => {
return <div className={styles.rectangleDiv} />;
};

export default Rectangle;
5 changes: 5 additions & 0 deletions src/components/RectangleVector.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.rectangleDiv {
background-color: #702122;
width: 642px;
height: 192px;
}
8 changes: 8 additions & 0 deletions src/components/RectangleVector.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./RectangleVector.module.css";

const RectangleVector: FunctionComponent = () => {
return <div className={styles.rectangleDiv} />;
};

export default RectangleVector;
9 changes: 9 additions & 0 deletions src/components/TBDText.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.tbd {
font-size: 20px;
font-family: var(--font-space-grotesk);
color: var(--color-gray);
text-align: left;
display: inline-block;
width: 437.7px;
height: 61.5px;
}
8 changes: 8 additions & 0 deletions src/components/TBDText.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./TBDText.module.css";

const TBDText: FunctionComponent = () => {
return <div className={styles.tbd}>TBD</div>;
};

export default TBDText;
6 changes: 6 additions & 0 deletions src/components/TBDText1.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.tbd {
font-size: var(--font-size-16xl);
font-family: var(--font-space-grotesk);
color: var(--color-gray);
text-align: center;
}
8 changes: 8 additions & 0 deletions src/components/TBDText1.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./TBDText1.module.css";

const TBDText1: FunctionComponent = () => {
return <b className={styles.tbd}>TBD</b>;
};

export default TBDText1;
6 changes: 6 additions & 0 deletions src/components/TBDText2.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.tbd {
font-size: var(--font-size-16xl);
font-family: var(--font-space-grotesk);
color: var(--color-gray);
text-align: center;
}
8 changes: 8 additions & 0 deletions src/components/TBDText2.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./TBDText2.module.css";

const TBDText2: FunctionComponent = () => {
return <b className={styles.tbd}>TBD</b>;
};

export default TBDText2;
6 changes: 6 additions & 0 deletions src/components/TBDText3.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.tbd {
font-size: var(--font-size-16xl);
font-family: var(--font-space-grotesk);
color: var(--color-gray);
text-align: center;
}
8 changes: 8 additions & 0 deletions src/components/TBDText3.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { FunctionComponent } from "react";
import styles from "./TBDText3.module.css";

const TBDText3: FunctionComponent = () => {
return <b className={styles.tbd}>TBD</b>;
};

export default TBDText3;
20 changes: 20 additions & 0 deletions src/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");
body {
margin: 0;
line-height: normal;
}
:root {
/* fonts */
--font-space-grotesk: "Space Grotesk";

/* font sizes */
--font-size-16xl: 35px;
--font-size-3xl: 22px;

/* Colors */
--color-gray: #fffdfd;
--color-white: #fff;

/* Border radiuses */
--br-8xs: 5px;
}
20 changes: 20 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter } from "react-router-dom";
import "./global.css";

const container = document.getElementById("root");
const root = createRoot(container!);

root.render(
<BrowserRouter>
<App />
</BrowserRouter>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
Loading