Saturday, 18 April 2026

page bana jisse har section pe naya page aa jaye

 Samajh gaya bhai — tu “scroll pe next section / page jaisa feel” wali website banana chahta hai (like Apple, landing pages, etc.).

Isko bolte hain 👉 Single Page Scroll Website (sections instead of pages)


🧠 Concept simple hai:

  • Ek hi page hota hai

  • Usme multiple sections (divs) hote hain

  • Har section = ek “page jaisa feel”

  • Scroll karte hi next section full screen pe aata hai


🔥 Basic React Example (Full Working)

📁 Structure

src/
 ├── App.jsx
 ├── App.css

✅ App.jsx

import './App.css';

function App() {
  return (
    <div className="container">

      <section className="section section1">
        <h1>Welcome to the World of Automation</h1>
        <p>Easytrain</p>
      </section>

      <section className="section section2">
        <h1>Our Services</h1>
        <p>We build smart automation solutions</p>
      </section>

      <section className="section section3">
        <h1>About Us</h1>
        <p>We are a tech-driven company</p>
      </section>

      <section className="section section4">
        <h1>Contact</h1>
        <p>Get in touch with us</p>
      </section>

    </div>
  );
}

export default App;

🎨 App.css

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Different colors for sections */
.section1 {
  background: #111;
  color: white;
}

.section2 {
  background: #007bff;
  color: white;
}

.section3 {
  background: #28a745;
  color: white;
}

.section4 {
  background: #ffc107;
  color: black;
}

✨ Result kya hoga:

  • Har scroll pe ek naya “page-like section”

  • Smooth snapping effect 🔥

  • Modern landing page feel


🚀 Advanced (next level banana hai?)

Agar tu aur pro banana chahta hai toh use kar:

  • framer-motion → animations

  • react-scroll → smooth navigation

  • locomotive-scroll → premium scrolling feel


🧠 Real world example:

  • Apple website 🍎

  • Tesla website 🚗

  • Startup landing pages


Agar tu bole toh main tujhe:
👉 animation + navbar + smooth scroll + modern UI wala full project bana ke de sakta hoon (resume level 🔥)

Saturday, 4 April 2026

graph neural nw ke sath work ke liye

 https://chatgpt.com/share/69d11f52-52cc-8324-af40-0d5e8ab1af3c



ye kaggle ka data 

https://www.kaggle.com/competitions/openaimer26-1/data

Tuesday, 31 March 2026

lstm

 isko chagpt dekh le like chat chi hui hai 

https://chatgpt.com/share/69cbe7fb-a594-8323-8d92-2efca81bf344

Wednesday, 4 March 2026

conda env

 pip freeze > requirement.txt



if like current env m download chahe conda ya kuch bhi pip se toh if current env base toh useme if conda toh usme ho jayega 

python -m pip install flask


3. if like pip se install and check akunse elemt 

pip list 


4. if conda env mein kya kya conda list ye genrally jo apke conda mein pip se ya 

conda install flask -> aise use karke bhi jo sinstall dono




5. if conda use conda install use kar sakte ho 

6. to remove a env : conda env remove -n flask




7.   how to properly install conda env 

conda config --add channels defaults

conda config --set channel_priority strict


conda create -n flask python=3.10

🔥 FIX 3: Check conda working properly

conda info

Agar error aaye → conda properly setup nahi hai


Tuesday, 3 March 2026

java command u may want to remember


1.  String str = "I love Java";


System.out.println(str.startsWith("love", 2)); // true

Kyuki index 2 se "love" start ho raha hai.




2. i = code.indexOf("]]>", j);

Iska matlab:

👉 String code ke andar " ]]> " substring ko search karo
👉 Searching index j se start karo
👉 Jo index mile, use variable i mein store karo

Hello

page bana jisse har section pe naya page aa jaye

 Samajh gaya bhai — tu “scroll pe next section / page jaisa feel” wali website banana chahta hai (like Apple, landing pages, etc.). Isko bo...