Skip to content

Commit

Permalink
Refactor folder hierarchy (#21)
Browse files Browse the repository at this point in the history
* Move files to home directory for organization

* Rename front page to just home

* Refactored file paths of assets
  • Loading branch information
MinhLu12 authored Jul 10, 2020
1 parent 35aef25 commit e46c7e3
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Switch,
Route,
} from "react-router-dom";
import FrontPage from "./components/FrontPage";
import Home from "pages/home/Home";
import Navigation from "./components/Navigation/Navigation";

export default function App() {
Expand All @@ -18,7 +18,7 @@ export default function App() {
</Route>

<Route path="/">
<FrontPage></FrontPage>
<Home></Home>
</Route>
</Switch>

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Empty file added src/pages/contact/Placeholder
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import cn from './BeforeAndAfter.module.scss';
import TeethBefore from 'assets/before_and_after/teeth-before.png';
import TeethAfter from 'assets/before_and_after/teeth-after.png';
import TeethBefore from 'assets/home/before_and_after/teeth-before.png';
import TeethAfter from 'assets/home/before_and_after/teeth-after.png';

const BeforeAndAfter = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import cn from './FeaturedServices.module.scss';
import CosmeticDentistry from 'assets/services/cosmetic_dentistry.png';
import ImplantRestoration from 'assets/services/implant_restoration.png';
import RemovableProstho from 'assets/services/removable_prosthodontics.png';
import RestorativeDentistry from 'assets/services/restorative_dentistry.png';
import CosmeticDentistry from 'assets/home/services/cosmetic_dentistry.png';
import ImplantRestoration from 'assets/home/services/implant_restoration.png';
import RemovableProstho from 'assets/home/services/removable_prosthodontics.png';
import RestorativeDentistry from 'assets/home/services/restorative_dentistry.png';

const FeaturedServices = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/FrontPage.js → src/pages/home/Home.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import Summary from "./Summary/Summary";
import ContactInfo from "./ContactInfo/ContactInfo";
import ContactInfo from "components/ContactInfo/ContactInfo";
import FeaturedServices from "./FeaturedServices/FeaturedServices"
import Title from "./Title/Title";

export default function FrontPage() {
export default function Home() {
return (
<>
<Title></Title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import cn from './Summary.module.scss';
import DrBergin from 'assets/summary/dr_bergin.jpg';
import DrBergin from 'assets/home/summary/dr_bergin.jpg';
import { Button } from "@material-ui/core";

const Summary = () => {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

.Title {
display: flex;
background-image: url('../../assets/title/cepha.jpg');
background-image: url('../../../assets/home/title/cepha.jpg');
background-repeat: no-repeat;
background-color: white;
background-position: center;
Expand Down

0 comments on commit e46c7e3

Please sign in to comment.