Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer now sticks to the bottom of the page and fixed User interface imports #21

Open
wants to merge 64 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
f474247
Merge pull request #2 from SHPE-UTDallas/dev
gabriel-flynn Nov 7, 2020
9a30f04
initial branch commit
rigrergl Nov 10, 2020
18c70c9
made some of the initial navbar, still needs some work
rigrergl Nov 10, 2020
296655c
added some color variables and used them for the navBar
rigrergl Nov 10, 2020
60f4441
added top bar with some info
rigrergl Nov 10, 2020
c5c1d5b
changed the theme colors, added the SHPE logo
rigrergl Dec 11, 2020
b43b8fd
drop-down navbar items also hover a different color now
rigrergl Dec 11, 2020
016d012
fixed a typo on the _variables.css
rigrergl Dec 13, 2020
8425495
Update components/Layout.tsx
rigrergl Dec 17, 2020
9a88232
Update components/Layout.tsx
rigrergl Dec 17, 2020
6e03eeb
Update pages/index.tsx
rigrergl Dec 17, 2020
567a27b
Update theming/_variables.scss
rigrergl Dec 17, 2020
6596eb4
Merge branch 'dev' into navBar
rigrergl Dec 17, 2020
5501500
fixed some of the merging
rigrergl Dec 17, 2020
b15f2ab
removed the users navbar tabs
rigrergl Dec 17, 2020
6771270
removed some unused variables (this was my bad i forgot to delete the…
rigrergl Dec 17, 2020
ea63232
fixed some of the centering issues that resulted from the merge betwe…
rigrergl Dec 17, 2020
67c2c68
Ran prettier on layout.tsx
gabriel-flynn Dec 18, 2020
e8beb9e
Merge remote-tracking branch 'origin/dev' into footer
gabriel-flynn Dec 18, 2020
5fa5dd6
Made the footer stick to the bottom of the page
gabriel-flynn Dec 18, 2020
1bc3143
Remove unused import
gabriel-flynn Dec 18, 2020
bb7637a
Fix spacing
gabriel-flynn Dec 18, 2020
361054e
Remove test/duplicate component
gabriel-flynn Dec 18, 2020
4af4134
Merge remote-tracking branch 'origin/dev' into navBar
rigrergl Dec 19, 2020
49eab40
Merge branch 'navBar' of https://github.com/SHPE-UTDallas/Website-Red…
rigrergl Dec 19, 2020
b9519ca
Merge remote-tracking branch 'origin/footer' into navBar
rigrergl Dec 19, 2020
054a5cf
Fix styling on login page
gabriel-flynn Dec 20, 2020
1cdce5e
Fix login page formatting
gabriel-flynn Dec 20, 2020
7fa6002
Merge branch 'footer' into navBar
rigrergl Dec 21, 2020
86b5f9d
added gradient background and level element
rigrergl Dec 21, 2020
7d3237b
added newsletter and sponsor buttons, as well as some layout progress
rigrergl Dec 21, 2020
6826cfc
added the intro welcome lorem ipsum paragraph
rigrergl Dec 21, 2020
546cf6e
added the card (will be used for either the instagram iframe or the n…
rigrergl Dec 22, 2020
bf45ed3
added increased shadow on card hover
rigrergl Dec 22, 2020
42acf3a
nothing to see here
rigrergl Dec 22, 2020
d5fe53e
fixed some alignment issues on smaller resolutions
rigrergl Dec 22, 2020
03b7867
added the section divider line and the little temoc icon
rigrergl Dec 23, 2020
85c8809
added a little hover shadow effect on the temoc icon
rigrergl Dec 23, 2020
4eea0ec
added a margin below the homepage-tile for smaller resolution (so it …
rigrergl Dec 23, 2020
747cdf0
removed the hover shadow from temoc
rigrergl Dec 23, 2020
b84b56d
added the three benefits text below temoc
rigrergl Dec 23, 2020
9402322
added the bottom line to the benefits section
rigrergl Dec 23, 2020
0bdcf25
made the intro paragraph text a bit more gray
rigrergl Dec 23, 2020
11a5f21
started working on the footer (wrong branch I know working on fixing …
rigrergl Dec 25, 2020
980ba3c
added the three centered columns of the footer
rigrergl Dec 25, 2020
379f48d
added the navigation links
rigrergl Dec 25, 2020
368539a
added some of the footer text formatting (still working on it)
rigrergl Dec 25, 2020
69c0e61
added some responsiveness to the footer (still working on it)
rigrergl Dec 25, 2020
258444d
centered stuff inside the footer columns
rigrergl Dec 25, 2020
8735d39
added the google calendar into the homepage
rigrergl Dec 25, 2020
825c049
removed some leftover debugging code
rigrergl Dec 25, 2020
97409e4
centered the calendar in the homepage
rigrergl Dec 25, 2020
e774127
added the social media icons with links
rigrergl Dec 25, 2020
9044b03
ran prettier on Layout.tsx
rigrergl Dec 25, 2020
9b5d428
added a hover effect on the social media icons, fixed their responsiv…
rigrergl Dec 25, 2020
d916ed1
cleaned up some of the social media icons code
rigrergl Dec 26, 2020
3c0097f
Merge branch 'footer' into homepage
rigrergl Dec 26, 2020
f1c26f2
got rid of the extra division on the homepage-tile
rigrergl Dec 26, 2020
57aa36b
refactored the footer link css so that it does not affect the global …
rigrergl Dec 26, 2020
1be7815
now the Bylaws link in the footer opens in a new tab. (shouldve done …
rigrergl Dec 26, 2020
7733315
Revert back to commit 1cdce5e
gabriel-flynn Jan 2, 2021
91ffd7c
Merge remote-tracking branch 'origin/dev' into footer
gabriel-flynn Jan 2, 2021
de4f557
Fix incorrect imports of User interface
gabriel-flynn Jan 2, 2021
7046551
Remove login.tsx
gabriel-flynn Jan 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { ReactNode } from "react";
import Link from "next/link";
import Head from "next/head";
import Image from "next/image";
import { signIn, signOut, useSession } from "next-auth/client";
Expand All @@ -12,7 +11,7 @@ type Props = {
const Layout = ({ children, title = "This is the default title" }: Props) => {
const [session, loading] = useSession();
return (
<div>
<div id="parentDiv">
<Head>
<title>{title}</title>
<meta charSet="utf-8" />
Expand Down Expand Up @@ -109,10 +108,10 @@ const Layout = ({ children, title = "This is the default title" }: Props) => {
</div>
</nav>
</header>
<div className="">
<div className="_content">
{children}
<footer>
<div className="content has-text-centered">
<div className="has-text-centered">
<hr />
<span>
I'm here to stay (Footer) Maybe add some of the contact info here?
Expand Down
2 changes: 1 addition & 1 deletion components/ListDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'

import { User } from '../interfaces'
import { User } from 'next-auth'

type ListDetailProps = {
item: User
Expand Down
58 changes: 28 additions & 30 deletions pages/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,39 @@ interface Providers {
}

const LoginPage = ({ providers }: Providers) => {
const {callbackUrl} = useRouter().query
const { callbackUrl } = useRouter().query;
const callback = Array.isArray(callbackUrl) ? callbackUrl[0] : callbackUrl;
return (
<Layout title="SHPE UTD">
<div className="container">
<section className="section mt-4">
<div className="columns is-centered is-vcentered">
<div className="column is-half">
<figure className="center-image is-flex is-4 image is-256x256">
<img className="is-rounded" src="/imgs/SHPE_Icon.png" />
</figure>
<p className="title is-1 is-spaced has-text-centered mt-4">
Login
</p>
<div className="field">
<GoogleLoginButton
onClick={() => signIn(providers.google.id, { callbackUrl: callback })}
/>
<LinkedInLoginButton
className="mt-4"
onClick={() =>
signIn(providers.linkedin.id, { callbackUrl: callback})
}
/>
<MicrosoftLoginButton
className="mt-4"
onClick={() =>
alert("Maybe we can login with our school outlooks?")
}
/>
</div>
<section className="section mt-4">
<div className="columns is-centered is-vcentered">
<div className="column is-half">
<figure className="center-image is-flex is-4 image is-256x256">
<img className="is-rounded" src="/imgs/SHPE_Icon.png" />
</figure>
<p className="title is-1 is-spaced has-text-centered mt-4">Login</p>
<div className="field">
<GoogleLoginButton
onClick={() =>
signIn(providers.google.id, { callbackUrl: callback })
}
/>
<LinkedInLoginButton
className="mt-4"
onClick={() =>
signIn(providers.linkedin.id, { callbackUrl: callback })
}
/>
<MicrosoftLoginButton
className="mt-4"
onClick={() =>
alert("Maybe we can login with our school outlooks?")
}
/>
</div>
</div>
</section>
</div>
</div>
</section>
</Layout>
);
};
Expand Down
2 changes: 1 addition & 1 deletion pages/users/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GetServerSideProps } from 'next'

import { User } from '../../interfaces'
import { User } from 'next-auth'
import { sampleUserData } from '../../utils/sample-data'
import Layout from '../../components/Layout'
import ListDetail from '../../components/ListDetail'
Expand Down
14 changes: 12 additions & 2 deletions theming/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,23 @@ $secondary: $SHPE-ORANGE;
height: 4em;
}

._content{
display: flex;
flex-direction: column;
flex: 1;
}

footer {
margin-top: auto;
}

#parentDiv {
display: flex;
min-height: 100vh;
flex-direction: column
}

.center-image{
margin-left: auto;
margin-right: auto;
}

}