-
Notifications
You must be signed in to change notification settings - Fork 121
Fix/dark mode text visibility #545
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
Closed
rahul-vyas-dev
wants to merge
6
commits into
sugarlabs:main
from
rahul-vyas-dev:fix/dark-mode-text-visibility
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6c5c989
Add new class for text wrapping
rahul-vyas-dev 0dffc38
feat: Add installation guides for Fedora, Ubuntu, Debian, and Raspbiaβ¦
rahul-vyas-dev bbed799
fix: Update button type definition and ensure selectedOS is set as stβ¦
rahul-vyas-dev bcae826
fix: Standardize import statements and improve code formatting in insβ¦
rahul-vyas-dev 6ff4e51
feat: Implement dark mode support in MorePage component
rahul-vyas-dev 9d321c7
fixing formatting in according to prettier config file
rahul-vyas-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rahul-vyas-dev marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| import { motion } from 'framer-motion'; | ||
| import img1 from '../../../public/assets/Images/guid-image-1.webp'; | ||
|
|
||
| function Debian() { | ||
| return ( | ||
| <> | ||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div className="flex flex-col gap-5"> | ||
| <h2 className="text-center text-4xl font-medium"> | ||
| Install Sugar on Debian | ||
| </h2> | ||
| <span className="text-center text-gray-700 text-xl"> | ||
| Debian is a free, stable Linux distribution. Sugar packages are | ||
| available in Debian releases β use the commands below depending on | ||
| your Debian version. | ||
| <a | ||
| href="https://www.debian.org/" | ||
| className=" hover:text-blue-800 underline" | ||
| > | ||
| <b>click here</b> | ||
| </a>{' '} | ||
| <img src={`${img1}`} alt="Download Sugar for Debian" /> | ||
| </span> | ||
| </div> | ||
| </motion.section> | ||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div> | ||
| <div className="flex flex-col gap-4"> | ||
| <h3 className="text-3xl font-semibold text-center"> | ||
| Using Sugar 0.112 on Debian Buster | ||
| </h3> | ||
|
|
||
| <p className="text-center text-xl"> | ||
| Sugar 0.112 will be available in Debian Buster. Install from the | ||
| default repositories: | ||
| </p> | ||
|
|
||
| <p className="text-center text-gray-700 text-xl"> | ||
| After installation, log out and choose the <strong>Sugar</strong>{' '} | ||
| session at the login screen. | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </motion.section>{' '} | ||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div> | ||
| <div className="flex flex-col gap-4 mt-6"> | ||
| <h3 className="text-3xl font-semibold text-center"> | ||
| Using Sugar 0.110 on Debian Stretch | ||
| </h3> | ||
|
|
||
| <p className="text-center text-xl"> | ||
| Sugar 0.110 is available in Debian Stretch. To install on a fresh | ||
| Stretch installation: | ||
| </p> | ||
| <p className="text-center text-gray-600"> | ||
| During the Debian installer, when asked which collections to | ||
| include, deselect all to keep a minimal system; then install{' '} | ||
| <code>sucrose</code> and a display manager like{' '} | ||
| <code>lightdm</code>. | ||
| </p> | ||
| <b className="text-center"> | ||
| when the install has completed, log in, install Sugar, a display | ||
| manager, and reboot, type | ||
| </b> | ||
| <div className="flex flex-col items-center gap-3"> | ||
| <pre> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| sudo apt install sucrose lightdm | ||
| </code> | ||
| </pre> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => | ||
| navigator.clipboard.writeText( | ||
| 'sudo apt install sucrose lightdm', | ||
| ) | ||
| } | ||
| > | ||
| Copy | ||
| </button> | ||
|
|
||
| <pre> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| exec sudo reboot | ||
| </code> | ||
| </pre> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => | ||
| navigator.clipboard.writeText('exec sudo reboot') | ||
| } | ||
| > | ||
| Copy | ||
| </button> | ||
| </div> | ||
|
|
||
| <p className="text-center text-gray-700 text-xl"> | ||
| At the graphical login screen change from the default X session to{' '} | ||
| <strong>Sugar</strong>, then log in with the non-root user you | ||
| created during install. | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </motion.section> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default Debian; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,181 @@ | ||
| import { motion } from 'framer-motion'; | ||
| import img1 from '../../../public/assets/Images/fedora-step1.webp'; | ||
|
|
||
| function Fedora() { | ||
| return ( | ||
| <> | ||
| <main> | ||
| <motion.article className="mx-auto p-6 flex items-center flex-col max-w-10/12"> | ||
| <h1 className="text-4xl font-sans font-bold text-center"> | ||
| Steps to install Sugar using Fedora | ||
| </h1> | ||
|
|
||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div className="flex flex-col gap-5"> | ||
| <div> | ||
| <h3 className="font-medium text-gray-600 flex justify-center"> | ||
| Step 1 | ||
| </h3> | ||
| </div> | ||
| <span className="text-3xl text-center"> | ||
| Install <b>Fedora</b> on your device. | ||
| <a | ||
| href="https://getfedora.org/" | ||
| className=" hover:text-blue-800 underline" | ||
| > | ||
| {' '} | ||
| Click here{' '} | ||
| </a> | ||
| </span> | ||
| <desc className=" text-gray-600 text-center"> | ||
| Download the Fedora ARM image for your Raspberry Pi from the | ||
| official Fedora website. Make sure to select the version that | ||
| matches your Raspberry Pi model. | ||
| </desc> | ||
| </div> | ||
| <div> | ||
| <img src={`${img1}`} alt="Download Fedora for Raspberry Pi" /> | ||
| </div> | ||
| </motion.section> | ||
|
|
||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div className="flex flex-col gap-5 "> | ||
| <h3 className="font-medium text-gray-600 flex justify-center"> | ||
| Step 2 | ||
| </h3> | ||
| <ol className="flex flex-col gap-5"> | ||
| <li className=" text-4xl text-center font-medium flex justify-center"> | ||
| Open the Terminal & Run the command: | ||
| </li> | ||
| <li className="text-xl text-center flex gap-2.5"> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded-2xl hover:bg-gray-200 text-wrap"> | ||
| sudo dnf groupinstall sugar-desktop | ||
| </code> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText( | ||
| 'sudo dnf groupinstall sugar-desktop', | ||
| ); | ||
| }} | ||
| > | ||
| Copy | ||
| </button> | ||
| </li> | ||
| <div className="flex flex-col gap-3 items-center"> | ||
| <li className="text-center text-3xl font-medium flex justify-center"> | ||
| Restart your system: | ||
| </li> | ||
| <div className="text-center flex items-center gap-2.5"> | ||
| <pre className="text-center"> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| sudo reboot | ||
| </code> | ||
| </pre>{' '} | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText('sudo reboot'); | ||
| }} | ||
| > | ||
| Copy | ||
| </button> | ||
| </div> | ||
| </div> | ||
| <li className="text-center text-3xl font-medium "> | ||
| On the login screen, select the <strong>Sugar Desktop</strong>{' '} | ||
| session. | ||
| </li> | ||
| </ol> | ||
| </div> | ||
| </motion.section> | ||
|
|
||
| <motion.section | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| className="mt-5" | ||
| > | ||
| <div className="flex flex-col gap-5"> | ||
| <h3 className="font-medium text-gray-600 flex justify-center"> | ||
| Step 3 | ||
| </h3> | ||
| <h2 className="text-center text-4xl font-medium"> | ||
| Using Sugar Inside GNOME | ||
| </h2> | ||
| <ol className="flex flex-col gap-4"> | ||
| <li className="text-center text-3xl"> | ||
| Select GNOME on Xorg or GNOME Classic at login. | ||
| </li> | ||
| <li className="text-center"> | ||
| <span className="text-center text-2xl font-medium"> | ||
| Open Terminal and run: | ||
| </span> | ||
| <pre className="flex flex-col text-xl gap-1.5"> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| sudo dnf groupinstall sugar-desktop | ||
| </code> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText( | ||
| 'sudo dnf groupinstall sugar-desktop', | ||
| ); | ||
| }} | ||
| > | ||
| Copy | ||
| </button> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| sudo dnf install sugar-runner | ||
| </code> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText( | ||
| 'sudo dnf install sugar-runner', | ||
| ); | ||
| }} | ||
| > | ||
| Copy | ||
| </button> | ||
| </pre> | ||
| </li> | ||
| <li className="text-center text-xl font-medium"> | ||
| Start Sugar: | ||
| <pre> | ||
| <code className="font-mono bg-gray-100 px-2 py-1 rounded hover:bg-gray-200"> | ||
| sugar-runner | ||
| </code> | ||
| <button | ||
| className="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText('sugar-runner'); | ||
| }} | ||
| > | ||
| Copy | ||
| </button> | ||
| </pre> | ||
| </li> | ||
| <li> | ||
| <strong>Logout from Sugar to return to GNOME.</strong> | ||
| </li> | ||
| </ol> | ||
| </div> | ||
| </motion.section> | ||
| </motion.article> | ||
| </main> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default Fedora; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| import { motion } from 'framer-motion'; | ||
| import img1 from '../../../public/assets/Images/fedora-step1.webp'; | ||
|
|
||
| function Raspbian() { | ||
| return ( | ||
| <div className="w-full max-w-3xl mx-auto p-6 space-y-6"> | ||
| <h1 className="text-3xl font-bold">Installing Sugar on Raspberry Pi</h1> | ||
|
|
||
| <p className="text-base leading-relaxed"> | ||
| Raspberry Pi devices are small, low-cost computers that work well with | ||
| Sugar. To use Sugar, you'll need a display, keyboard, and mouse. | ||
| </p> | ||
| <img src={`${img1}`} alt="" /> | ||
| <motion.section | ||
| className="space-y-3" | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| > | ||
| <h2 className="text-2xl font-semibold"> | ||
| Recommended Method: Sugar on a Stick(SoaS) | ||
| </h2> | ||
| <p> | ||
| The most reliable way to run Sugar on a Raspberry Pi is by using{' '} | ||
| <b>Sugar on a Stick</b>, a Fedora-based build that ships with many | ||
| activities and receives regular security updates. | ||
| <a | ||
| href="https://wiki.sugarlabs.org/go/Installation" | ||
| className=" hover:text-blue-800 underline" | ||
| > | ||
| <b> Click here for more info</b> | ||
| </a> | ||
| </p> | ||
| </motion.section> | ||
|
|
||
| <motion.section | ||
| className="space-y-3" | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| > | ||
| <h2 className="text-2xl font-semibold">Other Installation Options</h2> | ||
| <ul className="list-disc ml-6 space-y-2"> | ||
| <li> | ||
| <b>Fedora:</b> Actively used for Sugar development and provides | ||
| strong tooling. | ||
| </li> | ||
| <li> | ||
| <b>Debian:</b> Stable environment with good ARM support for | ||
| Raspberry Pi. | ||
| </li> | ||
| <li> | ||
| <b>Ubuntu:</b> Works well for general Sugar usage and familiar | ||
| workflows. | ||
| </li> | ||
| </ul> | ||
| </motion.section> | ||
|
|
||
| <motion.section | ||
| className="space-y-3" | ||
| initial={{ opacity: 0, x: 0 }} | ||
| whileInView={{ opacity: 1 }} | ||
| viewport={{ once: true, amount: 0.3 }} | ||
| > | ||
| <h2 className="text-2xl font-semibold">Development Notes</h2> | ||
| <p> | ||
| Developers usually choose <b>Fedora</b> or <b>Debian</b> when setting | ||
| up a development environment for Sugar on Raspberry Pi, since both | ||
| align closely with the platforms used for Sugar development on | ||
| standard computers. | ||
| </p> | ||
| </motion.section> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default Raspbian; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files are not even related to the PR. Why are they even pushed with the PR?