mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
added theme.js
This commit is contained in:
parent
16973fb340
commit
15f106ed1a
6
twistter-frontend/package-lock.json
generated
6
twistter-frontend/package-lock.json
generated
@ -119,9 +119,9 @@
|
|||||||
"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="
|
"integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="
|
||||||
},
|
},
|
||||||
"@types/react": {
|
"@types/react": {
|
||||||
"version": "16.9.3",
|
"version": "16.9.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.3.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.4.tgz",
|
||||||
"integrity": "sha512-Ogb2nSn+2qQv5opoCv7Ls5yFxtyrdUYxp5G+SWTrlGk7dmFKw331GiezCgEZj9U7QeXJi1CDtws9pdXU1zUL4g==",
|
"integrity": "sha512-ItGNmJvQ0IvWt8rbk5PLdpdQhvBVxAaXI9hDlx7UMd8Ie1iMIuwMNiKeTfmVN517CdplpyXvA22X4zm4jGGZnw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/prop-types": "*",
|
"@types/prop-types": "*",
|
||||||
"csstype": "^2.2.0"
|
"csstype": "^2.2.0"
|
||||||
|
|||||||
@ -51,3 +51,8 @@
|
|||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
color: #1da1f2;
|
color: #1da1f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-container {
|
||||||
|
max-width: 345px;
|
||||||
|
max-height: 125px;
|
||||||
|
}
|
||||||
@ -1,40 +1,47 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import '../App.css';
|
||||||
import StaticProfile from '../components/profile/StaticProfile';
|
|
||||||
import Grid from '@material-ui/core/Grid';
|
|
||||||
|
|
||||||
|
//import PropTypes from 'prop-types';
|
||||||
|
import StaticProfile from '../components/profile/StaticProfile';
|
||||||
|
//import Grid from '@material-ui/core/Grid';
|
||||||
|
import Card from '@material-ui/core/Card';
|
||||||
|
import CardMedia from '@material-ui/core/CardMedia';
|
||||||
|
import CardContent from '@material-ui/core/CardContent';
|
||||||
import PostSkeleton from '../util/PostSkeleton';
|
import PostSkeleton from '../util/PostSkeleton';
|
||||||
|
|
||||||
import { connect } from 'react-redux';
|
//import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class user extends Component {
|
class user extends Component {
|
||||||
render() {
|
render() {
|
||||||
const postMarkup = PostSkeleton;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<b>User page</b>
|
<div>
|
||||||
// <Grid container spacing={16}>
|
<h1>User Profile</h1>
|
||||||
// <Grid item sm={8} xs={12}>
|
<br/><br/>
|
||||||
// <b>postMarkup</b>
|
|
||||||
// {postMarkup}
|
<Card>
|
||||||
// </Grid>
|
<CardMedia
|
||||||
// {/* <Grid item sm={4} xs={12}>
|
component="img"
|
||||||
// <StaticProfile profile={this.state.profile} />
|
height="140"
|
||||||
// </Grid> */}
|
width="345"
|
||||||
// </Grid>
|
image="twistter-frontend/src/images/twistter-logo.png"
|
||||||
|
title="Post"
|
||||||
|
/>
|
||||||
|
<CardContent>
|
||||||
|
<b>This is the content of some post</b>
|
||||||
|
</CardContent>
|
||||||
|
|
||||||
|
</Card>
|
||||||
|
<br/><br/>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
user.propTypes = {
|
|
||||||
// getUserData: PropTypes.func.isRequired,
|
|
||||||
//data: PropTypes.object.isRequired
|
|
||||||
};
|
|
||||||
|
|
||||||
const mapStateToProps = (state) => ({
|
|
||||||
data: state.data
|
|
||||||
});
|
|
||||||
|
|
||||||
export default connect(user);
|
export default user;
|
||||||
|
|||||||
97
twistter-frontend/src/util/theme.js
Normal file
97
twistter-frontend/src/util/theme.js
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
export default {
|
||||||
|
palette: {
|
||||||
|
primary: {
|
||||||
|
light: '#1da1f2',
|
||||||
|
main: '#1da1f2',
|
||||||
|
dark: '#008394',
|
||||||
|
contrastText: '#fff'
|
||||||
|
},
|
||||||
|
secondary: {
|
||||||
|
light: '#ff6333',
|
||||||
|
main: '#ff3d00',
|
||||||
|
dark: '#b22a00',
|
||||||
|
contrastText: '#fff'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
typography: {
|
||||||
|
useNextVariants: true
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
textAlign: 'center'
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
margin: '20px auto 20px auto'
|
||||||
|
},
|
||||||
|
pageTitle: {
|
||||||
|
margin: '10px auto 10px auto'
|
||||||
|
},
|
||||||
|
textField: {
|
||||||
|
margin: '10px auto 10px auto'
|
||||||
|
},
|
||||||
|
button: {
|
||||||
|
marginTop: 20,
|
||||||
|
position: 'relative'
|
||||||
|
},
|
||||||
|
customError: {
|
||||||
|
color: 'red',
|
||||||
|
fontSize: '0.8rem',
|
||||||
|
marginTop: 10
|
||||||
|
},
|
||||||
|
progress: {
|
||||||
|
position: 'absolute'
|
||||||
|
},
|
||||||
|
invisibleSeparator: {
|
||||||
|
border: 'none',
|
||||||
|
margin: 4
|
||||||
|
},
|
||||||
|
visibleSeparator: {
|
||||||
|
width: '100%',
|
||||||
|
borderBottom: '1px solid rgba(0,0,0,0.1)',
|
||||||
|
marginBottom: 20
|
||||||
|
},
|
||||||
|
paper: {
|
||||||
|
padding: 20
|
||||||
|
},
|
||||||
|
profile: {
|
||||||
|
'& .image-wrapper': {
|
||||||
|
textAlign: 'center',
|
||||||
|
position: 'relative',
|
||||||
|
'& button': {
|
||||||
|
position: 'absolute',
|
||||||
|
top: '80%',
|
||||||
|
left: '70%'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'& .profile-image': {
|
||||||
|
width: 200,
|
||||||
|
height: 200,
|
||||||
|
objectFit: 'cover',
|
||||||
|
maxWidth: '100%',
|
||||||
|
borderRadius: '50%'
|
||||||
|
},
|
||||||
|
'& .profile-details': {
|
||||||
|
textAlign: 'center',
|
||||||
|
'& span, svg': {
|
||||||
|
verticalAlign: 'middle'
|
||||||
|
},
|
||||||
|
'& a': {
|
||||||
|
color: '#00bcd4'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'& hr': {
|
||||||
|
border: 'none',
|
||||||
|
margin: '0 0 10px 0'
|
||||||
|
},
|
||||||
|
'& svg.button': {
|
||||||
|
'&:hover': {
|
||||||
|
cursor: 'pointer'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
buttons: {
|
||||||
|
textAlign: 'center',
|
||||||
|
'& a': {
|
||||||
|
margin: '20px 10px'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user