-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: added CA Page #106
feat: added CA Page #106
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export const CADetails = { | ||
title: 'Campus Ambassador Program', | ||
content: [ | ||
{ | ||
title: 'Perks', | ||
list: [ | ||
'Certificate of appreciation', | ||
'Free merchandise and gift hampers on completion of certain milestones', | ||
'Free of cost access to webinar and workshop', | ||
'Publicity in social media handles', | ||
'Special discount for next fest by NIT Rourkela', | ||
'Building network and personal connections', | ||
], | ||
}, | ||
{ | ||
title: 'Procedure', | ||
list: [ | ||
'Register yourself for INNOVISION at inno.nitrkl.in', | ||
'Go to CA program', | ||
'Click on Register as CA', | ||
'Register as CA', | ||
'Your Mobile Number is your Unique Referral Code', | ||
'Help your friends register themselves and apply the unique Referral code', | ||
'Win Goodies and Hampers', | ||
], | ||
}, | ||
], | ||
button: { | ||
text: 'Register as Campus Ambassador', | ||
link: 'https://forms.gle/i1tzjmebnmySJsLb9', | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import { Body1, Heading2, Heading3, SectionLayout } from '../shared'; | ||
import { CADetails } from '../../../config/content/CA'; | ||
import { ButtonContainer, ItemsContainer, PerksContainer } from './styles'; | ||
import Button from '../shared/Button'; | ||
|
||
const CAProgram = () => ( | ||
<SectionLayout> | ||
<Heading2>{CADetails.title}</Heading2> | ||
<ItemsContainer> | ||
{CADetails.content.map((item) => ( | ||
<div | ||
key={item.title} | ||
style={{ | ||
width: '100%', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '24px', | ||
}} | ||
> | ||
<Heading3 | ||
style={{ | ||
color: '#91F9D3', | ||
}} | ||
> | ||
{item.title} | ||
</Heading3> | ||
<PerksContainer> | ||
{item.list.map((listItem, index) => ( | ||
<Body1 key={listItem}> | ||
{index + 1}. {listItem} | ||
</Body1> | ||
))} | ||
</PerksContainer> | ||
</div> | ||
))} | ||
</ItemsContainer> | ||
<ButtonContainer> | ||
<Button text={CADetails.button.text} variant='filled' link={CADetails.button.link} /> | ||
</ButtonContainer> | ||
</SectionLayout> | ||
); | ||
|
||
export default CAProgram; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import styled from 'styled-components'; | ||
import tw from 'twin.macro'; | ||
|
||
export const PerksContainer = styled.div` | ||
${tw` | ||
flex | ||
flex-col | ||
gap-2 | ||
`} | ||
`; | ||
|
||
export const ItemsContainer = styled.div` | ||
${tw` | ||
w-[95%] | ||
mx-auto | ||
flex | ||
flex-col | ||
gap-10 | ||
mt-10 | ||
`} | ||
|
||
@media (max-width: 512px) { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
export const ButtonContainer = styled.div` | ||
${tw` | ||
md:w-[20%] | ||
mx-auto | ||
w-[40%] | ||
flex | ||
justify-center | ||
`} | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable max-len */ | ||
import React from 'react'; | ||
import CAProgram from '../components/CAProgram/CAProgram'; | ||
import { PrivateRoute } from '../components'; | ||
|
||
const CA = () => ( | ||
<PrivateRoute> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think privateRoute is required here as logon is not necessary to access the page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is mentioned as part of CA Registration process, that one needs to be logged in before CA Registration |
||
<CAProgram /> | ||
</PrivateRoute> | ||
); | ||
|
||
export default CA; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The page name can be changed. https://inno.nitrkl.in/ca doesn't look good. 🤪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggestions?