-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: improved hero section in playground (#124)
* chore: created initial hero component * chore: hero section improved * chore: improved hero section * chore: improved hero section * fix: file structure, styled components * fix: build issues --------- Co-authored-by: AYANscyy2 <[email protected]> Co-authored-by: Srishty Mangutte <[email protected]>
- Loading branch information
1 parent
268f058
commit 8c18b78
Showing
15 changed files
with
118 additions
and
10,499 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,39 @@ | ||
import Image from 'next/image'; | ||
import { LogoText, SubLogoText } from '../shared/Typography/Headings'; | ||
// import { Paragraph } from '../shared/Typography/Paragraphs'; | ||
import { | ||
AboutUsHeading, | ||
BackgroundDiv, | ||
CircleDiv, | ||
MainContainer, | ||
Paragraph1, | ||
Section, | ||
SectionWithBgImage, | ||
} from './body.styles'; | ||
import { HeroImage } from './Image'; | ||
|
||
export const Body = () => { | ||
return ( | ||
<> | ||
<MainContainer> | ||
<BackgroundDiv> | ||
<CircleDiv /> | ||
</BackgroundDiv> | ||
<Section> | ||
<LogoText>innovision</LogoText> | ||
<SubLogoText>24</SubLogoText> | ||
</Section> | ||
<SectionWithBgImage> | ||
<HeroImage /> | ||
<AboutUsHeading>ABOUT US</AboutUsHeading> | ||
<Paragraph1> | ||
HackNITR 5.0 is a hackathon to encourage you to use your imagination and invention to | ||
develop cutting-edge technology-based solutions to challenges in the real world. It was | ||
put together by a large group of tech enthusiasts from Google Developer Student Club | ||
(GDSC) | ||
</Paragraph1> | ||
</SectionWithBgImage> | ||
</MainContainer> | ||
</> | ||
); | ||
}; |
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,18 @@ | ||
import Image from 'next/image'; | ||
import { MainContainer } from './image.styles'; | ||
|
||
export const HeroImage = () => { | ||
return ( | ||
<> | ||
<MainContainer> | ||
<Image | ||
className='mx-auto' | ||
src='/static/images/about_bg.png' | ||
height={1200} | ||
width={1200} | ||
alt='Galaxy Background' | ||
/> | ||
</MainContainer> | ||
</> | ||
); | ||
}; |
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,9 @@ | ||
import { Body } from './Body'; | ||
|
||
export const AboutUsMain = () => { | ||
return ( | ||
<> | ||
<Body /> | ||
</> | ||
); | ||
}; |
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,39 @@ | ||
import tw, { styled } from 'twin.macro'; | ||
import { Heading1 } from '../shared/Typography/Headings'; | ||
import { Paragraph } from '../shared/Typography/Paragraphs'; | ||
|
||
export const MainContainer = styled.div` | ||
${tw`relative flex flex-col items-center z-10 justify-center p-5 h-full bg-[#070c23] bg-cover bg-repeat`} | ||
background-image: url('/static/images/noise&texture.png'); | ||
`; | ||
|
||
export const BackgroundDiv = styled.div` | ||
${tw`absolute -z-10 h-full w-full overflow-hidden flex mx-auto pt-20`} | ||
`; | ||
|
||
export const CircleDiv = styled.div` | ||
${tw`border border-[#070c23] drop-shadow-2xl rounded-full w-full h-full mt-64`} | ||
background-image: linear-gradient(to bottom, rgba(197, 208, 255, 0.6) 0%, rgba(197, 208, 255, 0.4) 4%, rgba(21, 42, 126, 0.3) 50%, rgba(21, 42, 126, 0) 100%); | ||
box-shadow: | ||
inset 0 0 30px 30px rgba(11, 19, 42, 1), | ||
0 0 50px 50px rgba(11, 19, 70, 0.5); | ||
`; | ||
|
||
export const Section = styled.section` | ||
${tw`h-screen`} | ||
`; | ||
|
||
export const SectionWithBgImage = styled(Section)` | ||
${tw`relative z-10 mb-52`} | ||
`; | ||
|
||
export const AboutUsHeading = styled(Heading1)` | ||
${tw`mx-auto`} | ||
background-color: rgba(0, 0, 0, 0.4); | ||
background-blend-mode: darken; | ||
box-shadow: 0px 0px 30px 30px rgba(0, 0, 0, 0.4); | ||
`; | ||
|
||
export const Paragraph1 = styled(Paragraph)` | ||
${tw`mx-16 `} | ||
`; |
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,6 @@ | ||
import tw from 'twin.macro'; | ||
import styled from 'styled-components'; | ||
|
||
export const MainContainer = styled.div` | ||
${tw`absolute -z-10 w-full h-full -top-44`} | ||
`; |
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
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 +0,0 @@ | ||
|
||