Skip to content
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

Rename css clases to camelCase #40

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions components/conf-entry.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,40 +88,40 @@
color: var(--secondary-color);
}

.input-label {
.inputLabel {
background-color: var(--gray);
border-radius: var(--space-2x);
border: 1px solid transparent;
transition: border-color 0.2s ease, background-color 0.2s ease;
display: block;
}

.input-label.focused {
.inputLabel.focused {
background-color: #33373c;
}

.input-label.error {
.inputLabel.error {
background: red;
}

.input-label.success {
.inputLabel.success {
background: #0070f3;
}

.input-text {
.inputText {
display: flex;
align-items: center;
width: 100%;
}

.form-row {
.formRow {
position: relative;
max-width: 400px;
width: 100%;
}

@media (min-width: 768px) {
.form-row {
.formRow {
max-width: 480px;
}
}
Expand Down Expand Up @@ -183,7 +183,7 @@
}

@media (min-width: 1200px) {
.form-row {
.formRow {
margin: 0;
}
}
8 changes: 4 additions & 4 deletions components/conf-entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,20 @@ export default function ConfEntry({ onRegister }: { onRegister: () => void }) {
}, []);

return (
<div className={cn(styles.container, styleUtils.appear, styleUtils['appear-first'])}>
<div className={cn(styles.container, styleUtils.appear, styleUtils.appearFirst)}>
<h1 className={cn(styles.hero)}>Join the conference.</h1>
<h2 className={cn(styles.description)}>{SITE_DESCRIPTION}</h2>
<form onSubmit={onSubmit} className={styles.form}>
<div className={styles['form-row']}>
<div className={styles.formRow}>
<label
htmlFor="email-input-field"
className={cn(styles['input-label'], {
className={cn(styles.inputLabel, {
[styles.focused]: focused,
[styles.error]: formState === 'error'
})}
>
{formState === 'error' ? (
<div className={cn(styles.input, styles['input-text'])}>{errorMsg}</div>
<div className={cn(styles.input, styles.inputText)}>{errorMsg}</div>
) : (
<input
className={styles.input}
Expand Down
4 changes: 2 additions & 2 deletions components/contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
margin-bottom: var(--space-12x);
}

.contact-email {
.contactEmail {
color: #fff;
}

.contact-email:hover {
.contactEmail:hover {
text-decoration: underline;
color: #fff;
}
30 changes: 15 additions & 15 deletions components/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@
z-index: 2;
}

.footer-link {
.footerLink {
color: var(--secondary-color);
font-size: 12px;
transition: color 0.2s ease;
}

.footer-link:hover {
.footerLink:hover {
color: #fff;
}

.footer-logo :global(svg) {
.footerLogo :global(svg) {
height: var(--space-4x);
transform: translateY(5px);
margin-left: 2px;
}

.footer-legal {
.footerLegal {
display: flex;
align-items: center;
flex-direction: column;
Expand All @@ -50,39 +50,39 @@
padding: var(--space-4x);
}

.footer-copyright {
.footerCopyright {
text-align: center;
margin-bottom: 15px;
}

.footer-separator {
.footerSeparator {
margin-bottom: 15px;
}

.footer-center-group {
.footerCenterGroup {
display: flex;
align-items: center;
flex-direction: column;
}

@media screen and (min-width: 960px) {
.footer-hostedby {
.footerHostedBy {
display: none;
}

.footer-legal {
.footerLegal {
flex-direction: row;
}

.footer-copyright {
.footerCopyright {
margin-bottom: 0;
}

.footer-center-group {
.footerCenterGroup {
flex-direction: row;
}

.footer-separator {
.footerSeparator {
margin: 0 10px;
height: var(--space-4x);
width: 1px;
Expand All @@ -91,17 +91,17 @@
}
}

.footer-paragraph {
.footerParagraph {
margin: 0;
}

.secondary-text {
.secondaryText {
color: var(--secondary-color);
display: none;
}

@media screen and (min-width: 390px) {
.secondary-text {
.secondaryText {
display: initial;
}
}
30 changes: 15 additions & 15 deletions components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export function HostedByVercel() {
return (
<a
href="https://vercel.com"
className={cn(styles['footer-link'], styles['footer-logo'])}
className={cn(styles.footerLink, styles.footerLogo)}
target="_blank"
rel="noopener noreferrer"
>
<div className={styles['secondary-text']}>Created by </div>
<div className={styles.secondaryText}>Created by </div>
<VercelLogo color="white" />
</a>
);
Expand All @@ -36,31 +36,31 @@ export function HostedByVercel() {
export default function Footer() {
return (
<footer className={cn(styles.footer)}>
<div className={styles['footer-legal']}>
<div className={styles['footer-hostedby']}>
<div className={styles.footerLegal}>
<div className={styles.footerHostedBy}>
<HostedByVercel />
<div className={styles['footer-separator']} />
<div className={styles.footerSeparator} />
</div>
<div className={styles['footer-copyright']}>
<div className={styles.footerCopyright}>
Copyright © {`${new Date().getFullYear()} `} {COPYRIGHT_HOLDER || `${SITE_NAME}.`} All
rights reserved.
</div>
<div className={styles['footer-center-group']}>
<p className={styles['footer-paragraph']}>
<div className={styles.footerCenterGroup}>
<p className={styles.footerParagraph}>
<a
href={REPO}
className={styles['footer-link']}
className={styles.footerLink}
target="_blank"
rel="noopener noreferrer"
>
Source Code
</a>
</p>
<div className={styles['footer-separator']} />
<p className={styles['footer-paragraph']}>
<div className={styles.footerSeparator} />
<p className={styles.footerParagraph}>
<a
href={CODE_OF_CONDUCT}
className={styles['footer-link']}
className={styles.footerLink}
target="_blank"
rel="noopener noreferrer"
>
Expand All @@ -69,11 +69,11 @@ export default function Footer() {
</p>
{LEGAL_URL && (
<>
<div className={styles['footer-separator']} />
<p className={styles['footer-paragraph']}>
<div className={styles.footerSeparator} />
<p className={styles.footerParagraph}>
<a
href={LEGAL_URL}
className={styles['footer-link']}
className={styles.footerLink}
target="_blank"
rel="noopener noreferrer"
>
Expand Down
34 changes: 17 additions & 17 deletions components/form.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

@media (min-width: 1200px) {
.form.share-page {
.form.sharePage {
justify-content: flex-start;
}
}
Expand Down Expand Up @@ -50,40 +50,40 @@
color: var(--secondary-color);
}

.input-label {
.inputLabel {
background-color: var(--gray);
border-radius: var(--space-2x);
border: 1px solid transparent;
transition: border-color 0.2s ease, background-color 0.2s ease;
display: block;
}

.input-label.focused {
.inputLabel.focused {
background-color: #33373c;
}

.input-label.error {
.inputLabel.error {
background: red;
}

.input-label.success {
.inputLabel.success {
background: #0070f3;
}

.input-text {
.inputText {
display: flex;
align-items: center;
width: 100%;
}

.form-row {
.formRow {
position: relative;
max-width: 400px;
width: 100%;
}

@media (min-width: 768px) {
.form-row {
.formRow {
max-width: 480px;
}
}
Expand All @@ -108,7 +108,7 @@
justify-content: center;
}

.submit.generate-with-github {
.submit.generateWithGithub {
display: flex;
margin-bottom: 12px;
position: relative;
Expand Down Expand Up @@ -136,8 +136,8 @@
color: var(--brand);
}

.submit.default.generate-with-github:hover path,
.submit.default.generate-with-github:focus path {
.submit.default.generateWithGithub:hover path,
.submit.default.generateWithGithub:focus path {
fill: var(--brand);
}

Expand All @@ -158,22 +158,22 @@
overflow: hidden;
}

.submit.default.generate-with-github:disabled path,
.submit.default.generate-with-github:disabled:hover path,
.submit.default.generate-with-github:disabled:focus path {
.submit.default.generateWithGithub:disabled path,
.submit.default.generateWithGithub:disabled:hover path,
.submit.default.generateWithGithub:disabled:focus path {
fill: #fff;
}

.submit.default.generate-with-github.not-allowed:disabled {
.submit.default.generateWithGithub.notAllowed:disabled {
cursor: not-allowed;
}

@media (min-width: 1200px) {
.form-row {
.formRow {
margin: 0;
}

.submit.generate-with-github {
.submit.generateWithGithub {
width: 240px;
}
}
Loading