Skip to content
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

Add social media links on a left menu #247

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

Saamiyah
Copy link
Contributor

@Saamiyah Saamiyah commented Oct 15, 2024

Linked to issue #195

Screenshot 2024-10-15 at 16 36 33

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Introduced a fixed navigation menu for extra-large screens with links to social media platforms.
    • Added a new Twitter icon component for enhanced visual representation.
  • Improvements

    • Enhanced readability and structure of various components, including user authentication and icon components.
    • Improved layout and styling of the navigation elements for better user interaction.
  • Bug Fixes

    • Removed unused import statements and simplified state management in authentication components.

Copy link
Contributor

coderabbitai bot commented Oct 15, 2024

Walkthrough

The pull request introduces several modifications across multiple Vue components in the frontendmu-nuxt package. Key changes include formatting improvements, structural enhancements, and the addition of a new fixed navigation menu component. Specific components have been updated for better readability and accessibility, while some unused imports have been removed. Additionally, a new Twitter icon component has been added. Overall, these changes aim to enhance code clarity and maintainability without altering the public interface of the components.

Changes

File Path Change Summary
.../components/icon/discord.vue Enhanced readability of <svg> attributes by formatting them across multiple lines.
.../components/site/LeftMenu.vue Introduced a new component for a fixed navigation menu with links to social media platforms.
.../components/site/Navigation.vue Removed unused import and reformatted div element for better readability.
.../layouts/default.vue Updated defineOgImageComponent to use double quotes and added SiteLeftMenu component.
.../components/icon/social/twitter.vue Added new component HugeiconsNewTwitterEllipse for rendering a Twitter icon using SVG.

Poem

In the code where bunnies play,
We’ve tidied up in a bright new way.
With menus fixed and buttons neat,
Our Vue components are now a treat!
Hopping through lines, so clear and bright,
Coding joyfully, day and night! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2024

Deploying frontend-mu-nuxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 863f51b
Status: ✅  Deploy successful!
Preview URL: https://20fec4ff.frontend-mu-staging.pages.dev
Branch Preview URL: https://move-social-media-links-to-s.frontend-mu-staging.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🧹 Outside diff range and nitpick comments (1)
packages/frontendmu-nuxt/layouts/default.vue (1)

2-2: Minor formatting change: Use of double quotes

The change from single quotes to double quotes for the string argument in defineOgImageComponent is a minor formatting adjustment. This change doesn't affect functionality but may improve consistency with the project's coding style.

Ensure this change aligns with the project's style guide for string quotation.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 26365b9 and 993245f.

