Skip to content

Commit 0c70a64

Browse files
committed
Add GA
1 parent 64517d7 commit 0c70a64

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

compontents/Layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Container, Row, Col } from "react-bootstrap";
2+
import { GoogleAnalytics } from "@next/third-parties/google";
23

34
export default function Layout({ children }) {
45
return (
@@ -10,6 +11,7 @@ export default function Layout({ children }) {
1011
</Col>
1112
</Row>
1213
</Container>
14+
<GoogleAnalytics gaId='G-5TS75L7L97' />
1315
</>
1416
);
1517
}

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@next/font": "13.1.6",
13+
"@next/third-parties": "^15.1.3",
1314
"bootstrap": "^5.2.3",
1415
"eslint": "8.33.0",
1516
"eslint-config-next": "13.1.6",

pages/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export default function Select({
255255

256256
<div className='mt-3'>
257257
<div className='d-flex flex-wrap gap-2 justify-content-center'>
258-
{onlineUsers.map((user) => (
258+
{onlineUsers.map((user, index) => (
259259
<Badge key={user.username} className='user-badge'>
260260
<span className='emoji-icon'>{user.icon}</span>
261261
{user.username}
@@ -275,7 +275,7 @@ export default function Select({
275275
<Tab eventKey='playlist' title='Playlist'>
276276
{playlistId && (
277277
<>
278-
<PlaylistInfo playlistId={playlistId} />{" "}
278+
<PlaylistInfo playlistId={playlistId} />
279279
<PlaylistReveal
280280
playlistId={playlistId}
281281
username={user}

styles/_base.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,13 @@ h1 {
242242
border: 1px solid $primary;
243243
font-size: 36px;
244244

245-
@include mobile {
245+
@include tablet {
246246
font-size: 24px;
247247
}
248+
249+
@include mobile {
250+
font-size: 16px;
251+
}
248252
}
249253

250254
.content-tabs {

0 commit comments

Comments
 (0)