Skip to content

arjc/arjun-3d-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HIGHLIGHTED FUNCTIONS

29th Jan 2026

A function which returns <li> from an array of objects which contains information including name p, link a and mui icon names i (all icons imported directly on constants/index.js)

Make sure to contain these in either <ul> or <ol> as the function returns <li>

// Cnotain in ul or ol  
const makeObjectList = (arr, useOnlyText) => (
  arr.map(({ p, a, i: I }) => (
    <li key={p}>
      <a href={a} target="_blank" rel="noreferrer" className='flex items-center gap-2'>
          {
            useOnlyText >= 2 
            ? <><I fontSize="inherit" />{p}</> 
            : useOnlyText ? p : <I fontSize="inherit" />
          }
      </a>
    </li>
  ))
)

makeObjectList(array, value) Where, value = 0 then ico; else text value > 1 then both ico and text

SETUP

Just incase I delete the entire src code (again)

1. Vite: npm create vite@latest

2. Tailwind for Vite: npm install tailwindcss @tailwindcss/vite

Edit vite.config.js:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

import tailwindcss from '@tailwindcss/vite' <== Add this

export default defineConfig({
  plugins: [
    react(),

    tailwindcss() <============================ And this
  
  ],
})

Add @import "tailwindcss"; to index.css

3. MUI Icons: npm install @mui/icons-material @mui/material @emotion/styled @emotion/react

About

[Beta] Version control for Next Personal Website which includes 3D rendering using WebGL (Three.js).

Topics

Resources

Stars

Watchers

Forks

Contributors