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

New landing page #694

Merged
merged 39 commits into from Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d395882
checkpoint, building structure for desktop and mobile
bthaile Mar 22, 2024
6b42fa8
key features, still need to replace top cards with styled components,…
bthaile Mar 22, 2024
46366e0
fix feature card background between light and dark mode
bthaile Mar 22, 2024
04996ab
fix icon alignments
bthaile Mar 22, 2024
b04c0db
create hover state for home page pill components
bthaile Mar 25, 2024
1b47f32
mobile for building onflow cards
bthaile Mar 26, 2024
82b7218
all theme primary color to be svg stroke
bthaile Mar 26, 2024
ece888d
add hover effect to image links
bthaile Mar 26, 2024
e783634
structure docs links
bthaile Mar 26, 2024
e883095
style explore the docs
bthaile Mar 27, 2024
86be1f8
add arrow svg
bthaile Mar 28, 2024
14621d9
fix highlight of category on starting building section
bthaile Mar 28, 2024
f791deb
add social cards
bthaile Mar 28, 2024
1fa83a5
fix button style in mobile
bthaile Mar 28, 2024
4242855
update wording
bthaile Mar 28, 2024
cfe7137
fix spelling
bthaile Mar 28, 2024
9468af1
fix typo
bthaile Mar 28, 2024
58315f3
added new gradient to be used for section background
bthaile Mar 28, 2024
8489f30
add bg image to social cards
bthaile Mar 29, 2024
7abe6d3
add links and update text hover
bthaile Mar 29, 2024
0459823
add hover effect, fix link color in link grid
bthaile Mar 29, 2024
74477d6
fix dark mode hover effect for link grid
bthaile Mar 29, 2024
1448647
polish
bthaile Apr 1, 2024
f3eda24
update links and hover state for key features
bthaile Apr 1, 2024
a89f1f2
reorganize page cards to allow user to page through multiple pages of…
bthaile Apr 1, 2024
1245c97
add section transition
bthaile Apr 1, 2024
578ee8c
remove console log
bthaile Apr 1, 2024
fcef08a
update images for paged cards
bthaile Apr 2, 2024
97d5863
update card text
bthaile Apr 2, 2024
473987c
polish and fix typo
bthaile Apr 2, 2024
6118456
fix more links
bthaile Apr 3, 2024
2c5ae44
fix some linting warnings
bthaile Apr 3, 2024
34010c1
fix responsive with cards
bthaile Apr 3, 2024
00e84c6
alignment hover state on pill
bthaile Apr 3, 2024
e6d68b8
fix responsivness in start list pills md size
bthaile Apr 4, 2024
66e3947
fix responsiviness of feature cards for tablet format
bthaile Apr 4, 2024
6057b6e
fix margin issues in md layout
bthaile Apr 4, 2024
4d45739
fix border color for grid of links
bthaile Apr 4, 2024
a2d7abb
fix md layout for social cards
bthaile Apr 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 39 additions & 2 deletions docusaurus.config.js
Expand Up @@ -409,8 +409,8 @@ const config = {
label: 'Core Contracts & Standards',
},
{
href: 'https://academy.ecdao.org/',
label: 'Emerald DAO Bootcamp',
href: '/evm/about',
label: 'EVM',
},
],
},
Expand Down Expand Up @@ -503,6 +503,43 @@ const config = {
},
}),
plugins: [
function customizedSvgo() {
return {
name: 'docusaurus-svgo',
configureWebpack(config) {
// allow svgr to use svgo config file
for (const rule of config.module.rules) {
if (
typeof rule === 'object' &&
rule.test.toString() === '/\\.svg$/i'
) {
for (const nestedRule of rule.oneOf) {
if (nestedRule.use instanceof Array) {
for (const loader of nestedRule.use) {
if (
typeof loader === 'object' &&
loader.loader === require.resolve('@svgr/webpack')
) {
if (typeof loader.options === 'object') {
loader.options.svgoConfig = null;
}
}
}
}
}
}
}
return {
mergeStrategy: {
'module.rules': 'replace',
},
module: {
rules: config.module.rules,
},
};
},
};
},
function tailwindPlugin() {
return {
name: 'docusaurus-tailwindcss',
Expand Down
26 changes: 2 additions & 24 deletions src/data/pages/home.tsx
@@ -1,29 +1,7 @@
import { type ContentNavigationListProps } from '../../ui/design-system/src/lib/Components/ContentNavigationList';
import { type HomepageStartItemProps } from '../../ui/design-system/src/lib/Components/HomepageStartItem';

const homepageStartProjectData: HomepageStartItemProps[] = [
{
title: 'Getting Started',
text: 'Dive into key concepts with a Hello World quickstart',
link: '/build/getting-started/quickstarts/hello-world',
icon: 'learn',
},
{
title: 'Developer Guides',
text: 'Create your first dApp in just a few minutes',
link: '/build/guides/flow-app-quickstart',
icon: 'quickstart',
},
{
title: 'Resources',
text: 'All the developer tools you need',
link: '/tools/flow-cli',
icon: 'documentation',
},
];

const contentNavigationListItems: ContentNavigationListProps = {
header: 'Explore Key Concepts and Features',
header: 'Key Features',
contentNavigationItems: [
{
title: 'Why Flow',
Expand Down Expand Up @@ -52,4 +30,4 @@ const contentNavigationListItems: ContentNavigationListProps = {
],
};

export { homepageStartProjectData, contentNavigationListItems };
export { contentNavigationListItems };
7 changes: 1 addition & 6 deletions src/pages/index.tsx
Expand Up @@ -6,17 +6,13 @@ import { allEvents } from '../data/events';
import HomePage from '../ui/design-system/src/lib/Pages/HomePage';
// import { refreshTools } from '../cms/tools.server'
import { externalLinks } from '../data/external-links';
import {
contentNavigationListItems,
homepageStartProjectData,
} from '../data/pages/home';
import { contentNavigationListItems } from '../data/pages/home';

const data = {
discordUrl: externalLinks.discord,
discourseUrl: externalLinks.discourse,
twitterUrl: externalLinks.twitter,
contentNavigationListItems,
homepageStartProjectData,
flips: {
// ...flips, temporary empty arrays
goodPlacesToStartFlips: [],
Expand All @@ -38,7 +34,6 @@ const Index = (): JSX.Element => {
discourseUrl={externalLinks.discourse}
flips={data.flips}
githubUrl={externalLinks.github}
homepageStartProjectData={data.homepageStartProjectData}
twitterUrl={externalLinks.twitter}
upcomingEvents={data.upcomingEvents}
/>
Expand Down
41 changes: 29 additions & 12 deletions src/ui/design-system/images/gradients/home.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ui/design-system/images/misc/github-image.png
Binary file modified src/ui/design-system/images/misc/landing-home.png
Binary file modified src/ui/design-system/images/misc/landing-home@2x.png
Binary file added src/ui/design-system/images/misc/social-bg.png
Binary file added src/ui/design-system/images/misc/x.com-image.png
3 changes: 3 additions & 0 deletions src/ui/design-system/images/page/arrow-right.svg
9 changes: 9 additions & 0 deletions src/ui/design-system/images/page/feature-evm-icon.svg
28 changes: 28 additions & 0 deletions src/ui/design-system/images/page/feature-stacks-icon.svg