TGViewer
Channel Public Channel
Html and Css & Jsآموزش

Html and Css & Jsآموزش

@htmlcss_channels

ادمین :
@Maryam3771


تعرفه تبلیغات:
https://t.me/alloadv/822
Subscribers
23.1K
Photos
580
Videos
278
Links
361

Showing posts older than #2273 · Back to latest

Older Posts 19 shown
Post #2271 2.03K
🤔 Advanced Front-End Development Skills

🔹 1. Responsive Design
Why: Your website should look great on mobile, tablet, and desktop.
Learn:
⦁ Media Queries
⦁ Flexbox
⦁ CSS Grid

Example (Flexbox Layout):
 {
display: flex;
justify-content: space-between;
}

Example (Media Query):
@media (max-width: 600px) {.container {
flex-direction: column;
}
}


🔹 2. CSS Frameworks
Why: Pre-built styles save time and help maintain consistency.

Bootstrap Example:
<button class="btn btn-success">Subscribe</button>

Tailwind CSS Example:
<button class="bg-green-500 text-white px-4 py-2 rounded">Subscribe</button>


🔹 3. JavaScript Libraries (jQuery Basics)
Why: Simplifies DOM manipulation and AJAX requests (still useful in legacy projects).

Example (Hide Element):
<button id="btn">Hide</button>
<p id="text">Hello World</p>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$("#btn").click(function() {
$("#text").hide();
});
</script>


🔹 4. Form Validation with JavaScript
Why: Ensure users enter correct data before submission.

Example:
<form onsubmit="return validateForm()">
<input type="email" id="email" placeholder="Email">
<button type="submit">Submit</button>
</form>

<script>
function validateForm() {
const email = document.getElementById("email").value;
if (email === "") {
alert("Email is required");
return false;
}
}
</script>


🔹 5. Dynamic DOM Manipulation
Why: Add interactivity (like toggling dark mode, modals, menus).

Dark Mode Example:
<button onclick="toggleTheme()">Toggle Dark Mode</button>

<script>
function toggleTheme() {
document.body.classList.toggle("dark-mode");
}
</script>
<style>.dark-mode {
background-color: #111;
color: #fff;
}
</style>


🔹 6. Performance Optimization Tips
⦁ Compress images (use WebP)
⦁ Minify CSS/JS
⦁ Lazy load images
⦁ Use fewer fonts
⦁ Avoid blocking scripts in <head>

📌 Mini Project Ideas to Practice:
⦁ Responsive landing page (Bootstrap/Tailwind)
⦁ Toggle dark/light theme
⦁ Newsletter signup form with validation
⦁ Mobile menu toggle with JavaScript


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 4
  • 🔥 1
Post #2268 1.87K
👉 How to Build a Personal Portfolio Website

This project shows your skills, boosts your resume, and helps you stand out. Follow these steps:

✅ Setup Your Environment
• Install VS Code
• Create a folder named portfolio
• Add index.html, style.css, and script.js

✅ Create the HTML Structure (index.html)

html
<!DOCTYPE html>
<html>
<head>
<title>Your Name</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Your Name</h1>
<nav>
<a href="#about">About</a>
<a href="#projects">Projects</a>
<a href="#contact">Contact</a>
</nav>
</header>

<section id="about">
<h2>About Me</h2>
<p>Short intro, skills, and goals</p>
</section>

<section id="projects">
<h2>Projects</h2>
<div class="project">Project 1</div>
<div class="project">Project 2</div>
</section>

<section id="contact">
<h2>Contact</h2>
<p>Email: your@email.com</p>
</section>

<footer>© 2025 Your Name</footer>
</body>
</html>


✅ Add CSS Styling (style.css)

css
body {
font-family: sans-serif;
margin: 0;
padding: 0;
background: #f5f5f5;
color: #333;
}

header {
background: #222;
color: white;
padding: 1rem;
text-align: center;
}

nav a {
margin: 0 1rem;
color: white;
text-decoration: none;
}

section {
padding: 2rem;
}

