Skip to content

Commit

Permalink
DevHub Revamp (#335)
Browse files Browse the repository at this point in the history
* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feature: init root

* feature: pass props for widgets accountId and contract accountId

* feature: demo for new root

* feature: adds the configurators wip

* feature: branding configurator

* feature: about and information configurator

* feature: adds new addon flow

* fix: communities metadata

* fix: pass widgets to addon configurator

* fix: formatting and centering

* feature: refactored configurator

* feature: working information, about, and access control editors

* fix: branding for upload, but broken preview

* feature: blog start

* feature: tab links

* refactor: working communities with new root

* feature: implements feed

* fix: format

* feature: addons and configs with swapping config

* feat: puts in replacements for the refactor

* fix: name casing

* fix: format

* Implement server side search (#298)

* Implement server side search

* case insensitive search on content

* add search test

* Update deploy-dev-testnet.yml

* feature: adds addons and their configurators (#326)

* fix: bos-loader pulls from cargo

* fix: links and replacements

* chore: dummy data

* feature: rename page

* wip: plugins

* feature: able to configure addons from community config

* feat: dummy data

* fix: key in tab selection

* feat: telegram configurator

* feature: init github

* refactor: moves configurators inside of configuration

* refactor: posts and blog

* fix: replace mob

* fix: broken link

* fix: move app and clean-up

* refactor: structure

* fix: scripts

* fix: bos-loader pulls from cargo

* fix: links and replacements

* feat: adds workflow to deploy to testnet (#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: structure clean up and fixes (#330)

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* fix: formatting

* fix: bos-loader pulls from cargo

* feat: adds workflow to deploy to testnet (#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: rename to devhub

* chore: removes hello

* refactor: renames from DevHub to devhub references in code

* fix: marks legacy and makes new feed test

* feature: catches up to main

* fix: formatting

* feature: wrapped kanban and github wip

* test: adds tests for community

* fix: formatting

* fix: bash explicit

* fix: adds check for jq

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* Website Redesign (#336)

* Rebase to develop branch

* fix: organize componnets according to atomic design

* feat: Add hrefs to navlinks

* fix: remove duplicate banner

* fix: remove duplicate Navbar dropdown

* fix: remove comments from app layout

* feat: add visual indicator to navbar on selected link

* refactor: structure clean up and fixes (#330)

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* fix: formatting

* fix: bos-loader pulls from cargo

* feat: adds workflow to deploy to testnet (#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: rename to devhub

* chore: removes hello

* refactor: renames from DevHub to devhub references in code

* fix: marks legacy and makes new feed test

* feature: catches up to main

* fix: formatting

* feature: wrapped kanban and github wip

* test: adds tests for community

* fix: formatting

* fix: bash explicit

* fix: adds check for jq

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* refactor: moves over search post feature

* refactor: converts legacy

* refactor: replaces a with Link and separates out community card and spawner

* refactor: simplfies configurator wip

* fix: community configurator

* feat: blog configuration

* feat: improved configurator for wiki

* feat: blog editor

* fix: tag component

* Merge local develop into repo develop (#340)

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* feat: adds workflow to deploy to testnet (#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: structure clean up and fixes (#330)

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* fix: bos-loader pulls from cargo

* fix: links and replacements

* fix: formatting

* fix: bos-loader pulls from cargo

* feat: adds workflow to deploy to testnet (#305)

* feat: adds workflow to deploy to testnet

* fix: prettier

* fix: build script

* feature: devhub.testnet workflow

* feat: creates dev script

* feat: replaces release workflow

* feat: adds weekly promotion of develop to main

* fix: adds replacements for mainnet (#318)

* Fix community posting (#308)

* chore: Format

* Fix community post button

---------

Co-authored-by: Bo Yao <[email protected]>

* fix: main branch deploy action (#319)

* fix: adds replacements for mainnet
* fix: changes devhub.testnet to devhubtest.testnet

* Improve search ux (#317)

* big improvement on search ux

* add search icon

* feat: adds workflow to deploy to testnet

* feat: creates dev script

* refactor: rename to devhub

* chore: removes hello

* refactor: renames from DevHub to devhub references in code

* fix: marks legacy and makes new feed test

* feature: catches up to main

* fix: formatting

* feature: wrapped kanban and github wip

* test: adds tests for community

* fix: formatting

* fix: bash explicit

* fix: adds check for jq

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* refactor: moves over search post feature

* refactor: converts legacy

* refactor: replaces a with Link and separates out community card and spawner

* refactor: simplfies configurator wip

* fix: Preserve default behavior for `npm run dev` (#337)

* chore: Format

* fix: Preserve default behavior for `npm run dev`

* chore: Format

* fix: community configurator

* feat: blog configuration

* feat: improved configurator for wiki

* feat: blog editor

* fix: tag component

* feat: adds deploy script

* fix: access control configurator

* fix: ids for addons

* fix: formatting

* fix: communities test

---------

Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Bo Yao <[email protected]>

* Website Redesign (#336)

* Rebase to develop branch

* fix: organize componnets according to atomic design

* feat: Add hrefs to navlinks

* fix: remove duplicate banner

* fix: remove duplicate Navbar dropdown

* fix: remove comments from app layout

* feat: add visual indicator to navbar on selected link

feat: adds deploy script

fix: access control configurator

fix: ids for addons

fix: formatting

fix: communities test

* feat: configures tests for different wallet connection scenarios

fix: remove deploy

fix: removes deploy script

* refactor: new devhub root and refactor of current app

chore: removes homepage work

chore: removes homepage from app.js

fix: removes from contributing

fix: cleans pull request

fix: removes change to deploy-dev workflow step

* fix: formatting

* Rebase to develop branch

* fix: organize componnets according to atomic design

* feat: Add hrefs to navlinks

* fix: remove duplicate banner

* fix: remove duplicate Navbar dropdown

* fix: remove comments from app layout

* feat: add visual indicator to navbar on selected link

* feat: responsive home page

* feat: responsive navbar

* Fix some UI issues

* feat: adds community addon framework, wiki and telegram plugins

* fix: formatting

* feat: redesign communities page

* feat: make responsive communities page

* test: bootstraps addon test wip

* fix: formatting

* test: modifies test criteria

* fix: background color

* :# This is a combination of 3 commits.

feat: configures tests for different wallet connection scenarios

fix: remove deploy

fix: removes deploy script

fix: formatting

fix: standardize bos-cli in the workflows

* fix: standardize bos-cli in the workflows

* fix: adds back homepage

* fix: use <Link> tag for navbar links (#347)

* Redesigned Feed and About page (#351)

* feat: try to copy figma design

* fix: remove padding from top

* Finish feed page

* Finish about page

* fix: href in profile card

* fix: formatting

---------

Co-authored-by: Elliot Braem <[email protected]>

* Redesign of individual community pages + Newsletter (#360)

* feat: try to copy figma design

* fix: remove padding from top

* Finish feed page

* Finish about page

* fix: href in profile card

* fix: formatting

* feat: redesigned communities page

* fix header

* fix label

* feat: create newsletter
- Fix some UI issues

* Finish newsletter section

---------

Co-authored-by: Elliot Braem <[email protected]>

* Contribution page, Profile Page, and some UI fixes (#363)

* feat: try to copy figma design

* fix: remove padding from top

* Finish feed page

* Finish about page

* fix: href in profile card

* fix: formatting

* feat: redesigned communities page

* fix header

* fix label

* feat: create newsletter
- Fix some UI issues

* Finish newsletter section

* Revert "Merge branch 'develop' into feature/community-redesign"

This reverts commit 4309686, reversing
changes made to b82ac7c.

* Fix community overflow and footer

* feat: Add links to home

* Contribute page, profile page, and some fixes

---------

Co-authored-by: Elliot Braem <[email protected]>

* Minor design fixes to new homepage (#367)

* made minor design changes and added URLs for some links.

* fix formatting

---------

Co-authored-by: Zeeshan Ahmad <[email protected]>

* cleanup

* fix: workflow

---------

Co-authored-by: Thomas <[email protected]>
Co-authored-by: Bo Yao <[email protected]>
Co-authored-by: Carina.Akaia.near <[email protected]>
Co-authored-by: Zeeshan Ahmad <[email protected]>
Co-authored-by: Jaswinder <[email protected]>
  • Loading branch information
6 people authored Nov 1, 2023
1 parent 4b0b770 commit 373d86c
Show file tree
Hide file tree
Showing 34 changed files with 3,132 additions and 635 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Install bos CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.5/bos-cli-v0.3.1-installer.sh | sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.2/bos-cli-installer.sh | sh
- name: Deploy widgets
run: |
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/deploy-prod-testnet.yml

This file was deleted.

35 changes: 34 additions & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ const Theme = styled.div`

if (!page) {
// If no page is specified, we default to the feed page TEMP
page = "feed";
page = "home";
}

// This is our navigation, rendering the page based on the page parameter
function Page() {
const routes = page.split(".");
switch (routes[0]) {
case "home": {
return (
<Widget
src="${REPL_DEVHUB}/widget/devhub.page.home"
props={passProps}
/>
);
}
// ?page=communities
case "communities": {
return (
Expand Down Expand Up @@ -112,6 +120,31 @@ function Page() {
/>
);
}
// ?page=about
case "about": {
return (
<Widget
src={"${REPL_DEVHUB}/widget/devhub.page.about"}
props={passProps}
/>
);
}
case "contribute": {
return (
<Widget
src={"${REPL_DEVHUB}/widget/devhub.page.contribute"}
props={passProps}
/>
);
}
case "profile": {
return (
<Widget
src={"${REPL_DEVHUB}/widget/devhub.page.profile"}
props={passProps}
/>
);
}
// ?page=blog
case "blog": {
return (
Expand Down
17 changes: 9 additions & 8 deletions src/devhub/components/atom/Tag.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const Tag = ({ tag }) => (
<span
class="badge me-1 text-dark fw-normal"
style={{ border: "1px solid #D0D5DD" }}
>
{tag}
</span>
);
const Span = styled.span`
color: #00ec97;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 20px; /* 125% */
`;

const Tag = ({ tag }) => <Span>{tag}</Span>;

return Tag(props);
103 changes: 103 additions & 0 deletions src/devhub/components/island/banner.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
const imageLink = props.imageLink;
const bannerTitle = props.title;

const HeroSection = styled.div`
position: relative;
height: auto;
z-index: 3;
width: 70%;
background: #00ec97;
clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
padding-top: 2rem;
padding-bottom: 2rem;
padding-left: 3.375rem;
@media screen and (max-width: 768px) {
width: 95%;
padding-top: 0.625rem;
padding-left: 1.5rem;
padding-bottom: 1.5rem;
padding-right: 0;
}
`;

const Title = styled.h1`
color: #f4f4f4;
font-size: 4rem;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 88px */
letter-spacing: -1.76px;
width: 80%;
@media screen and (max-width: 768px) {
width: 100%;
font-size: 2.25rem;
letter-spacing: -0.72px;
}
`;

const Container = styled.div`
position: relative;
width: 100%;
height: max-content;
overflow: hidden;
@media screen and (max-width: 768px) {
background: #f4f4f4;
}
`;

const ImageContainer = styled.div`
width: 100%;
height: 100%;
position: absolute;
top: 0;
right: 0;
z-index: 1;
background: transparent;
@media screen and (max-width: 768px) {
display: none;
}
`;

const Image = styled.img`
margin-left: 15.625rem;
height: 100%;
width: 100%;
filter: grayscale(100%);
object-fit: cover;
`;

const MobileImage = styled.img`
display: none;
width: 356.187px;
height: 196px;
margin-left: -1.5rem;
margin-bottom: -1.5rem;
margin-right: 0;
width: 100%;
object-fit: cover;
filter: grayscale(1);
@media screen and (max-width: 768px) {
display: block;
}
`;

return (
<Container>
<HeroSection>
<Title>{bannerTitle}</Title>
<MobileImage src={imageLink} />
</HeroSection>
<ImageContainer>
<Image src={imageLink} />
</ImageContainer>
</Container>
);
Loading

0 comments on commit 373d86c

Please sign in to comment.