DrupalEasy: DrupalEasy Podcast S14E5 - Rod Martin - How to be a software trainer

We talk with Rod Martin about what it takes to be a software trainer (including informal, one-on-one teaching) and how students can best prepare for a training.

URLs mentioned

DrupalEasy News

Audio transcript

We're using the machine-driven Amazon Transcribe service to provide an audio transcript of this episode.

Subscribe

Subscribe to our podcast on iTunes, Google Play or Miro. Listen to our podcast on Stitcher.

If you'd like to leave us a voicemail, call 321-396-2340. Please keep in mind that we might play your voicemail during one of our future podcasts. Feel free to call in with suggestions, rants, questions, or corrections. If you'd rather just send us an email, please use our contact page.

Evolving Web: The 10 Best Non-Profit Websites of 2023

Image removed.

Reflecting on 2022, it was a busy and challenging year for non-profit organizations. Wars and grassroots protests captivated public attention. A mounting climate crisis continued to generate alarming headlines. Economic inflation threatened the industrialized world. This meant that would-be supporters had to seriously evaluate their bottom lines and time commitments more than ever.

Heading into 2023, it looks like another difficult year for charities and other non-profit organizations. The current global cost-of-living crisis shows no signs of slowing down. The ongoing war in Ukraine and the lingering effects of COVID-19 continue to cast a shadow. The need for strong non-profits has never been higher, from poverty relief to a global transition to green energy.

Unique Challenges for Charities 

In a sense, non-profits are not all that different from for-profit enterprises. Their supporters are just as valuable as customers are to a business. Non-profits, though, have an added challenge. While businesses sell tangible products and services that the customer can interact with, charities are selling intangibles or tangibles given to someone else in need. It’s harder to sell an altruistic feeling than the latest cell phone.

Now, non-profits need to be even more clever and nimble with limited resources. A recent article in Charity Village asserts that in the current social and economic climate, successful non-profits will be the ones championing flexible giving options (e.g. online giving) while maximizing donor and volunteer retention, ensuring stable revenue through recurring (e.g. monthly) giving programs.

Among the statistics the article cites are:

  • Nearly half of donors over the age of 60 now give online
  • Nonprofit text messaging audiences grew by 26%
  • 60% of millennials show interest in monthly online giving; 45% have already done so
  • Roughly 70% of donors only give to an organization once, which means a net loss to non-profits bearing to the cost of donor acquisition

The successful non-profit in 2023 will be able to through the noise, communicate its message clearly and enable donors and volunteers to donate or participate hassle-free. 

What Makes an Outstanding Non-profit Site?

Would-be supporters want to know that their time and money is making a real impact. Non-profit websites have a high-stakes job to demonstrate that impact and make it easy to navigate, donate and volunteer. 

Our top 10 sites are an eclectic mix, each a leader in their own field.

What unites them

  • A strong, unifying brand identity
  • Effective use of storytelling
  • Clear explanations of how the organizations function and make their impact
  • Hope over doom-and-gloom
  • Clear calls-to-action (CTA’s) throughout, with multiple and easy-to-click access through which to contribute money and/or time
  • Strong multi-channel approaches with multiple social media platforms
  • Personal touches, like photographs and stories 
Image Image removed.

1. Only One

It’s easy to feel disoriented and powerless when it comes to the world’s innumerable overlapping environmental and climate crises. The science behind it is hard to grasp, the headlines are usually apocalyptic and the forces at work can seem too formidable for any one person to make a meaningful difference.

Only One is an outlier in this space. Founded in 2019 by Sea Legacy and the Blue Sphere Foundation, this site aims to amplify stories that inspire action to protect the ocean, the planet and those disproportionately affected by climate change. It invites site visitors to choose from a range of bite-sized but meaningful donation plans to improve the health of the world’s oceans and environment as a whole, from planting coral and trees to removing plastic and reducing carbon.

Standout features:

  • Friendly, illustrative, modern and professional design
  • Compelling use of photos - its founders are renowned nature photographers
  • Positive storytelling, no doom-and-gloom messaging
  • Easy-to-sign petitions with forms that remember your name to make signing easier
  • A subscription-based donation page that enables donors to select a cause meaningful to them at an appropriate level of financial commitment

Only One is also a great example of a multichannel strategy in action. They have a powerful Instagram presence, and supporters are able to sign petitions via social media. 

 

Image Image removed.

2. Charity: Water

Charity: Water is an organization bringing clean, safe water to people around the world. Founded in 2006, the organization currently operates in 29 countries and has funded 111,796 water projects (as of December 2022), directly impacting the lives of over 15 million people – primarily in South Asia and Sub-Saharan Africa. It works with local organizations to implement projects as well as monitor and maintain them, ensuring long-term sustainability.

Charity: Water demonstrates textbook examples of the many of the elements that go into a good nonprofit website: consistent branding, clear calls-to-action, visible links, clear messaging around its mission and a hopeful tone.

Standout features: 

  • Beautiful design featuring beautiful regional and human-centred photography 
  • Engaging storytelling highlighting beneficiaries’ voices
  • Superb copywriting with strong, active language and straightforward messaging
  • A user-friendly donation module on the homepage, enabling both one-time and monthly donations, up to and including sponsoring an entire water project

Charity: Water is also active on social media, with a particularly engaging YouTube channel. It features footage of water projects in action and interviews with organization leaders and members.

 

Image Image removed.

3. Girls Who Code

Girls Who Code aims to close the gender gap in computer technology. By providing programs for girls to learn about technology and programming, they see it as a viable career option. Through in-person programming, including a summer immersion program, clubs and college loops, GWC has empowered over 500,000 girls with the skills to pursue education and careers in computing.

GWC’s website is impactful and engaging. It lets the user self-select so they get the most-needed information. Students can input their grade and location, and immediately see nearby programs. The site uses engaging infographics to demonstrate the need for their programs and its impact on students and organizes the information clearly.

Standout features:

  • A clear mission statement displayed from the get-go 
  • Clean and simple logo design with an inviting, friendly colour palette
  • Beautiful, positive, people-focused imagery featuring BIPOC 
  • Simple and clear UX
  • Clean and clever icon designs
  • Prominent donate and “get updates” buttons 
  • Compelling testimonials

Also well worth mentioning is the related (and also excellent) site Black Girls Code, which focuses specifically on empowering young women of colour to pursue computer programming.

 

Image Image removed.

4. War in Ukraine (war.artmilitonian.com)

Russia’s wholesale invasion of Ukraine in February 2022 was the defining news story of the year. And it looks to continue in 2023, with a staggering number of non-profit websites springing up to support Ukraine.

While there are numerous organizations offering military and humanitarian aid that are worth supporting, one website truly stands out from the pack: Artem Militonian’s award-winning site War in Ukraine. Created by an expatriate Armenian-born Russian designer, War in Ukraine is an immersive web experience that takes you through the chronology of the Russian invasion, with handy links to organizations to support.

Standout features:

  • Captivating design with a foreboding atmosphere designed to conjure the feeling of war
  • Simple design – simply click on the site and scroll down for the timeline of the war
  • Use of all-caps throughout the site, creating a sense of urgency
  • Visually dramatic, with use of photography sourced from news agencies
  • The long scroll format of the website feels neverending, evocative of the war itself

Also well worth checking out is Artem Militonian’s breathtaking website commemorating the Armenian Genocide, which follows a similar format. Like the War in Ukraine site, it’s not for the faint of heart.

 

Image Image removed.

5. SickKids

The Hospital for Sick Children (HSC), – operating under the corporate brand ‘SickKids’ – is a major pediatric teaching hospital affiliated with the University of Toronto. A major global hub for research in pediatrics, the hospital was ranked the top pediatric hospital in the world by Newsweek in 2021.

The SickKids website embodies all the best practices you would expect from the web platform of a world-leading medical institution. While the site itself is very large, it is organized in a way that is approachable and non-threatening. With loved ones of sick children in mind, site visitors are invited to search what they’re looking for in a friendly search module labeled “How can we help you today?” There’s also direct access to Virtual Urgent Care, a COVID-19 Info Hub, Coming to SickKids and an invitation to donate.

Standout features:

  • Simple, calming colour palette accentuated by use of round corners
  • Background textural elements that create a sense of movement and calmness
  • Imagery that focuses on hope and optimism
  • Prominent "Support Kids" button, which creates a focal point
  • A prominent emergency button that allows users to get care more quickly

The site also has a sister site, SickKids Foundation, a marketing-driven site for donors and potential sponsors. This site is also visually impactful, with a navigation that has three primary calls-to-action: donate, shop and fundraise.

Image Image removed.

6. Right To Play

Right To Play is a Toronto-based international organization. Its mission is to use play to empower vulnerable children to overcome the effects of war, poverty and disease. Operating in 15 countries worldwide, the organization focuses on four major outcome areas: quality education, children's health and well-being, girls' empowerment and child protection.

The Right To Play website is strongly branded and unique to the organization, with its mission statement highlighted front-and-centre on the homepage. With vivid, uplifting photographs of culturally diverse children at play throughout the site, its atmosphere is positively upbeat. The navigation is intuitive, offering multiple access points for people to donate or otherwise support the organization.

Standout features:

  • Simple brand colour palette and curated photos, giving it a cohesive feel
  • Effective split between primary and secondary navigation
  • Use of hand-written font makes it feel more personal 
  • Positioning donation as a focal point
  • Beautifully curated videos that create impact
  • Effective use of storytelling, pulling users into the content
  • Just enough facts to be informative and not overwhelming

Right to Play also maintains a multi-channel social media presence, with a particularly engaging presence on YouTube and Instagram

 

Image Image removed.

7. Mira

Mira is the brainchild of Éric St-Pierre, a dog trainer from Sainte-Madeleine, Québec. Founded in 1981, Mira was the first francophone centre for Guide Dogs in Canada. Today, Mira offers free guide dogs and service dogs to people living with visual impairments and physical disabilities and to youth with Autism Spectrum Disorder (ASD).

Mira’s fully bilingual website is a textbook example of simple, accessible and engaging design. A video on the homepage helps engage users right from the start, while the page directs visitors to the organization’s three focal areas: guide dogs for the visually impaired, service dogs for people with mobility issues and dogs for children with ASD. It also features an in-depth look at the typical life of a dog involved in the program.

Standout features:

  • Clean, simple design with a minimal colour palette that keeps things digestible
  • Straightforward navigation structure with large logo for added emphasis
  • Strong storytelling elements with particular appeal to dog-lovers 
  • Intriguing illustrations that lead the user into the content – illustrations play with figure/ground ambiguity (superimposed dog/human images) 
  • Excellent copywriting in both French and English
  • A prominent ‘donate’ button

The site also houses an online retail store that sells branded Mira products, ranging from dog calendars and Christmas cards to dog owner supplies and apparel.

 

Image Image removed.

8. World Bicycle Relief

The bicycle is a well-demonstrated instrument of poverty reduction. Statistics show that a bicycle can increase the income of a family living in poverty by as much as 35%. The Chicago-based non-profit World Bicycle Relief works to do just that. Founded in 2005, WBR has distributed more than 500,000 bicycles in 21 countries and trained more than 2,300 bicycle mechanics in the developing world.

Worldbicyclerelief.org is a striking website with some remarkable design features. Above all, it’s a storytelling engine that seeks to share the true stories of the impact of bicycles. Featuring videos, stories and quotes from people whose lives have been changed by bicycles, the site introduces us to the issues through a human lens and makes a clear case for how the potential donor could participate. 

Standout features:

  • Video content that pulls users into the content
  • Parallax animations that create a smooth experience from section to section on the homepage
  • Subtle animations and clever multiple meaning messaging
  • Modern, clean colour palette
  • Fact-focused copy with an emphasis on statistics that demonstrate the program’s impact
  • Mission statement shown right at the beginning

WBR is another great example of a multi-channel approach, with supporters able to engage and donate via social media.

 

Image Image removed.

9. Canadian Blood Services

Giving blood is one of those things that most people agree is important but many of us don’t do. A recent poll showed that while six in ten eligible donors in Canada believed donating blood or plasma was important, only one in ten had plans to donate. Canadian Blood Services works to reduce this reluctance to donate blood and seeks to address the growing shortfalls in national supply of plasma and stem cells.

Canadian Blood Services’ website (blood.ca) is invariably the first thing that shows up in a Google search in Canada for the word “blood”, and is the country’s go-to online hub for all things blood-related (except in Québec, which is served provincially by Héma-Québec). 

It’s an enormous site with a vast amount of information, yet it somehow manages to be accessible and approachable – a great asset when it comes to topics that many people find threatening or uncomfortable.

Standout features:

  • Multiple points of access into the site’s vast informational resources
  • Prominent feature stories of people whose lives have been impacted by blood, plasma, stem cell or organ donation
  • Clear calls-to-action on virtually every page
  • Consistent and appealing branding centred on two colours: red representing blood and plasma and blue-green representing stem cells and organ and tissue
  • Multiple “ways to donate” buttons throughout the site

In addition to encouraging blood donations, the site also enables people to support the organization in other ways, including through a retail store that sells branded apparel and stationery supplies.

 

Image Image removed.

10. Million Peacemakers

Million Peacemakers is an organization close to our heart here at Evolving Web – both for its activism and the client relationship it shares with us. Founded in Montreal, this award-winning organization has trained over 225,000 people in 23 countries since its five-year inception with a patented three-step conflict resolution methodology called Nonflict.

The current Million Peacemakers’ website does a superb job of introducing visitors to the threats of conflict on businesses, nations, families and youth. The homepage centres on an introductory video, which effectively sets the tone of the site, and leads directly to an explanation of Nonflict, the site’s main topic. The homepage offers multiple access points for people to connect with and support the organization.

Evolving Web is currently in the process of revamping Million Peacemaker’s web presence, starting with a subsite for Million Peacemakers Youth – geared for one of the organization’s key volunteer bases. The new subsite aims to cast the visiting youth as a “superhero” capable of making a world of difference. As you continue down the page, calls-to-action will prompt the user to rise to the challenge, while a continuous line graphic throughout the site will represent connection and the work-in-progress nature of activism.

The new site will feature:

  • Flexible, scalable, easy-to-use Wix platform
  • Brief, direct, action-oriented, youth-focused and wireframe-friendly web copy
  • The concept of Nonflict kept front-and-centre in depictions of what volunteering for MP looks like
  • Warm accent colours to draw attention to important elements like CTAs
  • Extensive photos, especially of youths in action working together

Let’s Join Forces

We have a heart for non-profits at Evolving Web. If you’re part of an organization seeking to improve your web presence, we would love to hear from you. Contact us today and get us to work helping you make a bigger impact.

+ more awesome articles by Evolving Web

OpenSense Labs: 6 Reasons Why You Need To Upgrade Your Drupal Website

6 Reasons Why You Need To Upgrade Your Drupal Website Esha Banerjee Fri, 01/20/2023 - 11:50

It goes without saying that (software) upgrades improve the overall performance of websites. Drupal is no exception. 

Regular updates to the Drupal core benefit not just the site owners in terms of security but also help deliver better user experience. 
 
Businesses should regularly update their websites to make them faster, secure, and easier to use.

Here’s why upgrading your Drupal website is crucial.

Why upgrading your website is important

Below are a few reasons you should prioritize upgrading your website.

  1. Security: Between November 2020 and October 2021, 5212 organizations worldwide experienced data breaches (source: statista). Delays before security updates are applied on site can result in compromised sites as seen in Drupalgeddon.

    Acquia is known to have observed more than 100,000 attacks a day.

    The scale and the severity of this Drupalgeddon brings to fore the importance of keeping websites updated on time. When enterprises fail to upgrade their sites on time, chances of it being compromised are very high.

    Websites that do not receive security upgrades are vulnerable to hacker assaults. The Drupal Security Team issues security announcements for all core vulnerabilities contributed modules that are very critical (labeled "highly critical"), requiring that available upgrades be implemented as soon as feasible. 
     
  2. Support & Maintenance: Community support is what enables Drupal's continual evolution as an open source CMS. The community support for Drupal 7 will wane as it approaches end of life since the Drupal community is actively prioritizing and concentrating on the security of subsequent versions. 
     
  3. Improved design and cost effective: The design of your website accounts for 94% of consumers' first impressions. So, if your website design is unappealing or unpleasant to users, your visitors will bounce off. Further, 38% of website visitors do not engage with an unattractive website, and the design alone accounts for 73% of your website's trustworthiness. The online equivalent may be your website, which deters potential customers from utilizing your services or purchasing your goods. It might no longer be a symbol of excellence. So an upgrade to the design is absolutely needed. A revamp is necessary, in my opinion, every year or two.
     
  4. New Functionalities: Another consequence of failing to apply timely upgrades  is that certain functionalities may cease to perform as intended. Not only can this cause extra annoyance among website maintainers, but resolving these issues may incur additional expenditures for your company owing to the time and resources required to do so. 
     
  5. Technology Benefit: Technology has also advanced, enabling us to forgo conventional, cumbersome Javascript writing in favor of more user-friendly and feature-rich ways to significantly enhance the user experience (JQuery, Prototype, etc.). corner boxes and shadows. HTML5 and CSS3 may significantly improved websites.
     
  6. Improved Speed: Your website has to load as quickly as possible since Google now considers page load time as a ranking factor. It's possible that your older website might use a speed boost to obtain some additional Google points using the new technologies and techniques for speeding up websites. Images should be optimized, compression should be used on the server, web pages should be cached, and CSS and Javascript should be minified.

Drupal for a better digital experience

Drupal is popular among enterprises because of its flexibility, modularity, and authoring experience. Drupal also provides several more perks and advantages that make it one of the top CMS.

Here are some advantages that businesses might gain by developing a website using a Drupal-based platform:

  • Being an open-source platform, Drupal has strong community support that makes website upgrade/migration for consistent branding simple.
  • Drupal as an enterprise CMS, provides a full range of functionality, including multi site management, themes, SEO, content control, and connectors.
  • It lets companies provide digital experiences consistently and uniformly across all of their journey's channels.

Even if we are aware of the numerous advantages that Drupal provides or the features that are more companies, marketers, and even digital agencies to this CMS, there are a number of factors that set Drupal CMS apart.

  • Content Presentation With A Headless Architecture
  • Personalization With Machine Learning And Predictive UX
  • Chatbots To Drive The Business Value
  • Exploring Markets With Augmented Reality (AR) And Virtual Reality (VR)

New Drupal Upgrades since Drupal 7

