Skip to content

Commit bcae826

Browse files
fix: Standardize import statements and improve code formatting in installation guides
1 parent bbed799 commit bcae826

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

src/components/Installation-guid/Fedora.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import {motion} from 'framer-motion'
1+
import { motion } from 'framer-motion';
22
import img1 from '../../../public/assets/Images/fedora-step1.webp';
3+
34
function Fedora() {
45
return (
56
<>
67
<main>
78
<motion.article className="mx-auto p-6 flex items-center flex-col max-w-10/12">
8-
<h1 className=" text-4xl font-sans font-bold text-center">
9+
<h1 className="text-4xl font-sans font-bold text-center">
910
Steps to install Sugar using Fedora
1011
</h1>
1112

src/components/Installation-guid/Raspbian.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { motion } from 'framer-motion';
22
import img1 from '../../../public/assets/Images/fedora-step1.webp';
3+
34
function Raspbian() {
45
return (
56
<div className="w-full max-w-3xl mx-auto p-6 space-y-6">
@@ -9,7 +10,7 @@ function Raspbian() {
910
Raspberry Pi devices are small, low-cost computers that work well with
1011
Sugar. To use Sugar, you'll need a display, keyboard, and mouse.
1112
</p>
12-
<img src={ `${img1}`} alt="" />
13+
<img src={`${img1}`} alt="" />
1314
<motion.section
1415
className="space-y-3"
1516
initial={{ opacity: 0, x: 0 }}

src/components/Installation-guid/Ubuntu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { motion } from 'framer-motion';
2-
import img1 from '../../../public/assets/Images/guid-image-1.webp'
2+
import img1 from '../../../public/assets/Images/guid-image-1.webp';
3+
34
function Ubuntu() {
45
return (
56
<>

src/components/TryNow/LogoCards.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ interface LogoCard {
1010
logo: string;
1111
title: string;
1212
description: string[];
13-
buttons?: { text: string; value?: string; target?: string; link?:string}[];
13+
buttons?: {
14+
text: string;
15+
value?: string;
16+
target?: string;
17+
link?: string;
18+
}[];
1419
}
1520

1621
const LogoCards = ({ data }: { data: LogoCard[] }) => {
@@ -80,17 +85,17 @@ const LogoCards = ({ data }: { data: LogoCard[] }) => {
8085
<b className="text-center">
8186
<a
8287
href="https://wiki.sugarlabs.org/go/Installation#Raspberry_Pi"
83-
className=" hover:text-blue-800 underline"
88+
className="hover:text-blue-800 underline"
8489
>
8590
visit here for more info
8691
</a>
8792
</b>
8893
</section>
8994
<section>
90-
{selectedOS == 'Fedora' && <Fedora />}
91-
{selectedOS == 'Ubuntu' && <Ubuntu />}
92-
{selectedOS == 'Debian' && <Debian />}
93-
{selectedOS == 'Raspbian' && <Raspbian />}
95+
{selectedOS === 'Fedora' && <Fedora />}
96+
{selectedOS === 'Ubuntu' && <Ubuntu />}
97+
{selectedOS === 'Debian' && <Debian />}
98+
{selectedOS === 'Raspbian' && <Raspbian />}
9499
</section>
95100
</>
96101
);

0 commit comments

Comments
 (0)