-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created the Profile Template #4
base: master
Are you sure you want to change the base?
Changes from all commits
52b468c
bb38482
265df73
c280d66
0792bbf
fc7951e
77d5f5a
3a79442
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import axios from 'axios'; | ||
|
||
export default axios.create({ baseURL: process.env.serverURL }); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Layout } from 'antd'; | ||
const { Content } = Layout; | ||
|
||
export default ({ children }) => { | ||
return ( | ||
<Content> | ||
{children} | ||
</Content> | ||
) | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { Layout } from 'antd'; | ||
import '../../css/Footer.module.css'; | ||
const { Footer } = Layout; | ||
|
||
export default () => { | ||
return ( | ||
<Footer id="footer"> | ||
The Alcoding Club PESU © 2020 | ||
</Footer> | ||
); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { Layout } from 'antd'; | ||
import '../../css/Header.module.css'; | ||
|
||
const { Header } = Layout; | ||
|
||
export default () => { | ||
return ( | ||
<Header id="navbar"> | ||
<ul className="navbar-list"> | ||
<li> | ||
<a className="navbar-link" href="/"> | ||
<img src="/LOGO.jpg" className="logo" alt="logo" /> | ||
</a> | ||
</li> | ||
<li className="navbar-end-li"> | ||
<a className="navbar-link" href="/login"> | ||
Login | ||
</a> | ||
</li> | ||
</ul> | ||
</Header > | ||
); | ||
}; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { Layout } from 'antd'; | ||
import '../../css/Layout.module.css'; | ||
|
||
export default ({ children }) => { | ||
return ( | ||
<Layout className="main-layout"> | ||
{children} | ||
</Layout> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import Layout from '../Layout'; | ||
import Content from '../Content'; | ||
import Header from '../Header'; | ||
import Footer from '../Footer'; | ||
import withRedux from '../../redux/store/with-redux-store'; | ||
|
||
const Page = ({ children }) => ( | ||
<> | ||
<Layout> | ||
<Header /> | ||
<Content> | ||
{children} | ||
</Content> | ||
<Footer /> | ||
</Layout> | ||
</> | ||
); | ||
|
||
export default withRedux(Page); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.ant-layout-sider { | ||
background: rgb(247, 248, 248); | ||
color: rgb(213, 52, 52); | ||
line-height: 120px; | ||
text-align:center; | ||
} | ||
|
||
.ant-layout-content { | ||
background: rgb(247, 248, 248); | ||
color: rgb(182, 49, 49); | ||
min-height: 10px; | ||
line-height: 10px; | ||
text-align:right; | ||
} | ||
|
||
.space { | ||
margin: 0vh 0 7vh 0; | ||
} | ||
|
||
.Info { | ||
color: rgb(12, 11, 1); | ||
text-align: right; | ||
font-size: 21px; | ||
margin: 1vh 0 4vh 0; | ||
} | ||
|
||
.ant-form-item { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.links-container { | ||
margin: 1vh 3vw 6vh 5vw ; | ||
} | ||
|
||
.vertical-container { | ||
margin: 1vh 3vw 4vh 5vw; | ||
} | ||
|
||
.links-sec { | ||
height : 50px; | ||
text-align: center; | ||
color: black; | ||
font-size: 1.6em; | ||
} | ||
.col-1 {width: 8.33%;} | ||
.col-2 {width: 16.66%;} | ||
.col-3 {width: 25%;} | ||
.col-4 {width: 33.33%;} | ||
.col-5 {width: 41.66%;} | ||
.col-6 {width: 50%;} | ||
.col-7 {width: 58.33%;} | ||
.col-8 {width: 66.66%;} | ||
.col-9 {width: 75%;} | ||
.col-10 {width: 83.33%;} | ||
.col-11 {width: 91.66%;} | ||
.col-12 {width: 100%;} | ||
|
||
@media (max-width: 600px) { | ||
.cont { | ||
margin: 10 10%; | ||
margin-top: 20%; | ||
|
||
} | ||
} | ||
|
||
.deg { | ||
display: inline; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#footer { | ||
text-align: center; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.logo { | ||
width: 64px; | ||
height: 64px; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.navbar-link { | ||
color: white; | ||
} | ||
|
||
.navbar-end-li { | ||
margin-left: auto; | ||
} | ||
|
||
.navbar-list { | ||
list-style: none; | ||
display: flex; | ||
} | ||
|
||
#navbar { | ||
color: white; | ||
padding: 0; | ||
padding-right: 50px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.index-container { | ||
text-align: center; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.main-layout { | ||
height: 100vh; | ||
background: #e5e5e5; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#components-form-demo-normal-login .login-form { | ||
max-width: 300px; | ||
} | ||
|
||
#components-form-demo-normal-login .login-form-forgot { | ||
float: right; | ||
} | ||
|
||
#components-form-demo-normal-login .ant-col-rtl .login-form-forgot { | ||
float: left; | ||
} | ||
|
||
#components-form-demo-normal-login .login-form-button { | ||
width: 100%; | ||
} | ||
|
||
#login-form-button { | ||
margin-right: 10px; | ||
} | ||
|
||
.login-container { | ||
margin: 0 30%; | ||
margin-top: 5%; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.login-container { | ||
margin: 0 10%; | ||
margin-top: 20%; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.center-class { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.profile-container { | ||
margin: 2vh 5vw 0 5vw; | ||
padding: 0; | ||
} | ||
|
||
.profile-grid { | ||
display: grid; | ||
grid-template-columns: 35fr 65fr; | ||
grid-gap: 1em; | ||
grid-auto-rows: minmax(82vh, auto); | ||
} | ||
|
||
.profile-details { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.profile-details-container { | ||
margin: 2% 10% 2% 0; | ||
} | ||
|
||
.username-div { | ||
padding-top: 1vh; | ||
} | ||
|
||
.interests-div { | ||
margin-top: 2vh; | ||
} | ||
|
||
.links-div { | ||
margin-top: 3.5vh; | ||
} | ||
|
||
.edit-button { | ||
margin-top: 8vh; | ||
} | ||
|
||
.contact-div { | ||
margin-top: 3.5vh;; | ||
display: grid; | ||
grid-template-columns: 5fr 95fr; | ||
grid-gap: 1em; | ||
} | ||
|
||
/* Content side */ | ||
|
||
.profile-content { | ||
margin: 0; | ||
padding: 0; | ||
border-left: #999 1pt solid; | ||
} | ||
|
||
.profile-content-container { | ||
margin: 2% 5% 2% 12.5%; | ||
} | ||
|
||
.user-ranking-box { | ||
background: rgba(211, 211, 211, 0.4); | ||
height: 45vh; | ||
max-height: 486px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "~antd/dist/antd.css"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
const isProduction = (process.env.NODE_ENV || 'production') === 'production'; | ||
const webpack = require('webpack'); | ||
const withCSS = require('@zeit/next-css'); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
const isProduction = (process.env.NODE_ENV || 'production') === 'production'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
const serverURL = isProduction ? "https://posterior.herokuapp.com" : "http://localhost:4000/api"; | ||
|
||
module.exports = withCSS({ | ||
exportTrailingSlash: true, | ||
serverURL: serverURL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). |
||
webpack: config => { | ||
config.plugins.push( | ||
new webpack.DefinePlugin({ | ||
'process.env.serverURL': JSON.stringify(serverURL), | ||
}), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expected ')' and instead saw ';'. |
||
); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing semicolon. |
||
return config | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).