As of right now, Drupal 10 has just launched, and Drupal 7 is walking towards it's End of Life. It is advised that companies utilizing Drupal 7 start preparing for their migration to Drupal 10 immediately. Some of the features that set Drupal 10 apart as a unique version with some brand-new feature additions and some feature updates are listed below.

  1. Automatic updates - The goal of Drupal's Automatic Updates is to address some of the most challenging usability issues that arise when managing Drupal websites. Updates to the production, development, and staging environments are included, and certain integrations with the current CI/CD procedures are also necessary.
  2. Project browser - The Project Browser simplifies module discovery for site builders. When you pick a module, you will be given instructions on how to install it on your site. This browser is embedded into the Drupal site, so you don't have to leave it to search for modules.
  3. jQuery, jQuery UI, jQuery Forms- Drupal 10 runs on PHP 8, which will be phased out by November 2022. jQuery UI. Furthermore, Internet Explorer 11 and Drupal 10 are incompatible. Modern JavaScript components could someday take the role of the jQuery user interface.
  4. New themes: Olivero & Claro - The Drupal 7 "Seven" theme from 2009 gave off an out-of-date system impression. Seven was replaced by the new "Claro" theme, which was created in accordance with the most recent requirements. The front-end theme, "Olivero," was created to fit with features that are well-liked by users, such as the Layout Builder. The Olivero theme will be WCAG AA compliant.
  5. CKEditor 5 update from CKEditor 4 - Another outstanding upgrade in Drupal 10 is the new WYSIWYG editor. It is challenging to characterize it as just an upgrade of CKEditor from version 4 to version 5 because all the code was written from scratch.

This is not all here are some more insights on Drupal 10 features and modules

Conclusion 

Drupal's modular design and ready-to-use configurations offer quick market entry and the capacity to keep up with technological advancement. One of the top technologies reshaping the IT sector is Drupal, which gives organizations the adaptability and scalability to develop while keeping in mind the needs and preferences of their users.

As Drupal 10 is here, and most  businesses are planning their migration, We at OpenSenseLabs assist businesses in offering a superior digital experience. Email us at hello@opensenselabs.com so that our Drupal experts can assist you.

Image removed.Articles Off

#! code: Drupal 10: Creating Custom Context Providers

I previously looked at injecting context providers into context aware plugins. This time I will explore more about creating our own context providers to plug into this system.

The context provider system is an ideal way to provide context to context aware plugins, with blocks being the prime example. You would use a context provider to inject an entity or value into the block so that actions can be taken using that data.

For example, we could load the current node from the route using context so that we didn't have to bake the route provider logic into the block.

The values we inject also plug into the cache systems and so we don't need to worry about making sure we integrate the cache systems for each type of context within the block system. Cache contexts is all taken care of in the block plugin code.

In this article I will look at why you might want to create a context provider, how to create one, and some examples of them in use.

By default, Drupal comes with the following context providers:

  • Current language context (provided by \Drupal\Core\Language\ContextProvider\CurrentLanguageContext).
  • The node entity from the current route (provided by \Drupal\node\ContextProvider\NodeRouteContext).
  • The taxonomy term entity from the current route (provided by \Drupal\taxonomy\ContextProvider\TermRouteContext).
  • The current user (provided by \Drupal\user\ContextProvider\CurrentUserContext).

This gives us a variety of contexts that are commonly used, but there are many reasons why we would want to create our own context providers. Here are some examples of potential contexts we could create using this system.

Read more

Peoples Blog: Secure your Web Application's Reset Password flow

Generally any application framework provides users to have a flow to reset the passwords by default, It is more like, use clicking on the Reset Password link and redirects to a page where he will asked for email, and reset link sent to users email, so that user can reset the password on their own. This is a default or general flow that any application framework provides, but developers or archite

OpenSense Labs: Boost developer productivity with Chakra UI

Boost developer productivity with Chakra UI Vidya Roy Fri, 01/20/2023 - 11:26

React component libraries are helpful tools in creating stunning interfaces for react-based applications. Though each website component can be coded from the scratch, component libraries make the development process easier and faster to complete. It allows you to use the exact component in your design without going back to the drawing board. As a result, an efficient application can be developed in less time and cost. 

Chakra UI is a modern component-based library for building interfaces. It provides an accessible and reusable component-based architecture that makes it easy to create complex, responsive web applications. 

