diff --git a/app/soapbox/features/ui/index.js b/app/soapbox/features/ui/index.js index 370400dd1..434a9fe2d 100644 --- a/app/soapbox/features/ui/index.js +++ b/app/soapbox/features/ui/index.js @@ -32,6 +32,7 @@ import ProfilePage from 'soapbox/pages/profile_page'; // import GroupSidebarPanel from '../groups/sidebar_panel'; import SearchPage from 'soapbox/pages/search_page'; import HomePage from 'soapbox/pages/home_page'; +import AdminPage from 'soapbox/pages/admin_page'; import SidebarMenu from '../../components/sidebar_menu'; import { connectUserStream } from '../../actions/streaming'; import { Redirect } from 'react-router-dom'; @@ -157,14 +158,6 @@ const LAYOUT = { , ], }, - ADMIN: { - LEFT: [ - , - ], - RIGHT: [ - , - ], - }, STATUS: { TOP: null, LEFT: null, @@ -286,8 +279,8 @@ class SwitchingColumnsArea extends React.PureComponent { - - + + diff --git a/app/soapbox/pages/admin_page.js b/app/soapbox/pages/admin_page.js new file mode 100644 index 000000000..28dd2d25f --- /dev/null +++ b/app/soapbox/pages/admin_page.js @@ -0,0 +1,40 @@ +import React from 'react'; +import ImmutablePureComponent from 'react-immutable-pure-component'; +import LinkFooter from '../features/ui/components/link_footer'; +import AdminNav from 'soapbox/features/admin/components/admin_nav'; + +export default +class AdminPage extends ImmutablePureComponent { + + render() { + const { children } = this.props; + + return ( +
+
+
+ +
+
+ +
+
+ +
+
+ {children} +
+
+ +
+
+ +
+
+
+
+
+ ); + } + +} diff --git a/app/styles/components/admin.scss b/app/styles/components/admin.scss index a90d6e468..01e343a03 100644 --- a/app/styles/components/admin.scss +++ b/app/styles/components/admin.scss @@ -94,3 +94,24 @@ .slist .item-list article:nth-child(2n-1) .unapproved-account { background-color: hsla(var(--accent-color_hsl), 0.07); } + +.page--admin { + @media screen and (max-width: 895px) { + .columns-area__panels { + flex-direction: column; + align-items: center; + + &__pane--left { + display: block; + width: 100%; + max-width: 600px; + padding: 20px 20px 0; + box-sizing: border-box; + + .columns-area__panels__pane__inner { + width: auto; + } + } + } + } +}