From be8c44ab7dbf65ca66d3530b277daa0d10e1b319 Mon Sep 17 00:00:00 2001 From: Marco Kaiser Date: Sun, 17 Nov 2024 08:26:36 +0100 Subject: [PATCH] refactor: Reduce code duplication by using the section element for general styling - Fix indentation in index.html --- css/style.css | 44 +++------ index.html | 265 +++++++++++++++++++++++++------------------------- 2 files changed, 146 insertions(+), 163 deletions(-) diff --git a/css/style.css b/css/style.css index 2033314..ca4f094 100644 --- a/css/style.css +++ b/css/style.css @@ -87,14 +87,19 @@ main { padding-inline: var(--spacing-sm); max-width: 1000px; margin: 0 auto; -} -.form-section { - background-color: #102f2a; - padding: var(--spacing-md); - border-radius: 10px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); - margin-bottom: 40px; + section:not(.output-section) { + text-align: left; + background-color: #102f2a; + padding: var(--spacing-md); + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); + color: var(--cyber-font-color); + + &:not(:last-child) { + margin-bottom: 40px; + } + } } .input-group, .radio-group, button { @@ -207,27 +212,12 @@ button:active { display: block; } -.output-section { - margin-top: 40px; -} - #outDiv { display: none; margin-top: 30px; text-align: center; } -/* FAQ Section */ -.faq-section { - background-color: var(--cyber-faq-bg-color); - padding: var(--spacing-md); - border-radius: 10px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); - color: var(--cyber-font-color); - margin-top: 40px; - text-align: left; -} - .faq-section h3 { font-size: 2rem; margin-bottom: 20px; @@ -317,16 +307,6 @@ button:active { .faq-answer li::marker { color: var(--cyber-highlight-color); } -/* Credits Section */ -.credits-section { - background-color: var(--cyber-faq-bg-color); - padding: var(--spacing-md); - border-radius: 10px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); - color: var(--cyber-font-color); - margin-top: 40px; - text-align: left; -} .credits-section h3 { font-size: 2rem; diff --git a/index.html b/index.html index 6834c6d..b75fc03 100644 --- a/index.html +++ b/index.html @@ -24,152 +24,155 @@ - + -
+
Hero Banner
Logo
-
-
-
-
- -
- - - - - - - - -
-
- - - 250 -
- -
-
-
-
-
- +
+
+ +
+ + + + + + + + +
+
+ + + 250 +
+ +
+
+
+
+
+ +
+
+

's Fedi Circle

+
+
+
+
-
-

's Fedi Circle

-
-
-
-
+
+
+
+

Frequently Asked Questions

+ +
+ + +
+

The higher you set the value, the more your Fediverse conversations are examined to determine with which users you interact the most. Imagine it as if you would like to view the last 7 days, the last 14 days, the last 30 days. Note that the higher the value you enter, the longer it takes for your Cyber Circle to be generated.

+
+
+ +
+ + +
+

If a user's profile picture cannot be loaded, a placeholder image (in this case, a Cyberpunk figure) is displayed. This is done to provide a visual substitute in case the original image is unavailable due to loading errors or missing image URLs.

+
+
+ +
+ + +
+

Green Lines: These are default dashed lines that run from the center of the canvas to the user positions. They serve as visual connections between the main user and the other participants. Yellow Lines: These lines may be randomly drawn between different user positions to create additional visual connections and make the layout more dynamic. Red Line: The red line randomly connects the center of the canvas to one of the user positions, adding a highlight to the layout and emphasizing a particular connection.

+
+
+ +
+ + +
+

It adds visual complexity to the canvas and is created using random diagonal lines in a grid pattern.

+
+
+ +
+ + +
+

During the loading of avatars, a progress status is shown on the webpage indicating how many avatars have been successfully loaded (e.g., "Loading avatars: 1/10"). Once all avatars are loaded, this display disappears.

+
+
+ +
+ + +
+

This message indicates that the instance is currently not responding. Please try again later.

+
+
+ +
+ + +
+

Yes, it is possible. Simply change the URL tohttps://ccc.cyber.to/?@revengeday@corteximplant.com, replacing @revengeday@corteximplant.comwith your own account details.

+
+ +
+ + +
+

We understand some users have concerns about data usage by Cyber Circle Creator. This tool is based on a fork of AMNatty/Mastodon-Circles, and user feedback suggests a demand for opt-out capabilities. Here's what we're doing to address these concerns:

+
    +
  1. User Control: Cyber Circle Creator operates entirely within your browser, ensuring that no data is stored on external servers. This design choice was made to enhance user privacy and control, and there's no data analysis performed. +
  2. +
  3. Initial Measures: We've added a user-agent to our create-circle.js file. This allows Fediverse administrators to block Cyber Circle Creator if desired. Guidelines on implementing this measure can be found in our wiki under Opt-Out: Guide for Fediverse Administrators. +
  4. +
  5. Future Plans: We are evaluating ways to implement an opt-out feature to offer more control over data interaction. For more details or to contribute to this effort, please see our Feature Request: Opt-Out from Cyber Circle Creator #6. We are actively seeking collaborators to help develop this feature, despite the technical complexities due to our codebase. +
  6. +
+

If you have further questions or would like to contribute to this effort, please reach out. We appreciate your patience and feedback as we work to enhance user privacy and satisfaction.

-
-
-

Frequently Asked Questions

- -
- - -
-

The higher you set the value, the more your Fediverse conversations are examined to determine with which users you interact the most. Imagine it as if you would like to view the last 7 days, the last 14 days, the last 30 days. Note that the higher the value you enter, the longer it takes for your Cyber Circle to be generated.

-
- -
- - -
-

If a user's profile picture cannot be loaded, a placeholder image (in this case, a Cyberpunk figure) is displayed. This is done to provide a visual substitute in case the original image is unavailable due to loading errors or missing image URLs.

+
+
+

Credits

+
+

+ Cyber Circle Creator builds upon AMNatty/Mastodon-Circles, + which is a further development of andigandhi/Mastodon-Circles. +

+

This project is licensed under the GNU Affero General Public License and benefits from Fedibird support by noellabo, enhancing its functionality even further.

+

+ We invite you to create your own fork of Cyber Circle Creator ♥. +

+

Moreover, the design employs the departure-mono typeface, crafted by rektdeckard and available under the MIT License.

- - -
- - -
-

Green Lines: These are default dashed lines that run from the center of the canvas to the user positions. They serve as visual connections between the main user and the other participants. Yellow Lines: These lines may be randomly drawn between different user positions to create additional visual connections and make the layout more dynamic. Red Line: The red line randomly connects the center of the canvas to one of the user positions, adding a highlight to the layout and emphasizing a particular connection.

-
-
- -
- - -
-

It adds visual complexity to the canvas and is created using random diagonal lines in a grid pattern.

-
-
- -
- - -
-

During the loading of avatars, a progress status is shown on the webpage indicating how many avatars have been successfully loaded (e.g., "Loading avatars: 1/10"). Once all avatars are loaded, this display disappears.

-
-
- -
- - -
-

This message indicates that the instance is currently not responding. Please try again later.

-
-
- -
- - -
-

Yes, it is possible. Simply change the URL to https://ccc.cyber.to/?@revengeday@corteximplant.com, replacing @revengeday@corteximplant.com with your own account details.

-
- -
- - -
-

We understand some users have concerns about data usage by Cyber Circle Creator. This tool is based on a fork of AMNatty/Mastodon-Circles, and user feedback suggests a demand for opt-out capabilities. Here's what we're doing to address these concerns:

-
    -
  1. User Control: Cyber Circle Creator operates entirely within your browser, ensuring that no data is stored on external servers. This design choice was made to enhance user privacy and control, and there's no data analysis performed.
  2. -
  3. Initial Measures: We've added a user-agent to our create-circle.js file. This allows Fediverse administrators to block Cyber Circle Creator if desired. Guidelines on implementing this measure can be found in our wiki under Opt-Out: Guide for Fediverse Administrators.
  4. -
  5. Future Plans: We are evaluating ways to implement an opt-out feature to offer more control over data interaction. For more details or to contribute to this effort, please see our Feature Request: Opt-Out from Cyber Circle Creator #6. We are actively seeking collaborators to help develop this feature, despite the technical complexities due to our codebase.
  6. -
-

If you have further questions or would like to contribute to this effort, please reach out. We appreciate your patience and feedback as we work to enhance user privacy and satisfaction.

-
-
-
-
-
-

Credits

-
-

- Cyber Circle Creator builds upon AMNatty/Mastodon-Circles, - which is a further development of andigandhi/Mastodon-Circles. -

-

This project is licensed under the GNU Affero General Public License and benefits from Fedibird support by noellabo, enhancing its functionality even further.

-

- We invite you to create your own fork of Cyber Circle Creator ♥. -

-

Moreover, the design employs the departure-mono typeface, crafted by rektdeckard and available under the MIT License.

-
-
-
- - - - - - +
+ + + + + + + - \ No newline at end of file +