Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
moishinetzer committed Jan 24, 2023
2 parents 920cfd1 + ba360be commit 5050dad
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 120 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-jokes-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pbandj": patch
---

css modules only
41 changes: 0 additions & 41 deletions src/App.css

This file was deleted.

1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import "./App.css";
import { Button } from "./Button";
import { Div } from "./Div";

Expand Down
4 changes: 3 additions & 1 deletion src/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import styles from "./index.module.css";

export function Button() {
return <button>This is the pbandj button</button>;
return <button className={styles.button}>This is the pbandj button</button>;
}
70 changes: 0 additions & 70 deletions src/index.css

This file was deleted.

20 changes: 20 additions & 0 deletions src/index.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
color: #fff;
font-family: "Inter", sans-serif;
cursor: pointer;
transition: border-color 0.25s;
}
.button:hover {
border-color: #646cff;
}
.button:focus,
.button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
13 changes: 6 additions & 7 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
</React.StrictMode>
);

0 comments on commit 5050dad

Please sign in to comment.