Skip to content

Commit 8a76892

Browse files
authored
formatting and import optimization changes (#61)
* add editorconfig * code formatting changes * remove unused imports * fix button and venue bg
1 parent acfdd8a commit 8a76892

22 files changed

+1442
-1250
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

components/HeroBanner.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import Image from 'next/image';
2-
import React from 'react';
1+
import Image from "next/image";
2+
import React from "react";
33

4-
import Button from './button';
4+
import Button from "./button";
55
import calendar from "../public/images/calendar.png";
66
import logo from "../public/images/logo.png";
77

8-
98
const HeroBanner = () => {
109
return (
1110
<section className="bg-banner">
@@ -19,19 +18,20 @@ const HeroBanner = () => {
1918
</a>
2019
</div>
2120
<p className="pt-3 text-center text-md-start">
22-
The premier conference in India using and developing Python programming language.
23-
Stay tuned for further updates by subscribing to our announcements.
21+
The premier conference in India using and developing Python
22+
programming language. Stay tuned for further updates by
23+
subscribing to our announcements.
2424
</p>
25-
<div className='row register-btn'>
26-
<div className='col-md-5 col-8 pt-3'>
25+
<div className="row register-btn">
26+
<div className="col-md-5 col-8 pt-3">
2727
<Button
2828
buttonClassName="green-btn register-btn-extra-padding"
2929
anchorClassName="text-decoration-none text-light"
3030
buttonLabel="Become A Volunteer"
3131
buttonHyperLink="https://docs.google.com/forms/d/e/1FAIpQLSdmlVnxDBENiXs17hQeUtgqOZdcsWI7lmQpXq5m9K-e0eS52Q/viewform"
3232
/>
3333
</div>
34-
<div className='col-md-5 col-8 pt-3'>
34+
<div className="col-md-5 col-8 pt-3">
3535
<Button
3636
buttonClassName="submit-btn register-btn-extra-padding"
3737
anchorClassName="text-decoration-none"
@@ -42,7 +42,13 @@ const HeroBanner = () => {
4242
</div>
4343
<h2 className="pt-5 mb-4 date-text">
4444
29 Sept - 02 Oct
45-
<Image src={calendar} alt="" width="100%" height="100%" className="img-fluid" />
45+
<Image
46+
src={calendar}
47+
alt=""
48+
width="100%"
49+
height="100%"
50+
className="img-fluid"
51+
/>
4652
</h2>
4753
<div className="row">
4854
<div className="col-md-4">

components/button.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React from "react";
22

33
const Button = (props) => {
44
let buttonClassName = props.buttonClassName;
@@ -12,16 +12,18 @@ const Button = (props) => {
1212
<button
1313
className={buttonClassName}
1414
disabled={disabled}
15-
style={{ pointerEvents: props.disabled ? 'none' : 'auto' }}
15+
style={{ pointerEvents: props.disabled ? "none" : "auto" }}
1616
>
17-
<a href={buttonHyperLink} target="_blank" className={anchorClassName}>{buttonLabel}</a>
17+
<a href={buttonHyperLink} target="_blank" className={anchorClassName}>
18+
{buttonLabel}
19+
</a>
1820
</button>
1921
</>
2022
);
2123
};
2224

2325
Button.defaultProps = {
24-
disabled: false
26+
disabled: false,
2527
};
2628

2729
export default Button;

components/conventioncenter.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React from "react";
22

33
const ConventionCenterSection = () => {
44
return (
@@ -9,9 +9,7 @@ const ConventionCenterSection = () => {
99
<h3 className="text-white hallhead">
1010
TBA <br /> TBA
1111
</h3>
12-
<p className="text-white">
13-
Hyderabad, Telangana 500081
14-
</p>
12+
<p className="text-white">Hyderabad, Telangana 500081</p>
1513
</div>
1614
<div className="col-md-4 text-center text-md-start">
1715
<iframe

components/footer.tsx

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import React from 'react';
2-
import Image from 'next/image';
1+
import React from "react";
2+
import Image from "next/image";
33

4-
import PyConLogo from '../public/images/logo.png';
5-
import LinkedInLogo from '../public/images/social1.png';
6-
import FacebookLogo from '../public/images/social2.png';
7-
import TwitterLogo from '../public/images/social3.png';
8-
import InstagramLogo from '../public/images/social4.png';
9-
import ZulipLogo from '../public/images/social5.png';
10-
import MailingList from '../public/images/social6.png';
11-
import WebChirpyLogo from '../public/images/webchirpy.png';
4+
import PyConLogo from "../public/images/logo.png";
5+
import LinkedInLogo from "../public/images/social1.png";
6+
import FacebookLogo from "../public/images/social2.png";
7+
import TwitterLogo from "../public/images/social3.png";
8+
import InstagramLogo from "../public/images/social4.png";
9+
import ZulipLogo from "../public/images/social5.png";
10+
import MailingList from "../public/images/social6.png";
11+
import WebChirpyLogo from "../public/images/webchirpy.png";
1212

1313
interface SocialItem {
1414
name: string;
@@ -18,40 +18,43 @@ interface SocialItem {
1818

1919
const social: SocialItem[] = [
2020
{
21-
name: 'LinkedIn',
22-
url: 'https://www.linkedin.com/company/pyconindia/',
21+
name: "LinkedIn",
22+
url: "https://www.linkedin.com/company/pyconindia/",
2323
logo: LinkedInLogo,
2424
},
2525
{
26-
name: 'Facebook',
27-
url: 'https://www.facebook.com/PyConIndia/',
26+
name: "Facebook",
27+
url: "https://www.facebook.com/PyConIndia/",
2828
logo: FacebookLogo,
2929
},
3030
{
31-
name: 'Twitter',
32-
url: 'https://twitter.com/pyconindia',
31+
name: "Twitter",
32+
url: "https://twitter.com/pyconindia",
3333
logo: TwitterLogo,
3434
},
3535
{
36-
name: 'Instagram',
37-
url: 'https://www.instagram.com/__pyconindia__/',
36+
name: "Instagram",
37+
url: "https://www.instagram.com/__pyconindia__/",
3838
logo: InstagramLogo,
3939
},
4040
{
41-
name: 'Zulip',
42-
url: 'https://pyconindia.zulipchat.com/',
41+
name: "Zulip",
42+
url: "https://pyconindia.zulipchat.com/",
4343
logo: ZulipLogo,
4444
},
4545
{
46-
name: 'Mailing List',
47-
url: 'https://mail.python.org/mailman/listinfo/inpycon',
46+
name: "Mailing List",
47+
url: "https://mail.python.org/mailman/listinfo/inpycon",
4848
logo: MailingList,
4949
},
5050
];
5151

5252
const Footer: React.FC = () => {
5353
return (
54-
<footer className="bg-footer" style={{ backgroundImage: `url(images/bg-header-dot.png)` }}>
54+
<footer
55+
className="bg-footer"
56+
style={{ backgroundImage: `url(images/bg-header-dot.png)` }}
57+
>
5558
<div className="container">
5659
<div className="row pt-5 pb-5">
5760
<div className="col-md-12 pb-5 text-center">
@@ -81,9 +84,7 @@ const Footer: React.FC = () => {
8184
</ul>
8285
</div>
8386
<div className="col-md text-center pt-md-0 pt-4">
84-
<h3 className="footer-title">
85-
Copyright @ 2023 PyCon India
86-
</h3>
87+
<h3 className="footer-title">Copyright @ 2023 PyCon India</h3>
8788
</div>
8889
<div className="col-md-2 text-center text-md-start pt-md-0 pt-3">
8990
<h3 className="footer-title">Design By</h3>
@@ -101,4 +102,4 @@ const Footer: React.FC = () => {
101102
);
102103
};
103104

104-
export default Footer;
105+
export default Footer;

0 commit comments

Comments
 (0)