-
Notifications
You must be signed in to change notification settings - Fork 30
feat(website): initial build of evo web #317
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 1 commit
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
bd031c9
feat(website): initial build of evo web
ArtBlue ab9d2a5
chore(site): did some cleanup, changed a11y section component linking
ArtBlue 41b19b0
chore(site): made a lot of PR feedback change requests
ArtBlue dad5797
fix(site): moved a11y docs into js, fixed most of the icon issues
ArtBlue e24782a
chore(site): centralized current tab handling
ArtBlue e554555
chore(site): simplified component tabs and globalized component metadata
ArtBlue fdac5cb
chore(site): revised evo web component pages structure
ArtBlue 0f22794
chore(site): updated all the component structures to fit the finalize…
ArtBlue daf2c88
Merge branch 'main' into 167-evo-web-site
agliga 8911fae
chore: update vite config
agliga 32ea426
chore(site): more cleanup, error handling of a11y docs, added html re…
ArtBlue e1b605b
chore: synced skin site with new site
agliga 138f69f
chore(site): updated component metadata with storybook paths
ArtBlue a025441
Merge branch '167-evo-web-site' of https://github.com/eBay/evo-web in…
agliga 04f79b7
chore: updated scripts
agliga d2afe1f
chore(site): updated a11y tab text, added content for A11y landing page.
ArtBlue 645a1bf
Merge branch '167-evo-web-site' of https://github.com/eBay/evo-web in…
agliga 3723cc8
Merge branch 'evo-site-sync' into 167-evo-web-site
agliga 8a1ae12
chore(site): added landing pages for Evo CSS, Marko, and React
ArtBlue f7ecf28
chore(site): updated Evo CSS landing page with content from Skin land…
ArtBlue 0698638
chore(site): reset button overview page
ArtBlue 80151d7
chore(site): moved component intro content from a11y and skin docs in…
ArtBlue 131b33e
chore(site): fixed component versioning info on components page
ArtBlue 8095046
fix(site): fixed broken links, fixed versioning info, cleanup
ArtBlue 57ebeda
chore: updated to mark 6
agliga 83510e1
chore: review comments
agliga 887fbdd
chore(site): removed unnecessary secondary component mapping
ArtBlue 2cbb5be
docs: updated a11y docs
saiponnada cbfae96
docs: added terminology section to existing components
saiponnada 12b3ac1
chore: added typescript support
agliga c9ecbd6
chore: cleanup redundant code
agliga 1809e5a
chore: code cleanup and optimization
agliga b4c8bd8
refactor: inline components, move to local `tags/`, and replace highl…
LuLaValva d8dfa15
chore: enabled typescript for build, cleanup
agliga 9fecc2f
Merge branch 'main' of https://github.com/eBay/evo-web into 167-evo-w…
agliga 9dc8d1a
docs: added subtitles and banner images
saiponnada 9ed8df6
docs: remove developer guide & working examples
saiponnada d14823d
chore: fixed paths for images on published website
agliga 7773cab
chore: updated static directory for skin storybook
agliga 19cc7d1
chore: regenerated package-lock
agliga 923573c
chore: fixed all links to use <base>
agliga bc4fc1d
docs: fix heading structure
saiponnada 11a88c9
docs: fix introduction
saiponnada 3486f1c
docs: updated banner images
saiponnada 337a2b1
chore: update prettier tab width
saiponnada 06a1064
docs: migrate MD to marko
saiponnada 1f55098
chore: fixed accessibility links
agliga 07eb769
chore: ran prettier
agliga 5f2cc57
chore: simplified breadcrumbs code
agliga 4dffcf8
chore(site): fixed home page spacing
ArtBlue 9cecb94
chore: added subtitle to component metadata
agliga bb1e916
chore(site): various small tweaks per meeting items
ArtBlue 702fa5e
chore: fixed versions
agliga f322d46
docs: fix broken links
saiponnada 518b33a
docs: removing formatting spacing
saiponnada c2ea08b
fix: incorrect links
saiponnada 348b50a
chore: added banner images
saiponnada fbf6db6
chore(site): fixed a few more design issues, cleaned up the site styl…
ArtBlue c65cc72
chore: added 404 page
agliga 8189a48
chore: added placeholder images for each component
agliga 98edbc3
chore: layout cleanups
agliga 5930945
chore: removed unused css
agliga 403fb61
chore: removed unused css, removed tailwind references, used all inte…
agliga 4016b9b
chore: cleaned up global styles, added css modules to certain pages
agliga 788ba7d
chore: fixed all icons
agliga 11ce356
docs: 1st content sweep
ianmcburnie 70637ba
chore: cleaned up bem and styles from landing pages
agliga 1a45711
chore: fixed guides and all component links to be components
agliga 1252a3e
chore: cleanup styles and footer
agliga 220ce50
chore: fixed links and loading styles
agliga 3e86df5
chore: fixed accessibility tables and skeleton examples
agliga 9c3ab26
chore: added demo styles
agliga 326fb31
docs: 2nd content sweep
ianmcburnie af55412
docs: content sweep part 3
ianmcburnie f8e24f2
chore: added prev/next buttons. Fixed build. Added storybook links
agliga 2dfc2c0
chore: misc cleanup
agliga abb9709
docs: content sweep part 4
ianmcburnie d7e4ece
docs: removed ARIA menu roles from navigation links
ianmcburnie 27fcc26
chore: fixed section header links, removed SVG page, fixed tooltips c…
agliga a9bf43c
chore: removed menubar role
agliga 770aada
chore: misc cleanup
agliga a961d6b
docs: fixed duplicate main landmark
saiponnada e4c9815
docs: fixed faketabs & highlight code scroll issue
saiponnada d602670
chore: updated and fixed dev deps
agliga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
32 changes: 32 additions & 0 deletions
32
packages/ebayui-core/src/components/ebay-card/examples/horizontal.marko
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,32 @@ | ||
| class {} | ||
|
|
||
| <ebay-card | ||
| layout="horizontal" | ||
| variant="outlined" | ||
| ...input | ||
| > | ||
| <@media> | ||
| <img | ||
| src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-real-square-pic.jpg" | ||
| alt="Example card image" | ||
| class="card__hero-image" | ||
| /> | ||
| </@media> | ||
|
|
||
| <@overline> | ||
| <ebay-authenticity-guarantee-16-icon /> | ||
| <span>Authenticity Guaranteed</span> | ||
| </@overline> | ||
|
|
||
| <@title>Authentic Rookie Cards</@title> | ||
|
|
||
| <@description> | ||
| Museum-quality rookie cards from three sports that prove some people's side hustles become billion-dollar careers while others struggle to keep houseplants alive. | ||
| </@description> | ||
|
|
||
| <@footer> | ||
| <ebay-button variant="primary"> | ||
| See Details | ||
| </ebay-button> | ||
| </@footer> | ||
| </ebay-card> | ||
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,31 @@ | ||
| import path from "path"; | ||
|
|
||
| <for|folder, files| in=input.a11yDocs> | ||
| $ const folderName = folder.split('/').pop() || 'Root'; | ||
| $ const displayName = folderName.replace(/-([a-z])/g, function (g) { | ||
| return ` ${g[1].toUpperCase()}`; | ||
| }); | ||
| $ const properFolderName = displayName.charAt(0).toUpperCase() + displayName.slice(1); | ||
|
|
||
| <li> | ||
| <h3>${properFolderName}</h3> | ||
| <ul> | ||
| <for|filePath| of=files> | ||
| $ const docName = path.basename(filePath, ".md"); | ||
| $ const name = docName.replace(/-([a-z])/g, function (g) { | ||
| return ` ${g[1].toUpperCase()}`; | ||
| }); | ||
| $ const properName = name.charAt(0).toUpperCase() + name.slice(1); | ||
|
|
||
| // Extract the folder name after "patterns/" | ||
| $ const folderName = folder.split('/').pop() || ''; | ||
|
|
||
| <li> | ||
| <a href=`/accessibility/${folderName}/${docName}` class="nav-link" role="menuitem"> | ||
| ${properName} | ||
| </a> | ||
| </li> | ||
| </for> | ||
| </ul> | ||
| </li> | ||
| </for> |
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,22 @@ | ||
| static const a11yDocsSources = import.meta.glob( | ||
| "../../src/docs/a11y/**/*.md" | ||
| ); | ||
| static const a11yDocsFlat = Object.keys(a11yDocsSources); | ||
|
|
||
| // Organize docs by folder structure | ||
| static const a11yDocs = a11yDocsFlat.reduce((acc, filePath) => { | ||
| // Extract the relative path after "src/docs/a11y/" | ||
| const relativePath = filePath.replace(/.*\/packages\/a11y\//, ''); | ||
| const pathParts = relativePath.split('/'); | ||
| const fileName = pathParts.pop(); // Remove filename | ||
| const folderPath = pathParts.join('/'); // Get folder path | ||
|
|
||
| if (!acc[folderPath]) { | ||
| acc[folderPath] = []; | ||
| } | ||
| acc[folderPath].push(filePath); | ||
|
|
||
| return acc; | ||
| }, {}); | ||
|
|
||
| export { a11yDocs, a11yDocsSources }; |
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,18 @@ | ||
| import markdownit from 'markdown-it'; | ||
| import fs from 'fs'; | ||
| import path from 'path'; | ||
|
|
||
| static const md = markdownit(); | ||
|
|
||
| $ { | ||
| // Get the a11y MIND pattern, read its contents, and convert to HTML | ||
| const pattern = input.pattern; | ||
| const a11yPatternsDir = 'src/docs/a11y/patterns/component-patterns/'; | ||
| const a11yPatternsPath = path.join(process.cwd(), `${a11yPatternsDir}/${pattern}.md`); | ||
| const a11yMindPatternMD = fs.readFileSync(a11yPatternsPath, 'utf-8'); | ||
| const a11yMindPatternHTML = md.render(a11yMindPatternMD); | ||
| } | ||
|
|
||
| <div class="a11y-mind-pattern"> | ||
| $!{a11yMindPatternHTML} | ||
| </div> |
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,12 @@ | ||
| import { a11yDocs } from "./a11y-docs.marko"; | ||
|
|
||
| <div class="site-nav secondary-nav"> | ||
| <nav id="a11y-nav" aria-labelledby="navrail-a11y-nav_title"> | ||
| <h2 id="navrail-a11y-nav_title"> | ||
| <a href="/accessibility/">Accessibility Docs</a> | ||
| </h2> | ||
| <ul role="menubar"> | ||
| <a11y-docs-list a11yDocs=a11yDocs/> | ||
| </ul> | ||
| </nav> | ||
| </div> |
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,57 @@ | ||
| <div id="about"> | ||
| <h2>About</h2> | ||
| <p> | ||
| Skin is a pure CSS framework, created by a team of passionate frontend engineers at eBay. | ||
| </p> | ||
| <p> | ||
| Skin's default stylesheet represents | ||
| <a href="https://playbook.ebay.com"> | ||
| eBay Evo | ||
| </a> | ||
| - eBay's evolved brand and design system - but Skin also offers | ||
| <a href="#token-system"> | ||
| token-based configuration | ||
| </a> | ||
| to enable non-eBay branded experiences. | ||
| </p> | ||
| <p>Skin adheres to the following core principals:</p> | ||
| <dl> | ||
| <dt>Accessible</dt> | ||
| <dd> | ||
| Skin leverages semantic HTML, SVG & ARIA to apply our styles wherever possible; thus enforcing correct,${" "} | ||
| <a href="https://github.com/ianmcburnie/bones"> | ||
| accessible markup | ||
| </a> | ||
| . | ||
| </dd> | ||
| <dt>Declarative</dt> | ||
| <dd> | ||
| Skin follows the | ||
| <a href="https://getbem.com"> | ||
| BEM | ||
| </a> | ||
| ${" "}methodology ("Block, Element and Modifier") for structured, human readable code which embraces the power & efficiency of the cascade. | ||
| </dd> | ||
| <dt>Decoupled</dt> | ||
| <dd> | ||
| Skin is decoupled from the JavaScript layer, meaning the HTML and CSS is agnostic of the frontend framework (BYOJ = Bring Your Own Javascript!) | ||
| <sup>*</sup> | ||
| </dd> | ||
| <dt>Scalable</dt> | ||
| <dd> | ||
| Skin is built on a system of | ||
| <a href="https://tr.designtokens.org/format/"> | ||
| design tokens | ||
| </a> | ||
| ${" "}(implemented as CSS Variables); enabling a scalable and consistent visual system for UI development. | ||
| </dd> | ||
| </dl> | ||
| <p> | ||
| <sup>*</sup> | ||
| This website uses | ||
| <a href="https://github.com/makeup/makeup-js"> | ||
| makeup-js | ||
| </a> | ||
| to add some basic interactivity to examples where needed. | ||
| </p> | ||
| </div> |
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,9 @@ | ||
| <!-- Google tag (gtag.js) --> | ||
| <script async src="https://www.googletagmanager.com/gtag/js?id=G-9HQJ5CWCJZ"></script> | ||
| <script> | ||
| window.dataLayer = window.dataLayer || []; | ||
| function gtag(){dataLayer.push(arguments);} | ||
| gtag('js', new Date()); | ||
|
|
||
| gtag('config', 'G-9HQJ5CWCJZ'); | ||
| </script> |
Oops, something went wrong.
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.