forked from compsoc-edinburgh/comp-soc.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Navbar, refactor layour, further tailwind config
- Loading branch information
1 parent
c596e45
commit b4eca41
Showing
10 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
import type { Metadata } from 'next' | ||
import type { Metadata, Viewport } from 'next' | ||
import './globals.css' | ||
import Navbar from '@/components/Navbar' | ||
|
||
export const metadata: Metadata = { | ||
title: 'CompSoc', | ||
description: | ||
"CompSoc is Edinburgh University's technology society! We're Scotland's best and largest of its kind, and form one of the largest societies within the university.", | ||
icons: { | ||
icon: '/compsoc-icon.png', | ||
icon: '/compsoc-mini.png', | ||
}, | ||
} | ||
|
||
export const viewport: Viewport = { | ||
themeColor: '#222222', // TODO: Should be fed from tailwind.config.ts | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
<body className="bg-background relative"> | ||
<Navbar /> | ||
<div className="container mx-auto max-w-screen-xl p-4">{children}</div> | ||
</body> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { prefix } from '@/utils/prefix' | ||
import Link from 'next/link' | ||
import Image from 'next/image' | ||
|
||
const NavBar = () => { | ||
return ( | ||
<nav className="sticky top-0 z-50 container mx-auto max-w-screen-xl py-4"> | ||
<div className="container bg-foreground mx-auto flex justify-between items-center p-4 border-border border-2 rounded-sm"> | ||
<div className="text-white font-bold"> | ||
<Link href="/"> | ||
<Image | ||
src={`${prefix}/compsoc-short.png`} | ||
alt="Wide CompSoc logo" | ||
width={64} | ||
height={64} | ||
priority | ||
/> | ||
</Link> | ||
</div> | ||
<div className="flex space-x-8 px-4"> | ||
<Link href="/team">Team</Link> | ||
<Link href="/events">Events</Link> | ||
<Link href="/about">About</Link> | ||
</div> | ||
</div> | ||
</nav> | ||
) | ||
} | ||
|
||
export default NavBar |
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
import type { Config } from "tailwindcss"; | ||
import type { Config } from 'tailwindcss' | ||
|
||
const config: Config = { | ||
content: [ | ||
"./pages/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./components/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./app/**/*.{js,ts,jsx,tsx,mdx}", | ||
'./pages/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./app/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme: { | ||
extend: { | ||
backgroundImage: { | ||
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))", | ||
"gradient-conic": | ||
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", | ||
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', | ||
'gradient-conic': | ||
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', | ||
}, | ||
colors: { | ||
csred: '#CE3234', | ||
csgrey: '#222222', | ||
background: '#222222', | ||
foreground: '#353535', | ||
border: '#484848', | ||
textPrimary: '#FFFFFF', | ||
textSecondary: '#A0A0A0', | ||
}, | ||
fontFamily: { | ||
'space-mono': ['"Space Mono"', 'monospace'], | ||
}, | ||
}, | ||
}, | ||
plugins: [], | ||
}; | ||
export default config; | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.