Skip to content

Commit a70e6cb

Browse files
committed
Implement public How-to-Connect page
1 parent 47e85d8 commit a70e6cb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

client/src/locale/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ const en = {
722722
samlOidc: "SAML & OpenID Connect",
723723
samlOidcInfo: "We use these open standards as they are used in most countries and many sectors.",
724724
attributes: "Attributes and claims",
725-
attributesInfo: "Learn more about use these open standards as they are used in most countries and many sectors."
725+
attributesInfo: "Learn more about use these open standards as they are used in most countries and many sectors.",
726+
connect: "Connect your application now"
726727
},
727728
forms: {
728729
cancel: "Cancel",

client/src/pages/Connect.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ import "./Connect.scss";
33
import React from "react";
44
import I18n from "../locale/I18n.js";
55
import StudentPng from "../icons/student.png";
6+
import {Button, ButtonType, Tooltip} from "@surfnet/sds";
7+
import {useNavigate} from "react-router-dom";
68

79
const Connect = () => {
810

11+
const navigate = useNavigate();
12+
913
return (
1014
<div className="connect-container">
1115
<div className="connect-header-container">
@@ -83,6 +87,11 @@ const Connect = () => {
8387
<p>{I18n.t("connect.attributesInfo")}</p>
8488
</div>
8589
</div>
90+
<div className="button-container">
91+
<Button type={ButtonType.Primary}
92+
onClick={() => navigate("/login-info")}
93+
txt={I18n.t("connect.connect")}/>
94+
</div>
8695
</div>
8796
</div>
8897
);

client/src/pages/Connect.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ div.connect-container {
4949
.table-container {
5050
padding: 8px 15px 20px 15px ;
5151
background-color: var(--sds--color--gray--100);
52+
border-radius: 8px;
5253

5354
p.sup-info {
5455
font-size: 14px;
@@ -96,5 +97,10 @@ div.connect-container {
9697
}
9798

9899
}
100+
.button-container {
101+
max-width: $width;
102+
margin: 40px auto 0 auto;
103+
104+
}
99105

100106
}

0 commit comments

Comments
 (0)