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

Feat/homepage links change image #21

Merged
merged 3 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const katex = require('rehype-katex');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'StarkNet Documentation',
title: 'StarkNet Docs',
url: 'https://docs.starknet.io/',
baseUrl: '/',
onBrokenLinks: 'throw',
Expand Down
5 changes: 4 additions & 1 deletion src/components/HomepageCard/HomepageCard.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import React from 'react';
import {CardContent, CardMedia, Typography} from '@mui/material';

const HomepageAvatar = img => {};

export const HomepageCard = ({title, text, img}) => {
return (
<>
<CardMedia
component="img"
height="60"
height="50"
title={title}
image={`./img/${img}`}
sx={{width: 'unset'}}
/>
<CardContent>
<Typography
Expand Down
10 changes: 5 additions & 5 deletions src/config/home.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[
{
"linkName": "docs/Intro",
"img": "undraw_docusaurus_mountain.svg",
"img": "stars.png",
"title": "what is StarkNet",
"text": "Technical Documentation"
},
{
"linkName": "https://www.cairo-lang.org/docs/hello_starknet/index.html",
"img": "undraw_docusaurus_react.svg",
"img": "hello-world.png",
"title": "Hello StarkNet!",
"text": "Your first steps in StarkNet"
},
{
"linkName": "docs/CLI/commands",
"img": "undraw_docusaurus_mountain.svg",
"img": "command-line.png",
"title": "StarkNet CLI",
"text": "Interact with StarkNet"
},
{
"linkName": "https://voyager.online/",
"img": "undraw_docusaurus_tree.svg",
"img": "note.png",
"title": "block explorer",
"text": "Voyager, StarkNet's block explorer"
},
{
"linkName": "https://swagtimus.substack.com/",
"img": "undraw_docusaurus_react.svg",
"img": "calendar.png",
"title": "latest updates",
"text": "StarkNet's unofficial newsletter"
}
Expand Down
Binary file added static/img/calendar.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 added static/img/command-line.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 removed static/img/docusaurus.png
Binary file not shown.
Binary file added static/img/hello-world.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 added static/img/note.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 added static/img/stars.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 removed static/img/tutorial/docsVersionDropdown.png
Binary file not shown.
Binary file removed static/img/tutorial/localeDropdown.png
Binary file not shown.
170 changes: 0 additions & 170 deletions static/img/undraw_docusaurus_mountain.svg

This file was deleted.

169 changes: 0 additions & 169 deletions static/img/undraw_docusaurus_react.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/img/undraw_docusaurus_tree.svg

This file was deleted.