-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8849 from sm1990/sp-blade
Add Student Engagement Program blade to the Community page
- Loading branch information
Showing
6 changed files
with
112 additions
and
2 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
83 changes: 83 additions & 0 deletions
83
components/community/university-sessions/UniversitySessions.js
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,83 @@ | ||
/** | ||
* Copyright (c) 2024, WSO2 LLC (http://www.wso2.com) All Rights Reserved. | ||
* | ||
* WSO2 LLC licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { Row, Col, Container } from 'react-bootstrap'; | ||
import Image from 'next-image-export-optimizer'; | ||
|
||
import styles from './UniversitySessions.module.css'; | ||
import { prefix } from '../../../utils/prefix'; | ||
|
||
|
||
export default function UniversitySessions(props) { | ||
|
||
const [hoverBtn, setHoverBtn] = React.useState(false); | ||
|
||
let linkArrowPath = prefix + '/images/toc-bg.svg'; | ||
let linkArrowHoverPath = prefix + '/images/toc-bg-hover.svg'; | ||
|
||
return ( | ||
<Col xs={12}> | ||
<Container> | ||
<Row> | ||
<Col xs={12}> | ||
<h2 id='student-engagement-program' className='section'> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="30" | ||
height="30" | ||
fill="currentColor" | ||
className="bi bi-link-45deg mdButton pe-2" | ||
viewBox="0 0 16 16" | ||
onClick={(e) => props.getLink(e.target, 'student-engagement-program')} | ||
> | ||
<path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z" /> | ||
<path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z" /> | ||
</svg> | ||
Student engagement program | ||
</h2> | ||
</Col> | ||
</Row> | ||
|
||
<Row> | ||
<Col sm={12} md={6} lg={6}> | ||
<p> | ||
If you are a university student, here is your chance to enhance your practical programming skills through workshops, hackathons, contributing to open-source projects, and more. This program is designed to offer real-world experiences and opportunities for growth in the tech industry. | ||
</p> | ||
<p className={styles.linkWrap} | ||
onMouseEnter={() => { | ||
setHoverBtn(true); | ||
}} | ||
onMouseLeave={() => { | ||
setHoverBtn(false); | ||
}} | ||
> | ||
<a href={`${prefix}/community/student-program`} className={styles.viewAll}> | ||
Learn more <Image src={`${hoverBtn ? linkArrowHoverPath : linkArrowPath}`} width={20} height={20} alt="Left Arrow" /> | ||
</a> | ||
</p > | ||
</Col> | ||
|
||
<Col sm={12} md={6} lg={6}> | ||
<img src={prefix + '/images/community/ballerina-student-engagement-program-banner.png'} alt='Student engagement program' style={{ width: "100%" }} /> | ||
</Col> | ||
</Row> | ||
</Container> | ||
</Col> | ||
); | ||
} |
21 changes: 21 additions & 0 deletions
21
components/community/university-sessions/UniversitySessions.module.css
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,21 @@ | ||
.viewAll { | ||
display: flex; | ||
color: #20b6b0; | ||
text-decoration: none; | ||
text-align: right; | ||
font-weight: 400; | ||
font-size: 18px; | ||
} | ||
|
||
.viewAll:hover { | ||
text-decoration: none !important; | ||
color: #464646 !important; | ||
} | ||
|
||
.linkWrap { | ||
text-align: right; | ||
} | ||
|
||
.upcomingSection { | ||
margin-top: 15px; | ||
} |
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
Binary file added
BIN
+202 KB
public/images/community/ballerina-student-engagement-program-banner.png
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