Skip to content
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

Update Staging Branch #6

Merged
merged 46 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
32b52a9
Create webpack.yml
suejinkim20 Jul 1, 2024
3a8d355
update to knit 9
suejinkim20 Jul 1, 2024
bd1d334
add deploy step to github action
suejinkim20 Jul 1, 2024
419073b
remove extra comments
suejinkim20 Jul 1, 2024
226e0f1
update github action build steps
suejinkim20 Jul 1, 2024
838cf52
update knit date and location on home page
suejinkim20 Jul 1, 2024
497dc38
Update webpack.yml
suejinkim20 Jul 10, 2024
961fa56
Update webpack.yml
suejinkim20 Jul 11, 2024
d20928d
update home page content
suejinkim20 Jul 11, 2024
f750686
add button group css class
suejinkim20 Jul 11, 2024
9edd62c
update content
suejinkim20 Jul 11, 2024
5bd010c
add ordered list to markdown mapping
suejinkim20 Jul 11, 2024
2516a15
add basename /knit-website to production deployment
suejinkim20 Jul 11, 2024
d4640a6
add button container class on travel page
suejinkim20 Jul 12, 2024
566214f
update contrastText color in theme
suejinkim20 Jul 12, 2024
2cfdb83
customize mui button at theme component level
suejinkim20 Jul 12, 2024
6a62d74
update brand in hero/header to use numberless knit logo
suejinkim20 Jul 12, 2024
ec90f2e
update text for cfa button on home page
suejinkim20 Jul 12, 2024
4228067
update mobile menu logo and colors
suejinkim20 Jul 12, 2024
b549ecd
allow color customization for link icon
suejinkim20 Jul 12, 2024
5fae624
update external link buttons
suejinkim20 Jul 12, 2024
e8a7093
darken and increase font weight for navigation text and body text
suejinkim20 Jul 12, 2024
cf170ba
update hotel block button url
suejinkim20 Jul 12, 2024
670d9df
add homepage field to package.json
suejinkim20 Jul 12, 2024
f04ae27
update travel stipend deadline
suejinkim20 Jul 12, 2024
3e40271
fix typo on hotel address
suejinkim20 Jul 12, 2024
fa3fe68
make external button links open in a new tab
suejinkim20 Jul 12, 2024
98dc76d
fix props on buttons
suejinkim20 Jul 12, 2024
deca392
update github action to run on push to main
suejinkim20 Jul 12, 2024
295da29
Revert "update github action to run on push to main"
suejinkim20 Jul 12, 2024
d97ab8e
handla SPA routing for gh pages
suejinkim20 Jul 12, 2024
0299b9d
install mdx deps
mbwatson Jul 13, 2024
9faf79e
tell webpack about mdx files
mbwatson Jul 13, 2024
2aacb55
setup and use react in some mdx file
mbwatson Jul 13, 2024
9bce2ee
copy 404.html file into build/dist folder
suejinkim20 Jul 18, 2024
f12eebb
fix "register now" link url typo
suejinkim20 Jul 19, 2024
a8713fc
remove travel application button and indicate form is closed
suejinkim20 Jul 19, 2024
b2e51dd
remove unneeded imports
suejinkim20 Jul 26, 2024
d00f567
update registration costs
suejinkim20 Jul 26, 2024
1c7fb7f
remove unneeded registration cost lines
suejinkim20 Jul 26, 2024
2ad57c7
remove gh-pages support
mbwatson Aug 1, 2024
28eda03
Update github action to run on changes to main branch
suejinkim20 Aug 7, 2024
f6c9e93
Merge branch 'develop' into feature/mdx-copy
suejinkim20 Aug 12, 2024
035b8c8
integrate componentMap into MDX components
suejinkim20 Aug 14, 2024
54dc8cc
Merge pull request #7 from fabric-testbed/feature/mdx-copy
suejinkim20 Aug 14, 2024
38693af
Merge pull request #8 from fabric-testbed/feature/mdx
suejinkim20 Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Deploy

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/develop'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
token: ${{ secrets.GITHUB_TOKEN }}
clean: true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"private": "true",
"homepage": "https://fabric-testbed.github.io/knit-website/",
"scripts": {
"start": "SERVE=true webpack serve",
"watch": "webpack --watch",
"build": "NODE_ENV=production webpack",
"build": "NODE_ENV=production webpack && cp ./src/404.html ./dist/404.html",
"build-dev": "webpack",
"lint": "eslint ./src/index.js ./src/components/**/*.js",
"lint:fix": "eslint --fix ./src/index.js ./src/components/**/*.js",
Expand Down
22 changes: 22 additions & 0 deletions src/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />

<title>FABRIC KNIT Workshop 404</title>

<script>
sessionStorage.redirect = location.href;
</script>

<meta http-equiv="refresh" content="0;URL='/knit-website'"></meta>
</head>

<body>
<!-- The purpose of this file is only for deployment at gh pages. -->

</body>


</html>
20 changes: 1 addition & 19 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import {
MarkdownView,
NotFoundView,
RegistrationView,
SpeakersView,
TravelView,
FaqsView,
AgendaView
} from './views'

import { Header, Footer } from '@components/layout'
Expand All @@ -26,11 +23,6 @@ const menuOptions = [
label: 'Registration',
view: <RegistrationView />,
},
// {
// path: '/agenda',
// label: 'Agenda',
// view: <AgendaView />,
// },
{
path: '/travel',
label: 'Travel Info',
Expand All @@ -40,17 +32,7 @@ const menuOptions = [
path: '/cfa',
label: 'Calls for Action',
view: <CfaView />,
},
// {
// path: '/speakers',
// label: 'Speakers',
// view: <SpeakersView />,
// },
// {
// path: '/faqs',
// label: 'FAQs',
// view: <FaqsView />,
// },
}
]

