Skip to content

Commit

Permalink
put right section in
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxfzxxx committed Oct 31, 2022
1 parent 57fe5f5 commit 81e9b80
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 12 deletions.
44 changes: 44 additions & 0 deletions src/frontend/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,49 @@
"body": "some comment",
"postId": 1
}
],
"reviews": [
{
"id": 1667162661762,
"name": "Zongxian Feng",
"date": "Sun Oct 30 2022 15:44:21 GMT-0500 (Central Daylight Time)",
"text": "This is an amazing place to live, I love it",
"vote": true
},
{
"id": 1667162869459,
"name": "Zongxian Feng",
"date": "Sun Oct 30 2022 15:47:49 GMT-0500 (Central Daylight Time)",
"text": "SHit shit shitshitshit",
"vote": false
},
{
"id": 1667166019563,
"name": "Zongxian Feng",
"date": "Sun Oct 30 2022 16:40:19 GMT-0500 (Central Daylight Time)",
"text": "sdf",
"vote": true
}
],
"pics": [
{
"url": "https://images.pexels.com/photos/439391/pexels-photo-439391.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"
},
{
"url": "https://media.istockphoto.com/photos/exterior-view-of-modern-apartment-building-offering-luxury-rental-in-picture-id1322575582?b=1&k=20&m=1322575582&s=170667a&w=0&h=bGCtLpgCEorQuVdW2lbWguNZHcOGPePSwDibgbgyh0U="
},
{
"url": "https://images1.apartments.com/i2/jvLRkH1L1XC4jO5qlpRV1IBCov_KYYwWbUIYii9rhqA/117/capstone-quarters-urbana-il-building-photo.jpg"
}
],
"apt": [
{
"name": "Illini Tower",
"address": "405 E John Street, Champaign, IL, 61820",
"price_min": 200,
"price_max": 1600,
"upvotes": 32,
"downvotes": 17
}
]
}
6 changes: 2 additions & 4 deletions src/frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React from 'react';
import './App.css';
import Searching from './components/Searching';
import MainPage from './pages/MainPage';

function App() {
return (
<div className="App">
{/*<LeftSection/>
<Header/>*/}
<Searching />
{/*<Login/>*/}
<MainPage />
</div>
);
}
Expand Down
13 changes: 10 additions & 3 deletions src/frontend/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import React from 'react';
import { Col, Row } from 'react-bootstrap';
import Searching from '../components/Searching';
import LeftSection from '../sections/MainPageLeftSection';
import RightSection from '../sections/MainPageRightSection';

function MainPage() {
return (
<div>
<Searching />
<LeftSection />
<div className="d-flex flex-row">
<div className="w-50">
<LeftSection />
</div>
<div className="w-50">
<RightSection />
</div>
</div>
</div>
);
}

export default MainPage;
5 changes: 0 additions & 5 deletions src/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4962,11 +4962,6 @@
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"

"fsevents@^2.3.2", "fsevents@~2.3.2":
"integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
"version" "2.3.2"

"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
Expand Down

3 comments on commit 81e9b80

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 0.600s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 0.648s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 0.815s ⏱️

Please sign in to comment.