mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -2,7 +2,6 @@
|
||||
color: #f44336 !important;
|
||||
}
|
||||
|
||||
|
||||
#sellout-app .Mui-focused::after {
|
||||
#sellout-app .Mui-focused::after {
|
||||
border-bottom: #f44336 solid 3px;
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,22 @@
|
||||
import React from "react";
|
||||
import { AppWrapper } from "../../../ui/components/AppWrapper";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { SelloutTitle } from "./SelloutTitle";
|
||||
import { SelloutListContainer } from "./SelloutList/SelloutListContainer";
|
||||
import { NavigationBar } from "./navigation/NavigationBar";
|
||||
import { Switch, Route } from "react-router-dom";
|
||||
import React from 'react';
|
||||
import { AppWrapper } from '../../../ui/components/AppWrapper';
|
||||
import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { SelloutTitle } from './SelloutTitle';
|
||||
import { SelloutListContainer } from './SelloutList/SelloutListContainer';
|
||||
import { NavigationBar } from './navigation/NavigationBar';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
|
||||
import "./Sellout.css";
|
||||
import { ListingFormContainer } from "./form/ListingFormContainer";
|
||||
import './Sellout.css';
|
||||
import { ListingFormContainer } from './form/ListingFormContainer';
|
||||
|
||||
export const SelloutApp = () => {
|
||||
return (
|
||||
<AppWrapper id="sellout-app">
|
||||
<AppWrapper id='sellout-app'>
|
||||
<SelloutTitle />
|
||||
<AppContent>
|
||||
<Switch>
|
||||
<Route path="/sellout" exact component={SelloutListContainer} />
|
||||
<Route path="/sellout/new" component={ListingFormContainer} />
|
||||
<Route path='/sellout' exact component={SelloutListContainer} />
|
||||
<Route path='/sellout/new' component={ListingFormContainer} />
|
||||
</Switch>
|
||||
</AppContent>
|
||||
<NavigationBar />
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
import React from "react";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { Button, Typography, Paper } from "@material-ui/core";
|
||||
import { ImageDisplay } from "../images/ImageDisplay";
|
||||
import { ListItem } from "../../../../ui/components/ListItem";
|
||||
import ChatIcon from "@material-ui/icons/Chat";
|
||||
import PhoneIcon from "@material-ui/icons/Phone";
|
||||
import React from 'react';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { Button, Typography, Paper } from '@material-ui/core';
|
||||
import { ImageDisplay } from '../images/ImageDisplay';
|
||||
import { ListItem } from '../../../../ui/components/ListItem';
|
||||
import ChatIcon from '@material-ui/icons/Chat';
|
||||
import PhoneIcon from '@material-ui/icons/Phone';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
overflowX: "hidden",
|
||||
display: "flex",
|
||||
flexFlow: "row nowrap",
|
||||
alignItems: "flex-start",
|
||||
width: "100%",
|
||||
marginTop: "3px",
|
||||
overflowX: 'hidden',
|
||||
display: 'flex',
|
||||
flexFlow: 'row nowrap',
|
||||
alignItems: 'flex-start',
|
||||
width: '100%',
|
||||
marginTop: '3px',
|
||||
},
|
||||
content: {
|
||||
display: "flex",
|
||||
marginTop: "-10px",
|
||||
flexFlow: "column nowrap",
|
||||
width: "100%",
|
||||
display: 'flex',
|
||||
marginTop: '-10px',
|
||||
flexFlow: 'column nowrap',
|
||||
width: '100%',
|
||||
},
|
||||
paper: {
|
||||
overflow: "auto",
|
||||
display: "flex",
|
||||
flexFlow: "column",
|
||||
alignItems: "flex",
|
||||
height: "auto",
|
||||
background: "#232323",
|
||||
overflow: 'auto',
|
||||
display: 'flex',
|
||||
flexFlow: 'column',
|
||||
alignItems: 'flex',
|
||||
height: 'auto',
|
||||
background: '#232323',
|
||||
marginBottom: 20,
|
||||
},
|
||||
header: {
|
||||
@@ -48,33 +48,38 @@ export const SelloutItem = (listing) => {
|
||||
<div className={classes.content}>
|
||||
<Paper elevation={2} className={classes.paper}>
|
||||
<div className={classes.header}>
|
||||
<Typography className={classes.headerTypo} variant="h5">
|
||||
<Typography className={classes.headerTypo} variant='h5'>
|
||||
{listing.name}
|
||||
</Typography>
|
||||
<Typography
|
||||
className={classes.headerTypo}
|
||||
style={{ borderBottom: "1px solid #f44336" }}
|
||||
style={{ borderBottom: '1px solid #f44336' }}
|
||||
>
|
||||
{listing.number}
|
||||
</Typography>
|
||||
<Typography variant="h5" style={{ padding: 5}}>
|
||||
<Typography variant='h5' style={{ padding: 5 }}>
|
||||
{listing.title}
|
||||
</Typography>
|
||||
</div>
|
||||
{listing.url ? (
|
||||
<ImageDisplay imgURL={listing.url} />
|
||||
): (
|
||||
<Typography style={{ margin: 10 }}>No image provided <span role="img" aria-label="emoji">🙁</span></Typography>
|
||||
) }
|
||||
<Typography variant="h6" className={classes.desc}>
|
||||
) : (
|
||||
<Typography style={{ margin: 10 }}>
|
||||
No image provided{' '}
|
||||
<span role='img' aria-label='emoji'>
|
||||
🙁
|
||||
</span>
|
||||
</Typography>
|
||||
)}
|
||||
<Typography variant='h6' className={classes.desc}>
|
||||
{listing.description}
|
||||
</Typography>
|
||||
<div>
|
||||
<Button>
|
||||
<ChatIcon style={{ color: "#f44336" }} />
|
||||
<ChatIcon style={{ color: '#f44336' }} />
|
||||
</Button>
|
||||
<Button>
|
||||
<PhoneIcon style={{ color: "#f44336" }} />
|
||||
<PhoneIcon style={{ color: '#f44336' }} />
|
||||
</Button>
|
||||
</div>
|
||||
</Paper>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { List } from "../../../../ui/components/List";
|
||||
import { SelloutItem } from "./SelloutItem";
|
||||
import React from 'react';
|
||||
import { List } from '../../../../ui/components/List';
|
||||
import { SelloutItem } from './SelloutItem';
|
||||
|
||||
export const SelloutList = ({ listings }) => {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { useListing } from "../../hooks/useListing";
|
||||
import { SelloutList } from "./SelloutList";
|
||||
import React from 'react';
|
||||
import { useListing } from '../../hooks/useListing';
|
||||
import { SelloutList } from './SelloutList';
|
||||
|
||||
export const SelloutListContainer = () => {
|
||||
const { listing } = useListing();
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import React, { useState } from "react";
|
||||
import { makeStyles, Button, TextField } from "@material-ui/core";
|
||||
import Nui from "../../../../os/nui-events/utils/Nui";
|
||||
import React, { useState } from 'react';
|
||||
import { makeStyles, Button, TextField } from '@material-ui/core';
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
|
||||
import "../Sellout.css"
|
||||
import '../Sellout.css';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
width: "100%",
|
||||
margin: "auto",
|
||||
textAlign: "center",
|
||||
width: '100%',
|
||||
margin: 'auto',
|
||||
textAlign: 'center',
|
||||
},
|
||||
input: {
|
||||
marginBottom: 25,
|
||||
@@ -20,10 +20,10 @@ const useStyles = makeStyles((theme) => ({
|
||||
fontSize: 20,
|
||||
},
|
||||
postButton: {
|
||||
display: "block",
|
||||
margin: "auto",
|
||||
background: "#f44336",
|
||||
width: "80%",
|
||||
display: 'block',
|
||||
margin: 'auto',
|
||||
background: '#f44336',
|
||||
width: '80%',
|
||||
fontSize: 20,
|
||||
},
|
||||
}));
|
||||
@@ -31,53 +31,55 @@ const useStyles = makeStyles((theme) => ({
|
||||
export const ListingForm = () => {
|
||||
const classes = useStyles();
|
||||
|
||||
const [ title, setTitle ] = useState('');
|
||||
const [ url, setUrl ] = useState('');
|
||||
const [ description, setDescription ] = useState('');
|
||||
const [title, setTitle] = useState('');
|
||||
const [url, setUrl] = useState('');
|
||||
const [description, setDescription] = useState('');
|
||||
|
||||
const addListing = () => {
|
||||
Nui.send('phone:addListing', {
|
||||
title,
|
||||
url,
|
||||
description
|
||||
})
|
||||
}
|
||||
description,
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<h1>New Listing</h1>
|
||||
<TextField
|
||||
className={classes.input}
|
||||
onChange={e => setTitle(e.target.value)}
|
||||
placeholder="Title on listing.."
|
||||
onChange={(e) => setTitle(e.target.value)}
|
||||
placeholder='Title on listing..'
|
||||
inputProps={{ className: classes.textFieldInput }}
|
||||
style={{ width: "80%" }}
|
||||
size="medium"
|
||||
style={{ width: '80%' }}
|
||||
size='medium'
|
||||
/>
|
||||
|
||||
<TextField
|
||||
className={classes.input}
|
||||
placeholder="Image URL"
|
||||
onChange={e => setUrl(e.target.value)}
|
||||
placeholder='Image URL'
|
||||
onChange={(e) => setUrl(e.target.value)}
|
||||
inputProps={{ className: classes.textFieldInput }}
|
||||
style={{ width: "80%" }}
|
||||
size="medium"
|
||||
variant="outlined"
|
||||
style={{ width: '80%' }}
|
||||
size='medium'
|
||||
variant='outlined'
|
||||
/>
|
||||
|
||||
<TextField
|
||||
className={classes.input}
|
||||
onChange={e => setDescription(e.target.value)}
|
||||
placeholder="Description"
|
||||
onChange={(e) => setDescription(e.target.value)}
|
||||
placeholder='Description'
|
||||
inputProps={{ className: classes.multilineFieldInput }}
|
||||
style={{ width: "80%" }}
|
||||
size="medium"
|
||||
style={{ width: '80%' }}
|
||||
size='medium'
|
||||
multiline
|
||||
rows={4}
|
||||
variant="outlined"
|
||||
variant='outlined'
|
||||
/>
|
||||
|
||||
<Button onClick={addListing} className={classes.postButton}>Post</Button>
|
||||
<Button onClick={addListing} className={classes.postButton}>
|
||||
Post
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { ListingForm } from "./ListingForm";
|
||||
import React from 'react';
|
||||
import { ListingForm } from './ListingForm';
|
||||
|
||||
export const ListingFormContainer = () => {
|
||||
return (
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import React from "react";
|
||||
import React from 'react';
|
||||
|
||||
export const ImageDisplay = ({ imgURL }) => {
|
||||
return (
|
||||
<img
|
||||
src={imgURL}
|
||||
alt="twitter display"
|
||||
style={{ height: 200, width: 350, margin: "auto" }}
|
||||
alt='twitter display'
|
||||
style={{ height: 200, width: 350, margin: 'auto' }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user