.project {
background: white;
padding: 1rem;
margin: 1rem 0;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

footer {
text-align: center;
padding: 1rem;
background: #eee;
}


✅ Add Interactivity (Optional - script.js)
• Add smooth scroll, dark mode toggle, or animations if needed

✅ Host Your Site
• Push code to GitHub
• Deploy with Netlify or Vercel (connect repo, click deploy)

✅ Bonus Improvements
• Make it mobile responsive (media queries)
• Add a profile photo and social links
• Use icons (Font Awesome)


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 2
  • 🔥 1
Post #2266 2.04K
SVG Animation


This is an SVG image animated in SCSS

👉 code


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 4
Post #2251 2.87K
CSS Toggle Switch | HTML CSS JavaScript


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • 👍 3
Post #2247 2.72K
Post #2244 2.42K
⭐️StyleX - Open Source Styling Library for CSS at Scale!

Facebook introduced StyleX, a styling system that combines the convenience of CSS-in-JS with the performance of static CSS. 
It generates collision-resistant atomic styles and allows you to write expressive, type-safe, and super-fast code.

StyleX is already used in all of the company's products.

The main idea is to compile styles at build time so that the CSS code does not grow with the application.

👉 Read more: https://engineering.fb.com/2025/11/11/web/stylex-a-styling-library-for-css-at-scale 

⭐️ Github: https://github.com/facebook/stylex


💎@Htmlcss_channels
Post #2242 2.26K
⭐️این ریپوی یکی از کامل‌ترین مجموعه‌های منابع مربوط به Micro Frontends را یک‌جا جمع کرده؛ از وب‌سایت‌ها و بلاگ‌ها گرفته تا ویدیوها، کتاب‌ها و دوره‌ها.

اگر قصد داری معماری میکروفرانت اند را اصولی و مرحله‌به‌مرحله یاد بگیری، این لیست می‌تواند یک نقطه شروع محکم و قابل اتکا باشد.

🔗 لینک ریپو:
https://github.com/billyjov/microfrontend-resources

💎@Htmlcss_channels
  • ❤ 1
Post #2237 2.49K
⭐️ 15 افزونه مفید کروم برای توسعه‌دهندگان وبسایت

ابزارهای موجود در این مقاله به ساده‌سازی و سرعت بخشیدن به فرآیند توسعه و آزمایش front-end کمک می‌کنند.

- از استخراج سبک های CSS از وب سایت ها گرفته تا تجزیه و تحلیل و بهینه سازی SEO.

https://proglib.io/p/15-superpoleznyh-plaginov-chrome-v-pomoshch-frontenderu-2024-09-20

💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 1
Post #2236 2.28K
Shoe Swap

The logic for switching slides is implemented in JS. Animated in SCSS.

Code


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 5
Post #2234 2.08K
Making smooth scrolling to elements using the scrollIntoView method

JS:

const links = document.querySelectorAll('.link');

links.forEach((item) => {
item.addEventListener('click', (e) => {
e.preventDefault();

let id = item.getAttribute('href');
let formattierID = id.substring(1);
let section = document.getElementById(formattierID);

section.scrollIntoView({
behavior: 'smooth',
});
});
});



💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 2
Post #2229 2.54K
You can make the UI cleaner by reducing or removing scrollbars using the scrollbar-width property

Example of a thin scrollbar:

ul {
scrollbar-width: thin;
}


Example of a hidden scrollbar (the area remains scrollable):

.cards-container {
scrollbar-width: none;
}


Suitable for sidebars, data tables, chat panels, dashboards with lots of scrolls, carousels, touch interfaces.

As a result, the scroll works, but the UI looks neater


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 1
  • 👍 1
  • 🙏 1
Post #2222 2.4K
Light/Dark Toggle With Morphing Icon

Theme switcher. Implemented using CSS.

⤷Get code


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 2
  • 🔥 1
  • 🙏 1
Post #2215 2.49K
Color palette inspiration
🔴 🟠 🟡 🟢 🔵 🟣

Curated color palette ideas displayed in an example website.

Have a play 👇
http://www.happyhues.co


💎 @Htmlcss_channels | #css #JavaScript #HTML
  • ❤ 3
  • 🙏 1
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →