Skip to content

Commit

Permalink
added privacy policy page
Browse files Browse the repository at this point in the history
  • Loading branch information
liustanley committed Apr 26, 2020
1 parent 4de9dba commit a38bebd
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 10 deletions.
8 changes: 4 additions & 4 deletions java-server/src/main/resources/import.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*Insert buildings*/
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('White Hall', '21 Forsyth Street', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/WHITE-exterior-02-e1511889474120.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/WHITE-exterior-02-e1511889474120.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "Freshmen", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('Stetson West', '10 Forsyth Street, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "Freshmen", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('Stetson East', '11 Speare Place, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "Freshmen", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('East Village', '291 St. Botolph Street, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/exterior-04.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/exterior-04.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "Freshmen", "Enhanced, Standard", "Suite", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('White Hall', '21 Forsyth Street', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/WHITE-exterior-02-e1511889474120.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/WHITE-exterior-02-e1511889474120.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "First Year", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('Stetson West', '10 Forsyth Street, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "First Year", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('Stetson East', '11 Speare Place, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/STW-exterior-Speare-Quad-03-e1511889294218.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "First Year", "Economy, Standard", "Traditional", 3425);
INSERT INTO buildings (name, address, thumbnail_image_url, main_image_url, amenities, resident_types, building_type, room_types, minimum_cost) VALUES ('East Village', '291 St. Botolph Street, Boston MA 02115', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/exterior-04.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/exterior-04.jpg', "Laundry, Proctor, Vending Machines, Elevator, Kitchen, Lounge", "First Year", "Enhanced, Standard", "Suite", 3425);

/*Second year buildings*/
INSERT INTO buildings (name, address, amenities, resident_types, building_type, room_types, minimum_cost, thumbnail_image_url, main_image_url) VALUES ('International Village', '1155 Tremont Street, Boston MA 02115', "Laundry, Proctor, Vending Machines, Elevator, Lounge, Furniture, Air Conditioning", "First Year, Second Year, Upperclassmen", "Enhanced", "Suite-Style", 5060, 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/INV-exterior-01.jpg', 'https://www.northeastern.edu/housing/wp-content/uploads/2017/05/INV-exterior-01.jpg');
Expand Down
2 changes: 2 additions & 0 deletions react-client/src/containers/AppRoutingContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import buildingReducer from "../reducers/BuildingReducer";
import reviewReducer from "../reducers/ReviewReducer";
import ViewProfileContainer from "./ViewProfileContainer";
import pictureReducer from "../reducers/PictureReducer";
import PrivacyContainer from "./PrivacyContainer";

const rootReducer = combineReducers({
users: userReducer,
Expand Down Expand Up @@ -64,6 +65,7 @@ class AppRoutingContainer extends React.Component {
<Route path="/login" component={LoginContainer} />
<Route path="/bookmarks" component={BookmarksContainer} />
<Route path="/register" component={RegistrationContainer} />
<Route path="/privacy" component={PrivacyContainer} />
</Switch>
</Router>
</Provider>
Expand Down
7 changes: 4 additions & 3 deletions react-client/src/containers/HomeContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import staffService from "../services/StaffService";
import NavBar from "../components/home/NavBar";
import ReviewList from "../components/details/ReviewList";
import ReviewService from "../services/ReviewService";
import { Link } from "react-router-dom";

const ReviewWrapper = styled.div`
margin: 32px 60px 32px 60px;
Expand Down Expand Up @@ -191,12 +192,12 @@ class HomeContainer extends React.Component {
<Footer>
<span>
Check out our{" "}
<a
<Link
className="privacy"
href="https://docs.google.com/document/d/1kXHBNsuqeXzpO41KTajtD32bEl5Sh7KnC3b4SC6XOv4/edit"
to="/privacy"
>
privacy policy.
</a>
</Link>
</span>
</Footer>
</Body>
Expand Down
110 changes: 110 additions & 0 deletions react-client/src/containers/PrivacyContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import React from "react";
import LoginForm from "../components/registration/LoginForm";
import NavBar from "../components/home/NavBar";
import { connect, Provider } from "react-redux";
import { findBookmarksForUser, logout, profile } from "../actions/UserActions";
import userService from "../services/UserService";
import staffService from "../services/StaffService";
import styled from "styled-components";

const Header = styled.h1`
font-weight: 700;
font-size: 28px;
margin-top: 32px;
`;

const BuildingWrapper = styled.div`
/* margin: 32px 60px 32px 60px; */
`;

const Summary = styled.div`
font-weight: 400;
font-style: italic;
margin-top: 16px;
`;

const Body = styled.div`
font-weight: 500;
margin-top: 24px;
`;

const List = styled.div`
margin-top: 16px;
font-weight: 500;
`;

class PrivacyContainer extends React.Component {
render() {
return (
<div>
<NavBar
profile={this.props.profile}
loggedIn={this.props.loggedIn}
logout={this.props.logout}
role={this.props.role}
/>

<BuildingWrapper className="container">
<Header>Our Privacy Policy</Header>
<Summary>
Summary: NeuDorms will not store any of your information if you do not create an account. If you are registered and choose to post reviews,
however, you will be submitting information to us that is publicly available and reveals where you have previously lived and where you intend to live.
</Summary>
<Body>
NeuDorms was built to give Northeastern Students a better way to explore and select their housing options.
Quality of service these days is largely based on customer satisfaction - think of Amazon, AirBnb, and Yelp.
That’s why we allow students to post reviews of their past dorms - to give potential future residents a more transparent view of their options.
Similarly, we are dedicated to respecting students’ privacy and personal information by providing transparency into our privacy practices.
</Body>
<List>
<ul>
<li className="mb-2">If you register on our website, we will collect information about their Husky email, major, and school seniority. This information is only used to build a stronger sense of community and identity on our website between student users.</li>
<li className="mb-2">If you choose to post reviews, information about where you have previously lived will be available to the public. Similarly, any pictures you post will be available for everyone to see. Posting reviews is entirely optional and while your reviews may help other students with housing selection, we want you to understand that you will also be broadcasting your opinions and pictures to the public.</li>
<li className="mb-2">Additionally, your reviews will be sent over to Google to be analyzed for sentiment. This sentiment data helps us to automatically give dorms ratings based on your review. However, this also means that you will be sending information to a large corporation that profits off using your data to personalize advertisements.</li>
<li>Finally, if you choose to bookmark any buildings, we will store that information for your use. This data will not be intentionally public; however, anyone with access will know where you may be considering to live.</li>
</ul>
</List>
<Body>
We cannot guarantee that your data will be safely stored since we do not have the funding to implement advanced encryption and security into our website and its services.
The majority of our services can be used without registering and without giving us any of your information. That said, our website relies heavily on student reviews,
and while we would greatly appreciate any and all contributions in the form of reviews, we want you to understand the implications.
</Body>
</BuildingWrapper>
</div>
);
}
}

const dispatchToPropertyMapper = (dispatch) => ({
getProfile: () => {
userService.profile().then((actualProfile) => {
if (actualProfile && actualProfile.username) {
dispatch(profile(actualProfile, "user"));
} else {
staffService.profile().then((staffProfile) => {
if (staffProfile && staffProfile.username) {
dispatch(profile(staffProfile, "staff"));
} else {
dispatch(logout());
}
});
}
});
},
logout: () => {
userService.logout().then(dispatch(logout()));
staffService.logout();
},
});

const stateToPropertyMapper = (state) => ({
profile: state.users.profile,
loggedIn: state.users.loggedIn,
role: state.users.role,
bookmarks: state.users.bookmarks,
});

export default connect(
stateToPropertyMapper,
dispatchToPropertyMapper
)(PrivacyContainer);
7 changes: 4 additions & 3 deletions react-client/src/containers/SearchContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import staffService from "../services/StaffService";
import NavBar from "../components/home/NavBar";
import CreateBuildingForm from "../components/home/CreateBuildingForm";
import $ from "jquery";
import { Link } from "react-router-dom";

const BuildingWrapper = styled.div`
margin: 32px 60px 60px 60px;
Expand Down Expand Up @@ -183,12 +184,12 @@ class SearchContainer extends React.Component {
<Footer>
<span>
Check out our{" "}
<a
<Link
className="privacy"
href="https://docs.google.com/document/d/1kXHBNsuqeXzpO41KTajtD32bEl5Sh7KnC3b4SC6XOv4/edit"
to="/privacy"
>
privacy policy.
</a>
</Link>
</span>
</Footer>
</div>
Expand Down

0 comments on commit a38bebd

Please sign in to comment.