📒 Files selected for processing (5)
  • packages/frontendmu-nuxt/components/auth/LoggedUser.vue (4 hunks)
  • packages/frontendmu-nuxt/components/icon/discord.vue (1 hunks)
  • packages/frontendmu-nuxt/components/site/LeftMenu.vue (1 hunks)
  • packages/frontendmu-nuxt/components/site/Navigation.vue (1 hunks)
  • packages/frontendmu-nuxt/layouts/default.vue (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • packages/frontendmu-nuxt/components/icon/discord.vue
  • packages/frontendmu-nuxt/components/site/Navigation.vue
🧰 Additional context used
🔇 Additional comments (8)
packages/frontendmu-nuxt/layouts/default.vue (1)

9-9: New component added: SiteLeftMenu

The addition of the SiteLeftMenu component aligns with the PR objective of incorporating social media links into a left menu. Its placement between SiteNavigation and the main content (slot) is logical for a left-side menu layout.

To ensure the new component is properly implemented and contains the expected social media links, please run the following verification script:

This script will help verify:

  1. The existence of the SiteLeftMenu component file.
  2. The content of the SiteLeftMenu component.
  3. The presence of social media related code within the component.

Please review the script output to ensure the component is implemented as expected and includes the social media links as per the PR objectives.

packages/frontendmu-nuxt/components/auth/LoggedUser.vue (7)

2-15: LGTM: Improved code consistency and readability

The changes in the script setup section enhance code consistency by using double quotes for imports and adding a semicolon after the checkIfLoggedIn function call. The simplification of the useAuth destructuring is also a good cleanup, removing potentially unused variables.


21-24: LGTM: Improved BaseButton formatting

The reformatting of the BaseButton components enhances code readability. The vertical alignment of attributes makes it easier to scan and understand the component properties. The separation of desktop and mobile versions is maintained, ensuring consistent functionality across different screen sizes.

Also applies to: 30-34


43-50: Excellent: Improved formatting and accessibility

The reformatting of the MenuButton's class attribute enhances code readability. More importantly, the addition of the alt attribute to the user avatar image is a significant improvement in accessibility. This change ensures that screen readers can provide context for the image, adhering to web accessibility best practices.


57-60: LGTM: Enhanced transition component readability

The splitting of the transition component's class attributes into multiple lines significantly improves code clarity. This change makes each transition class more visible and easier to understand, without altering the component's functionality.


70-75: LGTM: Improved class binding readability

The adjustment of class bindings using array syntax for the "My Profile" MenuItem enhances code readability. This approach is a Vue best practice for handling conditional classes, making the code more maintainable and easier to understand.


82-87: LGTM: Consistent improvement in class binding readability

The class binding adjustments for the "Logout" MenuItem mirror those made for the "My Profile" link. This consistency in approach across similar components is commendable, as it enhances overall code readability and maintainability.


Line range hint 1-112: Overall: Improved code quality with minor suggestion for accessibility

The changes in this file significantly enhance code readability, consistency, and partially improve accessibility. The reformatting of components, consistent use of quotation marks, and improved class bindings all contribute to a more maintainable codebase.

The addition of an alt attribute to one of the avatar images is a step in the right direction for accessibility. To fully realize this improvement, ensure that all avatar images have appropriate alt attributes.

These changes align well with the PR objectives, preparing the component for the integration of social media links in the left menu by improving its overall structure and readability.

Comment on lines 1 to 47
<template>
<nav
class="fixed bottom-[50px] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
>
<a
href="https://discord.gg/WxXW9Jvv6k?ref=frontend.mu"
class="text-[#5865f2] text-sm md:text-normal hover:animate-bounce"
>
<IconDiscord class="w-6" />
</a>

<a
href="https://github.com/Front-End-Coders-Mauritius?ref=frontend.mu"
class="text-[#333] text-sm md:text-normal dark:text-white hover:animate-bounce"
>
<IconGithub class="w-6" />
</a>

<a
href="https://chat.whatsapp.com/invite/0kQ2QX0ZQ0j1YQ4X6Q4Q4Q"
class="text-[#25D366] text-sm md:text-normal hover:animate-bounce"
>
<IconWhatsappCommunity class="w-6" />
</a>

<a
href="https://twitter.com/frontendmu"
class="text-[#1DA1F2] text-sm md:text-normal hover:animate-bounce"
>
<IconTwitter class="w-6" />
</a>

<a
href="https://www.instagram.com/frontend.mu/?ref=frontend.mu"
class="text-[#d6249f] text-sm md:text-normal hover:animate-bounce"
>
<IconInstagram class="w-6" />
</a>

<a
href="https://www.linkedin.com/company/81846464/admin/?ref=frontend.mu"
class="text-[#007db1] text-sm md:text-normal hover:animate-bounce"
>
<IconLinkedin class="w-6" />
</a>
</nav>
</template>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance maintainability and reusability of the social media navigation

To improve the maintainability and reusability of your social media navigation component, consider the following suggestions:

  1. Extract the social media links data into a separate configuration file or computed property. This will make it easier to update or add new links in the future.

  2. Create a reusable component for social media links to reduce code duplication.

  3. Explicitly import the icon components at the top of the file.

Here's an example of how you could implement these changes:

<template>
  <nav
    class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex max-h-[80vh] overflow-y-auto"
    aria-label="Social media links"
    role="navigation"
  >
    <SocialLink
      v-for="link in socialLinks"
      :key="link.name"
      v-bind="link"
    />
  </nav>
</template>

<script>
import { defineComponent } from 'vue'
import SocialLink from './SocialLink.vue'
import IconDiscord from './icons/IconDiscord.vue'
import IconGithub from './icons/IconGithub.vue'
import IconWhatsappCommunity from './icons/IconWhatsappCommunity.vue'
import IconTwitter from './icons/IconTwitter.vue'
import IconInstagram from './icons/IconInstagram.vue'
import IconLinkedin from './icons/IconLinkedin.vue'

export default defineComponent({
  name: 'LeftMenu',
  components: {
    SocialLink,
  },
  setup() {
    const socialLinks = [
      {
        name: 'Discord',
        href: 'https://discord.gg/WxXW9Jvv6k?ref=frontend.mu',
        icon: IconDiscord,
        color: 'text-[#5865f2]',
      },
      // Add other social media links here
    ]

    return {
      socialLinks,
    }
  },
})
</script>

Then, create a SocialLink.vue component:

<template>
  <a
    :href="href"
    :class="[color, 'text-sm md:text-normal hover:animate-bounce opacity-80 hover:opacity-100']"
    rel="noopener noreferrer"
    target="_blank"
    tabindex="0"
    :aria-label="`Join our ${name} community`"
    @keydown.enter="$event.target.click()"
  >
    <component :is="icon" class="w-6" />
    <span class="sr-only">{{ name }}</span>
  </a>
</template>

<script>
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'SocialLink',
  props: {
    name: {
      type: String,
      required: true,
    },
    href: {
      type: String,
      required: true,
    },
    icon: {
      type: Object,
      required: true,
    },
    color: {
      type: String,
      required: true,
    },
  },
})
</script>