//
Expand Down
14 changes: 7 additions & 7 deletions src/components/brand.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import PropTypes from 'prop-types'
import { Stack, Typography } from '@mui/joy'
import { Link } from '@components/link'
import fabricLogo from '@images/fabric-logo.png'
import numberlessKnitLogo from '@images/knit-logo-numberless.png'

export const Brand = () => {
return (
<Stack
component={ Link } to="/"
direction={{ sm: 'column', md: 'row' }}
alignItems="center"
gap={ 1 }
alignItems="flex-end"
gap={ 2 }
sx={{
textDecoration: 'none',
'.fabric-text': {
letterSpacing: '4px',
fontSize: '52px',
fontWeight: '100',
fontSize: '62px',
fontWeight: '300',
background: '-webkit-linear-gradient(white, #47aae1)',
WebkitBackgroundClip: 'text',
WebkitTextFillColor: 'transparent',
WebkitMaskImage: 'linear-gradient(white, #47aae1)',
lineHeight: 1,
marginBottom: '0.3rem'
},
}}
>
<KnitLogo />
<img src={ fabricLogo } width="200px" />
<img src={ numberlessKnitLogo } width="250px" />
<Typography className="fabric-text">2024</Typography>

</Stack>
Expand Down
3 changes: 1 addition & 2 deletions src/components/layout/footer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Divider, List, ListItem, Sheet, Stack, Typography } from '@mui/joy'
import { List, ListItem, Sheet, Stack, Typography } from '@mui/joy'
import { KnitLogo } from '@components/brand'
import { Link } from '@components/link'
import {
Container,
SIZES,
} from '@components/layout'

export const Footer = () => {
Expand Down
34 changes: 25 additions & 9 deletions src/components/link/external-link.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
import { Fragment } from 'react'
import { BaseLinkPropTypes } from './'
import { ExternalLinkIcon } from './'
import { Button } from '@mui/joy'
import { Button, Link } from '@mui/joy'

export const ExternalLink = ({ to, children, ...props }) => {
export const ExternalLink = ({ to, children, button, ...props }) => {
return (
<Fragment>
<a
href={ to }
target="_blank"
rel="noopener noreferrer"
{ ...props }
>{ children }</a>
<ExternalLinkIcon />
{ button ? (
<Button
component="a"
href={to}
endDecorator={<ExternalLinkIcon color="#fff"/> }
size="lg"
target="_blank"
rel="noopener noreferrer"
>
{children}
</Button>
) : (
<Fragment>
<Link
component={ button? "button": null}
href={ to }
target="_blank"
rel="noopener noreferrer"
{ ...props }
>{ children }</Link>
<ExternalLinkIcon />
</Fragment>
)}
</Fragment>
)
}
Expand Down
10 changes: 6 additions & 4 deletions src/components/link/link-icon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types'

export const LinkIcon = ({ size, children }) => {
export const LinkIcon = ({ size, color, children }) => {
return (
<svg
focusable="false"
Expand All @@ -13,26 +13,28 @@ export const LinkIcon = ({ size, children }) => {
width={ `${ size }px` }
height={ `${ size }px` }
style={{ marginLeft: '4px' }}
fill="#789"
fill={color || "#789"}
>{ children }</svg>
)
}

LinkIcon.propTypes = {
size: PropTypes.number.isRequired,
color: PropTypes.string,
children: PropTypes.node.isRequired,
}

export const ExternalLinkIcon = ({ size = 10 }) => {
export const ExternalLinkIcon = ({ size = 10, color }) => {
return (
<LinkIcon size={ size }>
<LinkIcon size={ size } color={color}>
<path d="M 0,15.609374 V 7.2187491 H 5.1505597 10.30112 L 10.910188,6.6093432 11.519255,5.9999371 10.564316,5.044784 9.6093751,4.0896309 V 2.044815 -3.0028053e-7 H 16.804688 24 V 7.1953116 14.390624 h -2.044815 -2.044817 l -0.955152,-0.954941 -0.955154,-0.954939 -0.609406,0.609067 -0.609405,0.609069 V 18.84944 24 H 8.3906251 0 Z m 14.414062,3.246094 c 0,-1.514648 -0.0079,-2.753907 -0.01753,-2.753907 -0.0096,0 -0.821756,0.804184 -1.80471,1.787076 l -1.787189,1.787076 -3.2401772,-3.240177 -3.240177,-3.240177 1.7870754,-1.787191 c 0.9828914,-0.982954 1.7870754,-1.7950739 1.7870754,-1.8047105 0,-0.00961 -1.2392579,-0.017522 -2.7539062,-0.017522 H 2.3906249 v 6.0117185 6.011719 h 6.0117189 6.0117182 z m -0.01685,-6.146047 3.603002,-3.6030772 1.446496,1.4468272 1.446495,1.446828 h 0.358088 0.358085 V 7.1953116 2.3906241 H 16.804688 12 v 0.3577821 0.3577821 l 1.025391,1.028297 c 0.563964,0.5655636 1.209333,1.2172855 1.434153,1.4482713 L 14.8683,6.0027304 11.272086,9.5990023 7.675871,13.195274 9.2343514,14.753887 c 0.8571646,0.857237 1.5587886,1.558612 1.5591656,1.558612 3.77e-4,0 1.622035,-1.621385 3.603688,-3.603078 z" />
</LinkIcon>
)
}

ExternalLinkIcon.propTypes = {
size: PropTypes.number,
color: PropTypes.string,
}

export const MailtoLinkIcon = ({ size = 12 }) => {
Expand Down
1 change: 0 additions & 1 deletion src/components/link/link.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Fragment } from 'react'
import PropTypes from 'prop-types'
import { Link as ReactLink } from 'react-router-dom'
import { NavLink as ReactNavLink } from 'react-router-dom'
Expand Down
10 changes: 6 additions & 4 deletions src/components/markdown/button.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Button } from '@mui/joy'
import { Link } from '@components/link'

/* eslint-disable-next-line no-unused-vars */
export const button = ({ node, linkto, children }) => {
export const button = ({ linkto, children }) => {
if (typeof children !== 'string') {
return <Button>{ children }</Button>
}
Expand All @@ -12,8 +11,11 @@ export const button = ({ node, linkto, children }) => {

return (
<Button
component={ Link }
component={Link}
to={ linkto }
>{ children }</Button>
button
size="lg"
>{ children }
</Button>
)
}
4 changes: 2 additions & 2 deletions src/components/markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import rehypeRaw from 'rehype-raw'

import { hr } from './hr'
import { a } from './link'
import { ul, li } from './list'
import { ul, ol, li } from './list'
import { pre } from './pre'
import { button } from './button'
import * as typography from './typography'
Expand All @@ -21,7 +21,7 @@ const componentMap = {
a,
hr,
pre,
ul, li,
ul, ol, li,
...typography,
button,
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/menu/desktop-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ export const DesktopMenu = ({ options = [] }) => {
width: '100%',
p: 2,
textDecoration: 'none',
color: 'var(--knit-palette-primary-600)',
color: 'var(--knit-palette-primary-900)',
textTransform: 'uppercase',
letterSpacing: '0.5px'
},
'[aria-current="page"]': {
backgroundColor: 'var(--knit-palette-secondary-light)',
backgroundColor: '#0001',
},
}}
>
Expand Down
8 changes: 4 additions & 4 deletions src/components/menu/drawer-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Fragment, useState } from 'react'
import { Box, Divider, Drawer, IconButton, ModalClose, Stack } from '@mui/joy'
import { Menu as MenuIcon } from 'react-feather'
import { Link } from '@components/link'
import { KnitLogo } from '@components/brand'
import { menuPropTypes } from './menu'
import numberlessKnitLogo from '@images/knit-logo-numberless-dark.png'

//

Expand Down Expand Up @@ -31,7 +31,7 @@ export const DrawerMenu = ({ options = [] }) => {
p: 2,
}}
>
<KnitLogo />
<img src={ numberlessKnitLogo } width="250px" />
<ModalClose
id="close-icon"
sx={{ position: 'initial' }}
Expand All @@ -57,7 +57,7 @@ export const DrawerMenu = ({ options = [] }) => {
backgroundColor: 'transparent',
transition: 'background-color 250ms',
'&:hover': {
'backgroundColor': 'var(--knit-palette-primary-100)',
backgroundColor: '#0001',
},
},
'.list-item > a': {
Expand All @@ -68,7 +68,7 @@ export const DrawerMenu = ({ options = [] }) => {
textTransform: 'uppercase',
},
'[aria-current="page"]': {
'backgroundColor': 'var(--knit-palette-primary-200)',
backgroundColor: '#0001',
},
}}
>
Expand Down
28 changes: 12 additions & 16 deletions src/content/cfa.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# Calls for Action

## Calls for Demos
Enim voluptate elit ad reprehenderit laborum laborum magna consequat nostrud. Et ut velit velit pariatur incididunt laborum id esse velit duis. Adipisicing aute do proident in cillum duis in dolore tempor ut in officia velit cillum quis. Sint enim sed nulla occaecat quis amet nostrud consequat commodo id irure quis.

Enim voluptate elit ad reprehenderit laborum laborum magna consequat nostrud. Et ut velit velit pariatur incididunt laborum id esse velit duis. Adipisicing aute do proident in cillum duis in dolore tempor ut in officia velit cillum quis. Sint enim sed nulla occaecat quis amet nostrud consequat commodo id irure quis.

<button linkTo="https://renci.org/" center="true">Call for Demos</button>

## Calls for Tutorials
Incididunt id aliquip cillum in aliqua quis qui mollit exercitation in laborum. Nisi in dolore occaecat minim cillum dolor ut cupidatat. Lorem ipsum esse consectetur proident dolor consequat duis sed duis magna ullamco aliquip ut ut reprehenderit minim aliqua laborum proident laborum.

Enim voluptate elit ad reprehenderit laborum laborum magna consequat nostrud. Et ut velit velit pariatur incididunt laborum id esse velit duis. Adipisicing aute do proident in cillum duis in dolore tempor ut in officia velit cillum quis. Sint enim sed nulla occaecat quis amet nostrud consequat commodo id irure quis.
## Calls for Presentations
Call for Lightning Talks

<button linkTo="https://renci.org/" center="true">Call for Tutorials</button>
KNIT9 attendees have the opportunity to present lightning talks on the following topics:

1. Enabling experimentation in various science domains
2. Getting started with FABRIC -- Unique features, useful tricks, sharable services
3. Experiments across FABRIC and other testbeds
4. Propose a compelling new topic

## Calls for Presentations
In sit magna pariatur laborum id cillum excepteur nulla tempor occaecat fugiat dolor ut quis duis do in enim. Magna et enim velit in sed officia ut ut ut voluptate.
These talks should show active FABRIC experiment views and results. For planned experiments, we encourage presenting planned topology and resources (FABRIC and other) as specific as possible.

Incididunt id aliquip cillum in aliqua quis qui mollit exercitation in laborum. Nisi in dolore occaecat minim cillum dolor ut cupidatat. Lorem ipsum esse consectetur proident dolor consequat duis sed duis magna ullamco aliquip ut ut reprehenderit minim aliqua laborum proident laborum.
Submissions are due July 15 via our [submission form](https://docs.google.com/forms/d/1x-JXFHXTNgN6-wkqcoBcnFNAvkPdRSCIrX_poPTXazw/viewform?edit_requested=true).

<button linkTo="https://renci.org/" center="true">Call for Presentations</button>
<div class="button-container">
<button linkto="https://docs.google.com/forms/d/1x-JXFHXTNgN6-wkqcoBcnFNAvkPdRSCIrX_poPTXazw/viewform?edit_requested=true">Call for Presentations</button>
</div>

For more questions, email [Chelsea Davis](mailto:[email protected])
Loading