Skip to content

Commit

Permalink
added script tag to traffic tracking file
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqiu123 committed Sep 22, 2023
1 parent 29b5e86 commit 4871823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 44 deletions.
6 changes: 2 additions & 4 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Command, CommandGroup, CommandInput, CommandItem, CommandList, CommandS
import { useRouter } from 'next/navigation';
import NavigationMenu from '@/components/NavigationMenu/NavigationMenu'
import Spacer from '@/components/Spacer/Spacer'
import Script from 'next/script'



Expand All @@ -31,10 +32,6 @@ export const useGlobal = () => useContext(GlobalContext);

const inter = Inter({ subsets: ['latin'] })

const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}

export default function RootLayout({ children, }: { children: React.ReactNode }) {

Expand Down Expand Up @@ -98,6 +95,7 @@ export default function RootLayout({ children, }: { children: React.ReactNode })

return (
<html lang="en">
<Script src="https://web-analytics-83e1.vercel.app/tracker.js" />
<GlobalContext.Provider value={{ isDarkMode, setIsDarkMode }}>
<body className={`${inter.className} ${isDarkMode ? 'darkMode' : ''}`}>

Expand Down
41 changes: 1 addition & 40 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,52 +1,13 @@
'use client'

import React, { useEffect, useState } from 'react';
import Button from '@/components/Button/Button';
import { NavBar, NavBarLeft, NavBarRight } from '@/components/NavBar/NavBar';
import Image from 'next/image';
import Icon from '@/components/Icon/Icon';
import SearchBar from '@/components/SearchBar/SearchBar';
import Input from '@/components/Input/Input';
import Button from '@/components/Button/Button';
import TextArea from '@/components/TextArea/TextArea';


export default function Home() {


const [isDarkMode, setIsDarkMode] = useState(true)
const [componentIdea, setComponentIdea] = useState('')
const [search, setSearch] = useState<string>('')

const componentNames = [
"Accordion",
"Backdrop",
"Badge",
"Button",
"Carousel",
"Checkbox",
"Command",
"DragNDrop",
"Dropdown",
"HoverCard",
"Icon",
"Input",
"Modal",
"NavBar",
"OutsideClick",
"Popover",
"PrettyCode",
"SearchBar",
"Sheet",
"ShowMore",
"Skeleton",
"Slider",
"Switch",
"Tabs",
"TextArea",
"Toast",
"Tooltip"
];


return (

Expand Down

0 comments on commit 4871823

Please sign in to comment.