Skip to content

Commit dd6ac62

Browse files
committed
Additional Setup
1 parent 691e364 commit dd6ac62

File tree

9 files changed

+392
-364
lines changed

9 files changed

+392
-364
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@types/node": "20.6.0",
1414
"@types/react": "18.2.21",
1515
"@types/react-dom": "18.2.7",
16-
"next": "13.4.16",
16+
"next": "^13.4.16",
1717
"react": "18.2.0",
1818
"react-dom": "18.2.0",
1919
"typescript": "5.2.2"

src/app/globals.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
@import url("https://fonts.googleapis.com/css?family=DM+Sans:100,200,300,400,500,600,700,800,900");
2+
13
html,
24
body {
5+
font-family: "DM Sans", sans-serif;
36
width: 100%;
47
height: 100%;
58
margin: 0;

src/app/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import './globals.css';
22
import type { Metadata } from 'next';
33
import { DM_Sans } from 'next/font/google';
4+
import Footer from '../components/Footer';
45

5-
const dmSans = DM_Sans({ subsets: ['latin'] });
6+
7+
const dmSans = DM_Sans({ subsets: ['latin'], weight: ['400', '500', '700'] });
68

79
export const metadata: Metadata = {
810
title: 'ACM Static Site Template',
@@ -12,7 +14,8 @@ export const metadata: Metadata = {
1214
export default function RootLayout({ children }: { children: React.ReactNode }) {
1315
return (
1416
<html lang="en">
15-
<body className={dmSans.className}>{children}</body>
17+
<body>{children}</body>
18+
<Footer />
1619
</html>
1720
);
1821
}

src/app/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
12
import styles from './page.module.scss';
23
import Image from 'next/image';
34

5+
6+
47
export default function Home() {
58
return (
69
<main className={styles.main}>
@@ -11,5 +14,6 @@ export default function Home() {
1114
<h1>Welcome to ACM's static site template!</h1>
1215
</div>
1316
</main>
17+
1418
);
1519
}

src/components/Footer/index.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { useState } from "react";
2+
import Link from "next/link";
3+
import Image from "next/image";
4+
import "./styles.scss";
5+
6+
7+
const Footer: React.FC = () => {
8+
// const [email, setEmail] = useState("");
9+
return (
10+
<div className = "footer">
11+
<div className="footerContainer">
12+
<div className="footerContents">
13+
14+
<div className="footerContents__wrapper">
15+
<h1>Find us here!</h1>
16+
<p>Interested in learning more?</p>
17+
<p>Reach out to get connected, or explore our socials to get a sense of who we are as a community!</p>
18+
</div>
19+
</div>
20+
</div>
21+
</div>
22+
23+
);
24+
};
25+
26+
export default Footer;

src/components/Footer/styles.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@use "src/styles/colors.scss" as colors;
2+
3+
.footer {
4+
width: 100%;
5+
height: 100%;
6+
background-color: colors.$green;
7+
color: colors.$white;
8+
z-index: 0;
9+
position: relative;
10+
}
11+
.footerContainer {
12+
padding-bottom: 60px;
13+
display: flex;
14+
justify-content: center;
15+
}
16+
.footerContents {
17+
h2 {
18+
font-size: 42px;
19+
font-weight: 700;
20+
width: 100%;
21+
text-align: center;
22+
padding-top: 56px;
23+
}
24+
}

src/styles/colors.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$green: #116532;
2+
$white: #FFFFFF;

src/styles/reset.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
h2 {
2+
margin-left: 0;
3+
margin-right: 0;
4+
margin-top: 0;
5+
padding-bottom: 0;
6+
padding-left: 0;
7+
padding-right: 0;
8+
padding-top: 0;
9+
margin-bottom: 1.45rem;
10+
color: inherit;
11+
font-family: "DM Sans", sans-serif;
12+
font-weight: bold;
13+
text-rendering: optimizeLegibility;
14+
font-size: 1.62671rem;
15+
line-height: 1.1;
16+
}

0 commit comments

Comments
 (0)