These changes will significantly improve the maintainability and reusability of your social media navigation component.


🛠️ Refactor suggestion

Improve accessibility and SEO of the social media navigation

To enhance the accessibility and SEO of your social media navigation, consider the following suggestions:

  1. Add visible text alongside icons for better SEO. You can use Tailwind's sr-only class to hide the text visually while keeping it available for screen readers and search engines.

  2. Implement keyboard navigation support by adding tabindex="0" to each link and handling keyboard events.

  3. Consider adding an aria-label to each link for better screen reader context.

Here's an example of how to implement these changes:

 <template>
   <nav
     class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex max-h-[80vh] overflow-y-auto"
     aria-label="Social media links"
     role="navigation"
   >
     <a
       href="https://discord.gg/WxXW9Jvv6k?ref=frontend.mu"
       class="text-[#5865f2] text-sm md:text-normal hover:animate-bounce opacity-80 hover:opacity-100"
       rel="noopener noreferrer"
       target="_blank"
+      tabindex="0"
+      aria-label="Join our Discord community"
+      @keydown.enter="$event.target.click()"
     >
       <IconDiscord class="w-6" />
+      <span class="sr-only">Discord</span>
     </a>
     <!-- Apply similar changes to other social media links -->
   </nav>
 </template>

+<script>
+export default {
+  name: 'LeftMenu',
+  // Add any necessary component logic here
+}
+</script>

These changes will significantly improve the accessibility and SEO of your social media navigation menu.

Committable suggestion was skipped due to low confidence.

Comment on lines 1 to 4
<template>
<nav
class="fixed bottom-[50px] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider improving responsiveness and accessibility of the navigation menu

The overall structure of the navigation menu is good, but there are a few areas for improvement:

  1. Instead of using a fixed pixel value for the bottom offset (bottom-[50px]), consider using a responsive unit like rem or a percentage. This will ensure better consistency across different screen sizes.

  2. Add appropriate ARIA attributes to improve accessibility. For example:

 <nav
-  class="fixed bottom-[50px] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
+  class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
+  aria-label="Social media links"
+  role="navigation"
 >
  1. Consider adding a max-height to the menu and making it scrollable for very tall screens:
 <nav
-  class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
+  class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex max-h-[80vh] overflow-y-auto"
   aria-label="Social media links"
   role="navigation"
 >