With its intuitive design system, Chakra UI helps react developers quickly build user interfaces that are accessible, responsive, and visually appealing. 

In this blog, we’ll learn the essentials of Chakra UI, and its importance in React web development, installation, and uses. 


What Is Chakra?

 

Developers and business owners are always looking for ways to develop quickly and efficiently and a great experience for our clients, and Chakra is a tool helping developers to achieve that. 

Chakra UI is a simple, modular and accessible component library that gives building blocks to build React application


According to their official website, Chakra UI is a simple, modular and accessible component library that gives you the building blocks you need to build your React applications. 
This component-based library helps build React apps with speed and boosts developer productivity.


Why Use Chakra?

 

Chakra is a modern and powerful component library for React that was designed and developed by Segun Adebayo a UX Engineer for developing front-end applications. It provides more components, improved styling API, and accessibility and easy-to-understand documentation that gives us guidelines on how to build reusable components and save time.

It provides improved styling API with easy-to-understand documentation to build reusable components and save time

Chakra UI is customizable and reusable we can easily adjust it with our designs. It is very simple to use if you know how to use react components and this also supports ReactJs, along with some other libraries too.

Its components' names and the prop's names are easy to understand. It provides dark and light mode compatibility for developers to overcome contrast challenges. 

Chakra components

 

Chakra has a lot of prebuilt composable and reusable components. Its components are dark and light mode compatible so we can also create our own dark and light mode experience across our application with a little bit of configuration.

Let's take a look at some components of Chakra UI. 

Typography

Typography is the method of arranging font sizes, line spacing, letter spacing, line height, typeface, and other elements of text formatting to improve readability. It’s an important aspect of digital design and can greatly impact how readers engage with and understand written content.

Image removed.

 

Overlay

An overlay is a method to put something on top of such as an image or video, or text on top of another so that what is in the lower position can still be seen.

Image removed.

Feedback

Feedback refers to giving information about something that anyone has done which tells how good or bad it is.

Image removed.

Data display

Data display is a method to represent the data in a visual format, such as a chart, graph, or map, and make information easy to understand.

Image removed.

Navigation

Navigation refers to moving through a website or application, finding the information you need, and getting to the pages you want to visit.

Image removed.


Disclosure 

The act of revealing or making known information that was previously hidden,or making something known.

Image removed.

Form

A form is a document that contains spaces for users to input information It can be used for a variety of purposes, such as collecting contact information, applying for jobs or loans, and more.

Image removed.

Media & Icon

Media refers to various forms of content such as images, text, audio, and video that can be used to carry, entertain or inform.

Icon refers to the representation of the content this is small graphic images or symbols that are used to represent a specific function, feature, or content on a computer or mobile device.

Image removed.

Others

Image removed.

Uses of Chakra components

 

If we want to add default components of Chakra UI to the project we just have to copy its code and paste it into our project and we can see our effect on the browser. If we want to use some components we just have to import them from ‘@chakra-ui/react’.

import {
  Alert,
  AlertIcon,
  AlertTitle,
  AlertDescription,
} from '@chakra-ui/react'.



 
  Your browser is outdated!
  Your Chakra experience may be degraded.

Import like this and create the structure you want to make it very easy to use. 

Chakra Installation?

 

We can use npm, yarn, and pnpm for the installation of chakra and its dependencies.

After setting up our react projects we have to run this command.

npm
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion

//or
yarn
yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion

//or
pnpm
pnpm add @chakra-ui/react @emotion/react @emotion/styled framer-motion

After installation to get initialized, we need to set Chakra provider at the root of our application. This can be our index.js or App.js depending on the framework we use.

For React:

import React from "react"

// 1. import `ChakraProvider` component
import { ChakraProvider } from "@chakra-ui/react"

function App({ Component }) {
 // 2. Use at the root of your app
 return (
   
     
   
 )
}

