-
Notifications
You must be signed in to change notification settings - Fork 202
feat: apisix-website redesign, add redesigned-site sections and styles (sub-pr3) #617
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8728d51
style: add max-width to doc-container
1502shivam-singh 416a0c7
chore: update asset and styles to latest specification
1502shivam-singh ce2c5bd
feat: apisix-website redesign, add redesigned sections code
1502shivam-singh 43a30a7
chore: update code formatting to current standard
1502shivam-singh 540141d
Merge branch 'master' into apisix-web-re-pr3
1502shivam-singh a687665
chore: fix layout issues and font-sizes on higher resolution
1502shivam-singh baa5ca7
fix: make canvas reactive to window resizing
1502shivam-singh f3b2485
chore: increase number of particles in wave particle system
1502shivam-singh d99d9f9
chore: replace resizeEvent by prop variable
1502shivam-singh 24d4888
chore: optimize mediaqueries
1502shivam-singh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
366 changes: 136 additions & 230 deletions
366
website/src/assets/images/infographs/Architecture.svg
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.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,87 @@ | ||
| import React, { useEffect } from "react"; | ||
| import gsap from "gsap"; | ||
|
|
||
| import "../../css/customTheme.css"; | ||
| import HLDesign from "../../assets/images/infographs/Architecture.svg"; | ||
| import Pattern from "../../assets/images/PatternGrouped.svg"; | ||
|
|
||
| const Architecture = (props) => { | ||
| const screenWidth = props.screenWidth; | ||
|
|
||
| useEffect(() => { | ||
| let strokePaths = [] | ||
| for (let i=1; i<28; i++) { | ||
| strokePaths.push(".PatternGrouped_svg__p"+i); | ||
| } | ||
|
|
||
| let tlStroke = gsap.timeline({ | ||
| paused: true, | ||
| defaults: { | ||
| ease: "power2.inOut", | ||
| yoyo: true, | ||
| repeat: -1, | ||
| }, | ||
| }); | ||
|
|
||
| tlStroke.fromTo(strokePaths, { | ||
| strokeDashoffset: 10000 | ||
| }, { | ||
| strokeDashoffset: 0, | ||
| duration: 5, | ||
| stagger: 0.3, | ||
| ease: "power2.inOut", | ||
| stroke: "red", | ||
| }); | ||
|
|
||
| let observer = new IntersectionObserver(onIntersection, { | ||
| root: null, | ||
| threshold: 0.4, | ||
| }) | ||
|
|
||
| function onIntersection(entries, opts){ | ||
| entries.forEach(entry => { | ||
| if (entry.isIntersecting) { | ||
| tlStroke.paused(false); | ||
| } else { | ||
| tlStroke.paused(true); | ||
| } | ||
| } | ||
| ); | ||
| } | ||
|
|
||
| observer.observe( document.querySelector('.arch')); | ||
|
|
||
| return () => { | ||
| tlStroke.pause(0).kill(true); | ||
| observer.disconnect(); | ||
| } | ||
| }, []); | ||
|
|
||
| return ( | ||
| <> | ||
| <div className="arch"> | ||
| <div style={{position: "absolute", display: "flex", justifyContent: "center", alignItems: "center", height: "120vh"}}> | ||
| <Pattern className="arch-scale-svg" style={{width: "100vw", strokeWidth: "3", zIndex: "-10", opacity: "0.25", strokeDasharray: "10000"}}/> | ||
| </div> | ||
| <div> | ||
| <h3 className="arch-head">Building for large-scale, high value systems</h3> | ||
| </div> | ||
| <div className="arch-subtitle"> | ||
| <p>Apache APISIX lets you build Cloud-Native Microservices API gateways, delivering the ultimate performance, security, open source and scalable platform for all your APIs and microservices.</p> | ||
| </div> | ||
| <div className="arch-card" style={{position: "relative"}}> | ||
| <div className="hldesign"> | ||
| <HLDesign className="hldesign-graphic"/> | ||
| </div> | ||
| <div className="arch-card-caption"> | ||
| <p style={{width: screenWidth >=768 ? "50%" : "90%"}}>Apache APISIX is based on Nginx and etcd. Compared with traditional API gateways, APISIX has dynamic routing and hot-loading plugins</p> | ||
| </div> | ||
| <div className="arch-card-border"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default Architecture; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.