These changes will improve the responsiveness and accessibility of your navigation menu.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<template>
<nav
class="fixed bottom-[50px] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex"
>
<template>
<nav
class="fixed bottom-[3rem] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex max-h-[80vh] overflow-y-auto"
aria-label="Social media links"
role="navigation"
>

Comment on lines 5 to 45
<a
href="https://discord.gg/WxXW9Jvv6k?ref=frontend.mu"
class="text-[#5865f2] text-sm md:text-normal hover:animate-bounce"
>
<IconDiscord class="w-6" />
</a>

<a
href="https://github.com/Front-End-Coders-Mauritius?ref=frontend.mu"
class="text-[#333] text-sm md:text-normal dark:text-white hover:animate-bounce"
>
<IconGithub class="w-6" />
</a>

<a
href="https://chat.whatsapp.com/invite/0kQ2QX0ZQ0j1YQ4X6Q4Q4Q"
class="text-[#25D366] text-sm md:text-normal hover:animate-bounce"
>
<IconWhatsappCommunity class="w-6" />
</a>

<a
href="https://twitter.com/frontendmu"
class="text-[#1DA1F2] text-sm md:text-normal hover:animate-bounce"
>
<IconTwitter class="w-6" />
</a>

<a
href="https://www.instagram.com/frontend.mu/?ref=frontend.mu"
class="text-[#d6249f] text-sm md:text-normal hover:animate-bounce"
>
<IconInstagram class="w-6" />
</a>

<a
href="https://www.linkedin.com/company/81846464/admin/?ref=frontend.mu"
class="text-[#007db1] text-sm md:text-normal hover:animate-bounce"
>
<IconLinkedin class="w-6" />
</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance security, accessibility, and consistency of social media links

While the implementation of social media links is generally good, there are several improvements we can make:

  1. Add rel="noopener noreferrer" and target="_blank" attributes to each link for security when opening in a new tab.

  2. Consider adding a subtle visual indication that these are clickable links, such as a slight opacity change on hover.

  3. Include visually hidden text for screen readers to provide context for each icon.

  4. Consistently apply the ?ref=frontend.mu query parameter across all links.

Here's an example of how to implement these changes for the Discord link:

 <a
   href="https://discord.gg/WxXW9Jvv6k?ref=frontend.mu"
-  class="text-[#5865f2] text-sm md:text-normal hover:animate-bounce"
+  class="text-[#5865f2] text-sm md:text-normal hover:animate-bounce opacity-80 hover:opacity-100"
+  rel="noopener noreferrer"
+  target="_blank"
 >
   <IconDiscord class="w-6" />
+  <span class="sr-only">Join us on Discord</span>
 </a>

Apply similar changes to all other social media links. Also, ensure that the ?ref=frontend.mu query parameter is consistently added to all links where applicable.

Committable suggestion was skipped due to low confidence.

Comment on lines +97 to +100
<img
class="w-16 aspect-square rounded-full"
:src="avatarUrl"
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add alt attribute to avatar image for consistency and accessibility

While the reformatting of the avatar image element improves code readability, it's important to maintain consistency with the earlier implementation. To enhance accessibility and align with best practices, please add an alt attribute to this avatar image as well.

Consider applying the following change:

 <img
   class="w-16 aspect-square rounded-full"
   :src="avatarUrl"
+  alt="User Avatar"
 />
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<img
class="w-16 aspect-square rounded-full"
:src="avatarUrl"
/>
<img
class="w-16 aspect-square rounded-full"
:src="avatarUrl"
alt="User Avatar"
/>

@Saamiyah Saamiyah requested a review from MrSunshyne October 15, 2024 12:37
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (1)
packages/frontendmu-nuxt/components/icon/social/twitter.vue (1)

9-27: SVG implementation looks good with room for enhancement.

The SVG implementation follows best practices with proper accessibility attributes and dynamic coloring. Consider these enhancements:

  • Add aria-label for better accessibility
  • Add width/height attributes for explicit dimensions

Apply this diff to enhance the implementation:

-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+  <svg
+    xmlns="http://www.w3.org/2000/svg"
+    viewBox="0 0 24 24"
+    width="24"
+    height="24"
+    aria-label="Twitter X Logo"
+  >
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 993245f and 863f51b.

