mekasu0124

Untitled

Apr 6th, 2024
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const generateLists = () => {
  2.   const languages = [
  3.     { id: 1,  name: "Python",  url: "https://python.org/",
  4.       frameworks: [
  5.         { id: 1, name: "Disnake (Discord Bots In Python)", url: "https://docs.disnake.dev/en/latest/" },
  6.         { id: 2, name: "Qt - PySide6", url: "https://pypi.org/project/PySide6/" },
  7.       ],
  8.       libraries: [
  9.         {  id: 1, name: "Datetime", url: "https://docs.python.org/3/library/datetime.html", },
  10.         {
  11.           id: 2,
  12.           name: "Date",
  13.           url: "https://docs.python.org/3/library/datetime.html#:~:text=Available%20Types-,class%20datetime.date,-An%20idealized%20naive",
  14.         },
  15.         { id: 3, name: "Time", url: "https://docs.python.org/3/library/time.html#module-time", }
  16.       ],
  17.     },
  18.     {
  19.       id: 2, name: "JavaScript", url: "https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript",
  20.       frameworks: [
  21.         { id: 1, name: "React JS", url: "https://react.dev/" },
  22.         { id: 2, name: "React Native", url: "https://reactnative.dev/" },
  23.       ],
  24.       libraries: [
  25.         { id: 1, name: "Style Components", url: "https://styled-components.com/" },
  26.         { id: 2, name: "BootStrap", url: "https://getbootstrap.com/" },
  27.         { id: 3, name: "React Router Dom", url: "https://www.npmjs.com/package/react-router-dom" },
  28.       ],
  29.     },
  30.     {
  31.       id: 3, name: "C#", url: "",
  32.       frameworks: [
  33.         { id: 1, name: "Avalonia", url: "https://docs.avaloniaui.net/docs/welcome" },
  34.       ],
  35.       libraries: [
  36.         { id: 1, name: "System.DateTimeOffset", url: "https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset?view=net-8.0" },
  37.         { id: 2, name: "TimeSpan", url: "https://learn.microsoft.com/en-us/dotnet/api/system.timespan?view=net-8.0" },
  38.         { id: 3, name: "System.DateTime", url: "https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-8.0" },
  39.       ],
  40.     },
  41.     {
  42.       id: 4, name:"HTML", url: "",
  43.       frameworks: [],
  44.       libraries: [
  45.         { id: 1, name: "Google Fonts", url: "https://fonts.google.com" },
  46.       ],
  47.     },
  48.     { id: 5, name: "CSS", url: "https://developer.mozilla.org/en-US/docs/Web/CSS" },
  49.     { id: 6, name: "Axaml (Avalonia)", url: "https://docs.avaloniaui.net/docs/basics/user-interface/introduction-to-xaml" },
  50.   ];
  51.  
  52.   return languages.map((lang) => {
  53.     return (
  54.       <li id={lang.id} className="language">
  55.         { lang.name }
  56.  
  57.         <ul className="homeInnerList2">
  58.           {
  59.             if (lang.frameworks) {
  60.               return lang.frameworks.map((fw) => {
  61.                
  62.               })
  63.             }
  64.           }
  65.         </ul>
  66.       </li>
  67.     );
  68.   });
  69. };
Advertisement
Add Comment
Please, Sign In to add comment