Material UI or MUI library provides you with robust, customizable, accessible, and advanced components, enabling you to build your own design system and develop React applications faster. That includes a huge list of Material icons, foundational components with MUI Core, advanced and powerful components with MUI X, templates, and design kits!
The session will provide the knowledge about react page life cycle and how more precise actions or operations can be performed using react hooks concepts
Our meet-up will be focused on the basics of Flutter and introducing Flutter to existing mobile/web developers and curious developers on this exciting technology that is shaping the way mobile development will happen in the future.
Talks:
* Speaker: Arif Amirani (CTO MetroGuild Inc, Ex Directi/Veritas)
* Duration: 45 mins
* Agenda:
** Introduction to Flutter
** Comparison to Flutter/React Native/Native
** (Intro) Life Cycle of Widgets
** (Intro) State management
** Build a simple app using Flutter App in 15 mins
A step towards the way you write the code in React application.In this presentation, I have given introduction about React hooks. Why we need it in our react applications and describe about the two most commonly used React Hooks API useState and useEffect. I also given the links of code snippets I added in these slides
ReactJS is arguably the most popular Javascript framework around for web development today. With more and more teams exploring and adopting React, here is TechTalks presentation elaborating fundamentals of React, in a code along session
Getting started with the reactjs, basics of reactjs, introduction of reactjs, core concepts of reactjs and comparison with the other libraries/frameworks
The session will provide the knowledge about react page life cycle and how more precise actions or operations can be performed using react hooks concepts
Our meet-up will be focused on the basics of Flutter and introducing Flutter to existing mobile/web developers and curious developers on this exciting technology that is shaping the way mobile development will happen in the future.
Talks:
* Speaker: Arif Amirani (CTO MetroGuild Inc, Ex Directi/Veritas)
* Duration: 45 mins
* Agenda:
** Introduction to Flutter
** Comparison to Flutter/React Native/Native
** (Intro) Life Cycle of Widgets
** (Intro) State management
** Build a simple app using Flutter App in 15 mins
A step towards the way you write the code in React application.In this presentation, I have given introduction about React hooks. Why we need it in our react applications and describe about the two most commonly used React Hooks API useState and useEffect. I also given the links of code snippets I added in these slides
ReactJS is arguably the most popular Javascript framework around for web development today. With more and more teams exploring and adopting React, here is TechTalks presentation elaborating fundamentals of React, in a code along session
Getting started with the reactjs, basics of reactjs, introduction of reactjs, core concepts of reactjs and comparison with the other libraries/frameworks
React Js Basic Details and Descriptions
Frontend Javascript Library, to make decent SPA
The fastest way to build a segregated component based front end for software development.
Media queries are one of the most exciting aspects about CSS today. They will allow us to change our layouts to suit the exact need of different devices - without changing the content. This presentation explains what Media queries are, how to use them, how to target the iPhone and how to create flexible layouts.
Introduction to Flutter sharing session organized by MaGIC Cyberjaya.
In this session I focus on introducing important widgets to build simple application. The widgets are group as:
- Boilerplate (scaffold) widget
- Layouting widgets
- Design widgets.
Hopefully this will help those who would like to start and discover mobile app development with Flutter.
Full version of the presentation can be found on following link:
https://www.facebook.com/mymagic.my/videos/1141346269560536/
In today's internet scenario responsive websites are the most popular way of putting a website in worldwide web, as this a form in which your website can be seen in multiple devices without any problem. In this slide we tried to explain step by step processes in responsive website design.
Lets Flutter - Talk on flutter in Google IO Extended in Google Developer Group Mumbai.
This has a detailed view of flutter and comparison of React native vs Flutter vs Native app development
How to Use Material UI (MUI) Icons in ReactWrapPixel
Whether it’s about a simple landing page, an e-commerce app platform, or your company’s internal dashboard, using a library of pre-made icons and components is highly beneficial. There are many other icon libraries out there that can ease your work but one of the largest and the most popular ones is the Material UI (or recently named MUI) icon library.
Streamlining React Component Development and Sharing with bit.pptxShubhamJayswal6
How to create and share React components with bit.dev
React is one of the most popular JavaScript libraries for building user interfaces. One of the key benefits of React is its component-based architecture, which allows developers to create reusable UI components that can be shared across different projects
React Js Basic Details and Descriptions
Frontend Javascript Library, to make decent SPA
The fastest way to build a segregated component based front end for software development.
Media queries are one of the most exciting aspects about CSS today. They will allow us to change our layouts to suit the exact need of different devices - without changing the content. This presentation explains what Media queries are, how to use them, how to target the iPhone and how to create flexible layouts.
Introduction to Flutter sharing session organized by MaGIC Cyberjaya.
In this session I focus on introducing important widgets to build simple application. The widgets are group as:
- Boilerplate (scaffold) widget
- Layouting widgets
- Design widgets.
Hopefully this will help those who would like to start and discover mobile app development with Flutter.
Full version of the presentation can be found on following link:
https://www.facebook.com/mymagic.my/videos/1141346269560536/
In today's internet scenario responsive websites are the most popular way of putting a website in worldwide web, as this a form in which your website can be seen in multiple devices without any problem. In this slide we tried to explain step by step processes in responsive website design.
Lets Flutter - Talk on flutter in Google IO Extended in Google Developer Group Mumbai.
This has a detailed view of flutter and comparison of React native vs Flutter vs Native app development
How to Use Material UI (MUI) Icons in ReactWrapPixel
Whether it’s about a simple landing page, an e-commerce app platform, or your company’s internal dashboard, using a library of pre-made icons and components is highly beneficial. There are many other icon libraries out there that can ease your work but one of the largest and the most popular ones is the Material UI (or recently named MUI) icon library.
Streamlining React Component Development and Sharing with bit.pptxShubhamJayswal6
How to create and share React components with bit.dev
React is one of the most popular JavaScript libraries for building user interfaces. One of the key benefits of React is its component-based architecture, which allows developers to create reusable UI components that can be shared across different projects
Excellent design tool for Magento store owner who can sell T-shirt on their Ecommerce Magento store. With the help of this tool your customer can easily design their own T-shirt & print image, clipart, text & number.
Checkout the full extension demo here & ask any query, if any.
IT 200 Network DiagramBelow is the wired network configurat.docxpriestmanmable
IT 200: Network Diagram
Below is the wired network configuration for Swagger Distribution. Use this to create and describe a Visio diagram of a wireless networking configuration appropriate for the company. Describe all aspects of the network using IT terminology.
Source: http://www.cityinfrastructure.com/Data/PhysicalDiagram.png
Assignment #10
(10 points)
Using MySQL SELECT commands answer the questions listed below using the Tiny Video schema used in your previous assignment. Submit via the D2L drop box the final SQL script for each problem. All questions are worth 2 points each.
1. Write a query to display the columns listed below. The query should list each customer once, whether they have rented a movie or not. Where the customer has rented a movie it should show only the first rental date. The output should be sorted by membership number.
2. Write a query to display the columns listed below. The query should list each customer who has not rented a move. The output should be sorted by membership number.
3. Write a query to display the columns listed below. The query should list each customer where the total detail rental fee is greater than twice the overall average detail rental fee. The output should be sorted by membership number. (Hint: A HAVING clause will be needed)
4. Write a query to display the columns listed below. The query should list each customer in which the video rental is overdue. The Days_Overdue column should calculate the number of days overdue based upon the due date and return date. The output should be sorted by membership number and then by the detail due date.
5. Write a query to display the columns listed below. For each customer the query should show the current system date, the current day (when you do the problem the date and day will be different), the number of characters in the member last name, the last date the customer rented a video and how many total videos the person rented.
1
IT 200: Program Code
Below is the code that is currently displayed on the computer screen at Swagger Distribution every morning when employees log on to their computers. The new owner would like you to add a second line that tells employees, “Welcome to Swagger Distribution!” It should go before the current date. The new owner would also like you to change the word “Current” to “Today’s” on the date output.
(Hint: To add a second line of output code, simply add a second System.out.print in the statement.)
Take this code to www.ideone.com. Important: On the bottom left of the compiler window, ensure that the toggle menu states Java and not another programming language. (The compiler automatically defaults to whatever language was used last.) Enter the code into the line that states: “// your code goes here”.
When you are ready to compile and run the code, click the green “run” button. Take a screenshot of your output. Use terminology you learned in this module to identify three components of ...
Reaching for the Future with Web Components and PolymerFITC
Save 10% off ANY FITC event with discount code 'slideshare'
See our upcoming events at www.fitc.ca
OVERVIEW
Web Components allow us to view web applications as a set of encapsulated, maintainable and reusable components, an approach which is necessary for scalability and large applications. However, they rely on the use of emerging web platform features such as the Shadow DOM, HTML Imports and Custom elements, which currently have limited browser support. But thanks to the Polymer project - a set of polyfills and an application framework using these principles – Web Components can be used today. They are bleeding edge, likely to change a bit and simultaneously insanely cool and undeniably useful. Michael Labriola invites attendees to learn how to integrate these pieces into their processes today, to bring sanity and reuse to their worlds as a result.
Unlock the Power of Mui Breakpoints and Make Great Projects.pdfRonDosh
Are you ready to revolutionize your web design game and create responsive, user-friendly webpages with ease? Mui breakpoints are here to save the day! They offer a powerful toolset for creating adaptable designs that look stunning on any device. Let’s dive into the world of mui breakpoints and explore how they can transform your next project.
Smart buckets is an R&D project. This is an e-commerce website(www.smartbuckets.com). It is used to assist people to make purchases online. In the smart buckets, every vendor who is registered will get the sub-domain and than he will manage his own shop over the smart buckets.
WordPress shortcodes assist in the creation of complex HTML elements and are very easy to use. Most premium themes provide a suite of shortcodes to extend default functionality and empower users to create professional looking content that matches the look and feel of the rest of their site.
Learn More: http://www.jonbishop.com/2011/06/wordpress-shortcodes/
Designing a website involves many steps. Web designers first create their designs in Photoshop. Those designs are then converted into HTML format. This document covers the process of converting by hand, without the aid of PSD conversion programs or websites.
Similar to How to Convert a Component Design into an MUI React Code (20)
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
Les Buildpacks existent depuis plus de 10 ans ! D’abord, ils étaient utilisés pour détecter et construire une application avant de la déployer sur certains PaaS. Ensuite, nous avons pu créer des images Docker (OCI) avec leur dernière génération, les Cloud Native Buildpacks (CNCF en incubation). Sont-ils une bonne alternative au Dockerfile ? Que sont les buildpacks Paketo ? Quelles communautés les soutiennent et comment ?
Venez le découvrir lors de cette session ignite
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
As part of the DOE Integrated Research Infrastructure (IRI) program, NERSC at Lawrence Berkeley National Lab and ALCF at Argonne National Lab are working closely with General Atomics on accelerating the computing requirements of the DIII-D experiment. As part of the work the team is investigating ways to speedup the time to solution for many different parts of the DIII-D workflow including how they run jobs on HPC systems. One of these routes is looking at Globus Compute as a way to replace the current method for managing tasks and we describe a brief proof of concept showing how Globus Compute could help to schedule jobs and be a tool to connect compute at different facilities.
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
Traditional software testing methods are being challenged in retail, where customer expectations and technological advancements continually shape the landscape. Enter generative AI—a transformative subset of artificial intelligence technologies poised to revolutionize software testing.
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I didn't get rich from it but it did have 63K downloads (powered possible tens of thousands of websites).
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxrickgrimesss22
Discover the essential features to incorporate in your Winzo clone app to boost business growth, enhance user engagement, and drive revenue. Learn how to create a compelling gaming experience that stands out in the competitive market.
Understanding Globus Data Transfers with NetSageGlobus
NetSage is an open privacy-aware network measurement, analysis, and visualization service designed to help end-users visualize and reason about large data transfers. NetSage traditionally has used a combination of passive measurements, including SNMP and flow data, as well as active measurements, mainly perfSONAR, to provide longitudinal network performance data visualization. It has been deployed by dozens of networks world wide, and is supported domestically by the Engagement and Performance Operations Center (EPOC), NSF #2328479. We have recently expanded the NetSage data sources to include logs for Globus data transfers, following the same privacy-preserving approach as for Flow data. Using the logs for the Texas Advanced Computing Center (TACC) as an example, this talk will walk through several different example use cases that NetSage can answer, including: Who is using Globus to share data with my institution, and what kind of performance are they able to achieve? How many transfers has Globus supported for us? Which sites are we sharing the most data with, and how is that changing over time? How is my site using Globus to move data internally, and what kind of performance do we see for those transfers? What percentage of data transfers at my institution used Globus, and how did the overall data transfer performance compare to the Globus users?
Navigating the Metaverse: A Journey into Virtual Evolution"Donna Lenk
Join us for an exploration of the Metaverse's evolution, where innovation meets imagination. Discover new dimensions of virtual events, engage with thought-provoking discussions, and witness the transformative power of digital realms."
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
Experience our free, in-depth three-part Tendenci Platform Corporate Membership Management workshop series! In Session 1 on May 14th, 2024, we began with an Introduction and Setup, mastering the configuration of your Corporate Membership Module settings to establish membership types, applications, and more. Then, on May 16th, 2024, in Session 2, we focused on binding individual members to a Corporate Membership and Corporate Reps, teaching you how to add individual members and assign Corporate Representatives to manage dues, renewals, and associated members. Finally, on May 28th, 2024, in Session 3, we covered questions and concerns, addressing any queries or issues you may have.
For more Tendenci AMS events, check out www.tendenci.com/events
Enterprise Resource Planning System includes various modules that reduce any business's workload. Additionally, it organizes the workflows, which drives towards enhancing productivity. Here are a detailed explanation of the ERP modules. Going through the points will help you understand how the software is changing the work dynamics.
To know more details here: https://blogs.nyggs.com/nyggs/enterprise-resource-planning-erp-system-modules/
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Mind IT Systems
Healthcare providers often struggle with the complexities of chronic conditions and remote patient monitoring, as each patient requires personalized care and ongoing monitoring. Off-the-shelf solutions may not meet these diverse needs, leading to inefficiencies and gaps in care. It’s here, custom healthcare software offers a tailored solution, ensuring improved care and effectiveness.
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteGoogle
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
👉👉 Click Here To Get More Info 👇👇
https://sumonreview.com/ai-pilot-review/
AI Pilot Review: Key Features
✅Deploy AI expert bots in Any Niche With Just A Click
✅With one keyword, generate complete funnels, websites, landing pages, and more.
✅More than 85 AI features are included in the AI pilot.
✅No setup or configuration; use your voice (like Siri) to do whatever you want.
✅You Can Use AI Pilot To Create your version of AI Pilot And Charge People For It…
✅ZERO Manual Work With AI Pilot. Never write, Design, Or Code Again.
✅ZERO Limits On Features Or Usages
✅Use Our AI-powered Traffic To Get Hundreds Of Customers
✅No Complicated Setup: Get Up And Running In 2 Minutes
✅99.99% Up-Time Guaranteed
✅30 Days Money-Back Guarantee
✅ZERO Upfront Cost
See My Other Reviews Article:
(1) TubeTrivia AI Review: https://sumonreview.com/tubetrivia-ai-review
(2) SocioWave Review: https://sumonreview.com/sociowave-review
(3) AI Partner & Profit Review: https://sumonreview.com/ai-partner-profit-review
(4) AI Ebook Suite Review: https://sumonreview.com/ai-ebook-suite-review
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
How to Position Your Globus Data Portal for Success Ten Good PracticesGlobus
Science gateways allow science and engineering communities to access shared data, software, computing services, and instruments. Science gateways have gained a lot of traction in the last twenty years, as evidenced by projects such as the Science Gateways Community Institute (SGCI) and the Center of Excellence on Science Gateways (SGX3) in the US, The Australian Research Data Commons (ARDC) and its platforms in Australia, and the projects around Virtual Research Environments in Europe. A few mature frameworks have evolved with their different strengths and foci and have been taken up by a larger community such as the Globus Data Portal, Hubzero, Tapis, and Galaxy. However, even when gateways are built on successful frameworks, they continue to face the challenges of ongoing maintenance costs and how to meet the ever-expanding needs of the community they serve with enhanced features. It is not uncommon that gateways with compelling use cases are nonetheless unable to get past the prototype phase and become a full production service, or if they do, they don't survive more than a couple of years. While there is no guaranteed pathway to success, it seems likely that for any gateway there is a need for a strong community and/or solid funding streams to create and sustain its success. With over twenty years of examples to draw from, this presentation goes into detail for ten factors common to successful and enduring gateways that effectively serve as best practices for any new or developing gateway.
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Convert a Component Design into an MUI React Code
1. How to Convert a Component
Design into an MUI React Code
Material UI or MUI library provides you with robust, customizable, accessible,
and advanced components, enabling you to build your own design system and
develop React applications faster. That includes a huge list of Material icons,
foundational components with MUI Core, advanced and powerful components
with MUI X, templates, and design kits!
In this tutorial, we will see how to take a given design and convert it into an
actual component code by styling it with MUI Core configurations for a React
app. Let’s begin!
2. Converting a component design to an MUI
code in React
If you are provided with a design file with a simple component to build on React
there are so many ways, but here with MUI’s extensive pre-built components,
the process becomes much easier, faster, accessible, and most importantly
customizable!
What we will be making?
We will be taking the following barcode component design and implementing it
with MUI for React:
As you can see, we have three items:
1. The barcode component with the two sections.
2. The first section holds the barcode image in a blue container.
3. The second section below the barcode image has all the typography
elements like a heading and a paragraph.
Step 1: Start a New React project
Make sure you have Node.js installed on your system and then run the following
commands:
<code>npx create-react-app mui-barcode-app
cd mui-barcode-app
npm start</code>
3. This will bootstrap a new React application and run the default app
on http://localhost:3000/ in your default browser thanks to the Create React
App tool.
Step 2: Install Material UI (MUI) Package
Before we start making changes to our default React code, we need the core
MUI package because all these icons use the MUI SvgIcon component to render
the SVG path for each icon. For each SVG icon, we export the respective React
component from the @mui/icons-material package.
Run the following command from your terminal:
npm install @mui/material @emotion/react @emotion/styled
Or if you are using Yarn:
yarn add @mui/material @emotion/react @emotion/styled
Step 3: Do Some Housekeeping of The Default Code
Let’s make these initial changes:
1. Remove all the code from App.js file and simply return the <Barcode />
component as so:
import Barcode from "./barcode";
function App() {
return <Barcode />;
}
export default App;
4. 2. Create a new component file under the src directory called Barcode.jsx. This
will house all of the MUI customization code for our component.
3. Add the barcode image you have to the assets directory under
the images folder so you have access to the file when needed to render.
Step 4: Theme the component with MUI!
Here’s the nitty-gritty! We can now start to create our Barcode component.
Still inside the Barcode.jsx file, export the Barcode function with a return
statement to follow. To start you can also simply render a <p> tag that says
“Barcode component”. If you save your code the render should work.
export default function Barcode() {
return <p>Barcode component</p>;
}
The ThemeProvider Wrapper
By default all the MUI components and styles you will use have a set default
theme that looks like this:
5. As you can see above, this default theme is a collection of objects with their
properties and values. For example, here it shows the color palette of an MUI
app. If you wish to use the primary, the main color in any of your React elements
like a button background color or a divider color, then its hex value will
be #1976d2 as listed.
But in our design, we don’t see such colors as listed on their documentation so
to make our own theme work we need the ThemeProvider component
from @material-ui/core and make all of the elements as their child in our render
method.
6. This component takes a theme prop. One thing to note is that It should
preferably be used at the root of your component tree. So let’s remove the
placeholder <p> tag we had before and use this as:
return <ThemeProvider theme={theme}>...</ThemeProvider>;
Make sure you import it too:
import { ThemeProvider } from "@material-ui/core";
Create a Custom Theme
The obvious next step is to actually add our own theming values so that
the theme prop works. Outside the Barcode function definition, create a new
theme object that uses the createMuiTheme() method. This is used to generate a
theme based on the options received which are later passed down to
the theme variable of <ThemeProvider>.
createMuiTheme() takes in two arguments of which the first one is really important.
It’s the options object that takes an incomplete theme object and this is the only
argument that is processed. Inside this object, we can define our custom values
to each of the different properties like typography, colors, spacing, font size, etc.
In this demo, let’s try to implement the current font styles. As per our design,
the font used in the heading and the paragraph below is called Outfit available
on the Google Fonts directory. So to add a custom font in an MUI project we
need to follow these steps:
7. 1. Copy the HTML/CSS import(s) from the custom font CDN. In our case, simply
copy the <link> tags that Google provides after selecting the two weights we
need of the Outfit font family.
2. Update the index.html file by pasting in those link tags and removing the
default Roboto font included in an MUI project.
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap"
rel="stylesheet"
/>
3. Create the typography object under the createMuiTheme call giving it the
proper names and values like:
typography: {
fontFamily: "Outfit",
fontWeightRegular: 400,
fontWeightBold: 700
}
Now that MUI knows that a custom font is to be used, let’s implement it in our
Barcode component. But first, we need to make that card layout and add the
image!
8. Using Default MUI Components
We will need a total of 3 new components that MUI provides to make our
barcode look exactly like it’s on the design. Here are those:
1. The Card component: the basic aim of the card is to contain content and
actions about a single subject. MUI has various types of Card components
under its belt. Here’s an example:
One great thing about most of the elements in MUI is that we can pass a custom
style to any element using the sx prop. It’s like is a shortcut for defining a
custom style that has access to the theme. So if we quickly want to change the
margins, or width of any element that’s not in our design system we can simply
use the sx prop.
For example in our <Card> the component we can provide it a
custom padding, boxShadow, borderRadius, horizontal margin and maxWidth as:
9. <Card
sx={{
maxWidth: 350,
mx: "auto",
padding: "1rem",
borderRadius: "4%",
boxShadow: 24
}}
>
2. The CardMedia component: this type of card is perfectly suited for our design
as it has an image up top and the content below it. Let’s use it as follows:
<CardMedia
component="img"
height="350"
image="path/to/image.png"
alt="Barcode image"
sx={{ borderRadius: "4%" }}
/>
This will house a new <CardContent> API for cards under which we can nest all the
card content text like our heading and subheading as:
<CardContent>
10. // Other components
</CardContent>
3. TheTypography component: this is specifically used to render text elements
from a big bold heading of a section to small captions generated on a video.
Thus, it comes with a variety of props like align, mt, variant, etc. In our app, we use
it for the heading of the card as:
<Typography
gutterBottom
variant="h5"
component="div"
align="center"
fontFamily="Outfit"
fontWeight="fontWeightBold"
mt={2}
mb={2}
sx={{ color: "#182036" }}
>
Improve your front-end <br /> skills by building projects
</Typography>
Notice the use of our custom-defined fonts and their weights. We were able to
pass the font family and font-weight props to it easily with the set values in
the theme object defined above.
11. Next, we do a similar thing to the subheading with a few tweaks of color
and fontWeight:
<Typography
variant="body2"
align="center"
fontFamily="Outfit"
fontWeight="fontWeightRegular"
sx={{ color: "#7b879d" }}
>
Scan the QR code to visit Frontend <br /> Mentor and take your coding skills to <br /> the
next level
</Typography>
With all that code, you should get the expected styling in your browser similar to
this:
12. If you implemented the above steps successfully, you should have the following
code:
import Card from "@mui/material/Card";
import CardContent from "@mui/material/CardContent";
import CardMedia from "@mui/material/CardMedia";
import Typography from "@mui/material/Typography";
import { createMuiTheme, ThemeProvider } from "@material-ui/core";
const theme = createMuiTheme({
15. align="center"
fontFamily="Outfit"
fontWeight="fontWeightRegular"
sx={{ color: "#7b879d" }}
>
Scan the QR code to visit Frontend <br /> Mentor and take your
coding skills to <br /> the next level
</Typography>
</CardContent>
</Card>
</ThemeProvider>
);
}
And just like that, you were able to understand MUI’s core components
needed to make such a component from scratch with a custom theme!
In this tutorial, you got to know the setup MUI React UI library, its installation,
and how to make use of its important components like ThemeProvider, Card,
Typography, etc to finally convert a design to a custom code.
Next, you can take it further by defining more values inside
the createMuiTheme() function like spacing, colours, etc to create even more
custom interfaces.
16. Also if you’re looking for pre-built Material UI Templates that could skyrocket
your development process, then visit the page now. Good luck!
Source: https://blog.wrappixel.com/convert-component-design-into-mui-react-
code/
*****