Conclusion

React component libraries are helpful tools in creating stunning interfaces for react-based applications. With its intuitive design system, Chakra UI helps react developers quickly build user interfaces that are accessible, responsive, and visually appealing.

With emerging technological trends you need a partner that ensures your website is innovative. At OpenSenseLabs, we help enterprises provide a better digital experience with new technologies.

Contact us at hello@opensenselabs.com and let our experts help you out.

Image removed.Articles Off

Greg Boggs: Unleash the Power of Drupal 9 Routing: Create Custom Routes with Page Callbacks & Debug Like a Pro

How do I create a route with a page callback in Drupal 10?

To create a route file with a page callback in Drupal, you can follow these steps:

Create a new file in your module’s src/Routing directory, named module_name.routing.yml. In this file, define your route using the YAML syntax. An example of a basic route might look like this:

module_name.example: path: '/example' defaults: _controller: '\Drupal\module_name\Controller\ExampleController::examplePage' _title: 'Example Page'

The path key defines the URL path of the route, and the defaults key contains the page callback and page title for the route. In this example, the page callback is a method named examplePage in the ExampleController class of the module_name module.

Clear Drupal cache so the new route can be picked up by the system.

That’s it! The new route should now be accessible at the URL /example and will use the specified page callback method. You can also pass a parameter in the path, for example path: ‘/example/{parameter}’ and use it in the controller with $parameter = $route->getparameter(‘parameter’)

How do I debug a Drupal 10 routing file?

There are several ways to debug a routing file in Drupal 10, here are some examples:

Use the Devel module: The Devel module is a popular development tool for Drupal, it provides a suite of debugging tools, including the ability to view the routing information for your site. To enable this feature, you need to install and activate the Devel module, and then navigate to the “Devel” -> “Routes” page to view the routing information for your site.

Use the Drupal Console: The Drupal Console is a command-line interface for Drupal that provides a variety of debugging tools. To use the Drupal Console to debug your routing file, you can use the command drupal router:debug to view the routing information for your site.

Use the dpm() function: The dpm() function is a debugging function provided by the Devel module that allows you to print variables to the message area of the page. By adding dpm($routes) to the routing file, you can see the array of all routes.

Use the kint() function: The kint() function is also a debugging function provided by the Devel module that allows you to print variables to the message area of the page, but with more information than dpm(). By adding kint($routes) to the routing file, you can see the array of all routes and more information about the routes.

Use the browser developer tools: By using browser developer tools, you can see all the requests made by the browser and check if the routing file is working correctly.

It’s important to remember that you should only use these debugging tools during development and remove them before deploying to a production environment, as they can expose sensitive information about your site.

How do I make my route higher priority in Drupal 10

In Drupal 10, you can make a route have a higher priority than others by setting a higher weight for the route in the routing file. Here’s an example of how to do this:

In your routing file, you can set the weight property for your route. The weight property is used to determine the order of the routes. Routes with a higher weight will be matched first.

empty_front_page.content: path: '/' defaults: _controller: '\Drupal\empty_front_page\Controller\EmptyFrontPageController::content' _title: 'Empty Front Page' weight: 10

The default weight is 0. If you want your route to have a higher priority, you can set a higher weight. In the example above, the weight is set to 10, which makes it have a higher priority than any other route with a lower weight.

Keep in mind that if you have multiple routes with the same weight, the order in which they are defined in the routing file will determine which route is matched first.

Clear the cache after making any changes in routing file.

By setting a higher weight for your route, you can ensure that it is matched before any other routes with a lower weight. This can be useful if you have multiple routes that match the same path and you want to ensure that a specific route is always matched first.

And there you have it folks, you’re now a pro at creating custom routes and debugging like a boss in Drupal. Just remember, if you ever get stuck, don’t hesitate to call upon the almighty Drupal gods for guidance… or just Google it. Happy routing!