📒 Files selected for processing (2)
  • packages/frontendmu-nuxt/components/icon/social/twitter.vue (1 hunks)
  • packages/frontendmu-nuxt/components/site/LeftMenu.vue (1 hunks)
🔇 Additional comments (2)
packages/frontendmu-nuxt/components/site/LeftMenu.vue (2)

23-23: Verify WhatsApp community invite link.

The WhatsApp invite link appears to be a placeholder. Please verify and update with the correct community invite link.


2-4: Review z-index value for potential overlay issues.

The navigation uses z-index: 30 (z-30). Verify this value ensures proper stacking with other fixed/absolute positioned elements in the application.

Comment on lines +1 to +7
<script setup lang="ts">
import { defineComponent } from "vue";

defineComponent({
name: "HugeiconsNewTwitterEllipse",
});
</script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix incorrect usage of defineComponent with script setup.

The defineComponent import and usage is incorrect here. When using <script setup>, you don't need to explicitly call defineComponent as components are automatically defined.

Apply this diff to fix the implementation:

 <script setup lang="ts">
-import { defineComponent } from "vue";
-
-defineComponent({
-  name: "HugeiconsNewTwitterEllipse",
-});
 </script>

If you need to explicitly set the component name for debugging purposes, use defineOptions instead:

 <script setup lang="ts">
+defineOptions({
+  name: 'HugeiconsNewTwitterEllipse'
+})
 </script>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<script setup lang="ts">
import { defineComponent } from "vue";
defineComponent({
name: "HugeiconsNewTwitterEllipse",
});
</script>
<script setup lang="ts">
</script>


<a
target="_blank"
href="https://www.linkedin.com/company/81846464/admin/?ref=frontend.mu"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Review LinkedIn URL format.

The LinkedIn URL contains "admin" in the path which might be incorrect for public access. Consider using the public company profile URL instead.

Comment on lines +1 to +53
<template>
<nav
class="fixed bottom-[50px] gap-4 flex-col pl-4 justify-end w-10 hidden xl:flex z-30"
>
<a
target="_blank"
href="https://discord.gg/WxXW9Jvv6k?ref=frontend.mu"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconDiscord class="w-6" />
</a>

<a
target="_blank"
href="https://github.com/Front-End-Coders-Mauritius?ref=frontend.mu"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconGithub class="w-6" />
</a>

<a
target="_blank"
href="https://chat.whatsapp.com/invite/0kQ2QX0ZQ0j1YQ4X6Q4Q4Q"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconWhatsappCommunity class="w-6" />
</a>

<a
target="_blank"
href="https://twitter.com/frontendmu"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconSocialTwitter class="w-6" />
</a>

<a
target="_blank"
href="https://www.instagram.com/frontend.mu/?ref=frontend.mu"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconInstagram class="w-6" />
</a>

<a
target="_blank"
href="https://www.linkedin.com/company/81846464/admin/?ref=frontend.mu"
class="text-verse-500 dark:text-verse-200 text-sm md:text-normal hover:animate-bounce hover:ease-in-out hover:delay-200"
>
<IconLinkedin class="w-6" />
</a>
</nav>
</template>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add script section with component definition and icon imports.

The component is missing the script section. Add it to properly define the component and explicitly import the icon components:

<script>
import { defineComponent } from 'vue'
import IconDiscord from './icons/IconDiscord.vue'
import IconGithub from './icons/IconGithub.vue'
import IconWhatsappCommunity from './icons/IconWhatsappCommunity.vue'
import IconSocialTwitter from './icons/IconSocialTwitter.vue'
import IconInstagram from './icons/IconInstagram.vue'
import IconLinkedin from './icons/IconLinkedin.vue'

export default defineComponent({
  name: 'LeftMenu',
  components: {
    IconDiscord,
    IconGithub,
    IconWhatsappCommunity,
    IconSocialTwitter,
    IconInstagram,
    IconLinkedin
  }
})
</script>

@MrSunshyne MrSunshyne merged commit e685b97 into main Nov 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants