Skip to content

Commit

Permalink
Homepage updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitya committed Aug 5, 2024
1 parent 9a446f3 commit 7a49c03
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 45 deletions.
81 changes: 38 additions & 43 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const config: Config = {

// Add custom fields for site-wide context
customFields: {
description: 'Go from generative AI concepts to applied AI solutions in #30DaysOf learning by doing. Build knowledge using open-source models and platforms, then learn to operationalize with cloud deployment and integrations.'
description: 'Learn generative AI concepts from the ground up. Complete quickstart tutorials. Tear down open-source projects. Week-long sprrints. 30-day roadmaps.'
},

// Pre-defined site-wide context fields
title: 'Applied AI',
tagline: 'Build it upBreak it downMake it better',
title: 'Deconstructing AI',
tagline: 'Build it up · Break it down · Make it better.',
favicon: 'img/logo.png',

url: 'https://30daysof.github.io',
Expand Down Expand Up @@ -56,74 +56,69 @@ const config: Config = {
],

themeConfig: {

// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',

colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: false,
},

navbar: {
title: 'My Site',

title: 'Deconstructing AI',
logo: {
alt: 'My Site Logo',
alt: 'Deconstructing AI Logo',
src: 'img/logo.png',
},
style: 'primary',

items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
label: 'Tutorials',
},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/blog', label: 'Roundups', position: 'right'},
{to: 'https://aka.ms/ai-studio/collection', label: 'Collection', position: 'right'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
href: 'https://github.com/30daysof/generative-ai',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},

footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
label: `Azure AI Collection`,
to: "https://aka.ms/ai-studio/collection",
},
{
label: `Responsible AI Collection`,
to: "https://aka.ms/rai-hub/collection",
},
{
label: `AI Developer Hub`,
to: "https://learn.microsoft.com/ai/",
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
label: 'Azure AI Discord',
to: 'https://discord.gg/yrTeVQwpWm',
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
label: ${new Date().getFullYear()} Nitya Narasimhan`,
to: "https://github.com/nitya",
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
},

prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/HomepageHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function HomepageHeader() {
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min ⏱️
Get Started! 👉🏽
</Link>
</div>
</div>
Expand Down
50 changes: 50 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,53 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}


[data-theme='light'] .navbar--primary {
--ifm-navbar-link-color: #ffffff;
}
[data-theme='dark'] .navbar--primary {
--ifm-navbar-link-color: #000000;
}

.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}

[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}


/* GitHub-style Themed Images
https://docusaurus.io/docs/markdown-features/assets#github-style-themed-images
*/
[data-theme='light'] img[src$='#gh-dark-mode-only'],
[data-theme='dark'] img[src$='#gh-light-mode-only'] {
display: none;
}

.header-github-link:hover {
opacity: 0.6;
}

.header-github-link::before {
content: '';
width: 24px;
height: 24px;
display: flex;
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
}

[data-theme='light'] .header-github-link::before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
}

[data-theme='dark'] .header-github-link::before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
}
2 changes: 1 addition & 1 deletion docs/src/data/feature-items.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"title": "Azure AI",
"imagePath": "/img/logo.png",
"imagePath": "/img/aistudio-logo.png",
"description": "Azure AI is a unified platform for end-to-end development of generative AI apps on Azure."
},
{
Expand Down
Binary file added docs/static/img/aistudio-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/img/openai-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7a49c03

Please sign in to comment.