Skip to content

Commit 7c7ab17

Browse files
committed
fix: added all config related to tailwind
added common SEO content in _app
1 parent 082b696 commit 7c7ab17

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

packages/frontend/pages/_app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import Head from 'next/head';
22
import '../styles/globals.css'
3-
43
function MyApp({ Component, pageProps }) {
54
return (
65
<>
76
<Head>
87
<title>{Component.title}</title>
9-
<meta charset="utf-8" />
8+
<meta charSet="utf-8" />
109
<meta http-equiv="x-ua-compatible" content="ie=edge" />
1110
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
1211
<meta property="og:type" content={Component.title} />

packages/frontend/pages/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { tw } from 'twind'
12
import { useRouter } from "next/router";
23
import { useRef, useState } from "react";
34
import Video from '../components/video';
@@ -190,7 +191,7 @@ export default function Main() {
190191
<button onClick={handleStart}>Start</button>
191192
<input type="text" onChange={(e) => setSendValue(e.target.value)} defaultValue={sendValue} />
192193
<button type="button" onClick={sendMessage}>Send</button>
193-
<video ref={selfStream}></video>
194+
<video ref={selfStream} className={tw`bg-black border-2 `}></video>
194195
{
195196
peerStreams.map(stream => (
196197
<Video stream={stream}></Video>

packages/frontend/pages/index.module.scss

Whitespace-only changes.

packages/frontend/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

packages/frontend/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../../node_modules/modern-normalize/modern-normalize.css';
1+
@import "../../../node_modules/modern-normalize/modern-normalize.css";

packages/frontend/tailwind.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
purge: [],
3+
darkMode: false, // or 'media' or 'class'
4+
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
5+
theme: {
6+
extend: {},
7+
},
8+
variants: {
9+
extend: {},
10+
},
11+
plugins: [],
12+
}

0 commit comments

Comments
 (0)