-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9349dfc
commit d347b2d
Showing
11 changed files
with
121 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ node_modules/ | |
test-results/ | ||
end2end/playwright-report/ | ||
playwright/.cache/ | ||
|
||
# api keys | ||
.env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,12 @@ | ||
#[path = "../app_config.rs"] | ||
mod app_config; | ||
use app_config::*; | ||
use leptos::{ev::MouseEvent, *}; | ||
use leptos_meta::*; | ||
use leptos_router::*; | ||
use leptos_server::*; | ||
use std::fmt; | ||
|
||
pub(crate) fn microsoft_login_url() -> String { | ||
format!("https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={}&response_type=code&redirect_uri=http%3A%2F%2Flocalhost:3000%2Fteam&response_mode=query&scope=https%3A%2F%2Fgraph.microsoft.com%2Femail", CLIENT_ID) | ||
} |
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,2 +1,3 @@ | ||
use leptos::*; | ||
pub mod homepage; | ||
pub mod signup; | ||
pub mod team; |
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,16 +1,15 @@ | ||
use crate::app::login::*; | ||
use leptos::{ev::MouseEvent, *}; | ||
|
||
#[component] | ||
pub fn HomePage(cx: Scope) -> impl IntoView { | ||
pub(crate) fn HomePage(cx: Scope) -> impl IntoView { | ||
view! { | ||
cx, | ||
<div class="px-64 bg-red-600 py-12 w-full h-72 flex content-baseline"> | ||
<h1 class="text-white mt-auto">"Pokerbots McGill"</h1> | ||
</div> | ||
<div class="px-64 py-12 w-full flex content-baseline gap-4"> | ||
<a class="primary big" href="/signup">"Make an team"</a> | ||
<a class="primary big">"Log in"</a> | ||
<a href={microsoft_login_url()}>"Log in with Microsoft"</a> | ||
</div> | ||
|
||
} | ||
} |
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,15 @@ | ||
use leptos::{ev::MouseEvent, *}; | ||
|
||
struct User { | ||
email: &str; | ||
} | ||
|
||
#[component] | ||
pub(crate) fn Team(cx: Scope) -> impl IntoView { | ||
view! { | ||
cx, | ||
<div> | ||
"Worked!" | ||
</div> | ||
} | ||
} |
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 +1,2 @@ | ||
pub const TEAM_SIZE: i32 = 5; | ||
pub const CLIENT_ID: &str = "42cb7f3f-e8fc-4e59-9bb6-2422f6dadbb0"; |
Oops, something went wrong.