mithunparambath commited on
Commit
81e7250
·
verified ·
1 Parent(s): 56bfac5

Promote version c790d5d to main

Browse files

Promoted commit c790d5d3ba5470aaf585049973d1d44b9b6d766b to main branch

Files changed (3) hide show
  1. index.html +4 -17
  2. script.js +2 -30
  3. style.css +1 -30
index.html CHANGED
@@ -112,22 +112,8 @@
112
  <h2 class="text-4xl md:text-5xl font-bold mb-4 text-gray-900">Advanced Technologies</h2>
113
  <div class="w-24 h-1 bg-orange-500 mx-auto"></div>
114
  </div>
115
-
116
- <!-- Technology Tabs -->
117
- <div class="flex justify-center mb-12">
118
- <div class="bg-gray-100 rounded-xl p-1">
119
- <button class="technology-tab px-6 py-3 rounded-lg font-semibold transition-all duration-300 bg-orange-500 text-white" data-tab="mocvd">
120
- MOCVD Systems
121
- </button>
122
- <button class="technology-tab px-6 py-3 rounded-lg font-semibold transition-all duration-300 text-gray-600" data-tab="pvd">
123
- PVD Systems
124
- </button>
125
- </div>
126
-
127
- <div class="technology-content">
128
  <!-- MOCVD Card -->
129
- <div class="technology-panel active" id="mocvd-panel">
130
- <!-- MOCVD Card -->
131
  <div class="bg-white rounded-2xl p-8 border border-gray-200 hover:border-orange-500 transition-all duration-300 shadow-md hover:shadow-lg">
132
  <div class="flex items-center gap-4 mb-6">
133
  <div class="w-12 h-12 bg-orange-500 rounded-lg flex items-center justify-center">
@@ -162,9 +148,10 @@
162
  Download Product Brochure
163
  </a>
164
  </div>
 
165
  <!-- PVD Card -->
166
- <div class="technology-panel" id="pvd-panel">
167
- <div class="flex items-center gap-4 mb-6">
168
  <div class="w-12 h-12 bg-orange-500 rounded-lg flex items-center justify-center">
169
  <i data-feather="zap" class="text-white"></i>
170
  </div>
 
112
  <h2 class="text-4xl md:text-5xl font-bold mb-4 text-gray-900">Advanced Technologies</h2>
113
  <div class="w-24 h-1 bg-orange-500 mx-auto"></div>
114
  </div>
115
+ <div class="grid md:grid-cols-2 gap-12">
 
 
 
 
 
 
 
 
 
 
 
 
116
  <!-- MOCVD Card -->
 
 
117
  <div class="bg-white rounded-2xl p-8 border border-gray-200 hover:border-orange-500 transition-all duration-300 shadow-md hover:shadow-lg">
118
  <div class="flex items-center gap-4 mb-6">
119
  <div class="w-12 h-12 bg-orange-500 rounded-lg flex items-center justify-center">
 
148
  Download Product Brochure
149
  </a>
150
  </div>
151
+
152
  <!-- PVD Card -->
153
+ <div class="bg-white rounded-2xl p-8 border border-gray-200 hover:border-orange-500 transition-all duration-300 shadow-md hover:shadow-lg">
154
+ <div class="flex items-center gap-4 mb-6">
155
  <div class="w-12 h-12 bg-orange-500 rounded-lg flex items-center justify-center">
156
  <i data-feather="zap" class="text-white"></i>
157
  </div>
script.js CHANGED
@@ -1,12 +1,11 @@
1
-
2
  // Main JavaScript file for NanoMatter Technologies
3
 
4
  document.addEventListener('DOMContentLoaded', function() {
5
  // Initialize all components and animations
6
  initScrollAnimations();
7
  initFormHandling();
8
- initTechnologyTabs();
9
  });
 
10
  function initScrollAnimations() {
11
  // Add intersection observer for scroll animations
12
  const observerOptions = {
@@ -56,37 +55,10 @@ function initFormHandling() {
56
  });
57
  }
58
  }
59
- // Technology Tabs Functionality
60
- function initTechnologyTabs() {
61
- const tabs = document.querySelectorAll('.technology-tab');
62
- const panels = document.querySelectorAll('.technology-panel');
63
-
64
- tabs.forEach(tab => {
65
- tab.addEventListener('click', function() {
66
- const targetPanel = this.getAttribute('data-tab');
67
-
68
- // Update active tab
69
- tabs.forEach(t => {
70
- t.classList.remove('bg-orange-500', 'text-white');
71
- t.classList.add('text-gray-600');
72
- });
73
- this.classList.add('bg-orange-500', 'text-white');
74
- this.classList.remove('text-gray-600');
75
-
76
- // Show target panel, hide others
77
- panels.forEach(panel => {
78
- panel.classList.remove('active');
79
- if (panel.id === `${targetPanel}-panel`) {
80
- panel.classList.add('active');
81
- }
82
- });
83
- });
84
- });
85
- }
86
 
87
  // Smooth scrolling for anchor links
88
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
89
- anchor.addEventListener('click', function (e) {
90
  e.preventDefault();
91
  const target = document.querySelector(this.getAttribute('href'));
92
  if (target) {
 
 
1
  // Main JavaScript file for NanoMatter Technologies
2
 
3
  document.addEventListener('DOMContentLoaded', function() {
4
  // Initialize all components and animations
5
  initScrollAnimations();
6
  initFormHandling();
 
7
  });
8
+
9
  function initScrollAnimations() {
10
  // Add intersection observer for scroll animations
11
  const observerOptions = {
 
55
  });
56
  }
57
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  // Smooth scrolling for anchor links
60
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
61
+ anchor.addEventListener('click', function (e) {
62
  e.preventDefault();
63
  const target = document.querySelector(this.getAttribute('href'));
64
  if (target) {
style.css CHANGED
@@ -22,36 +22,7 @@ p {
22
  border: 1px solid lightgray;
23
  border-radius: 16px;
24
  }
 
25
  .card p:last-child {
26
  margin-bottom: 0;
27
  }
28
-
29
- /* Technology Tabs Styles */
30
- .technology-tab {
31
- transition: all 0.3s ease;
32
- }
33
-
34
- .technology-panel {
35
- display: none;
36
- opacity: 0;
37
- transform: translateY(20px);
38
- transition: all 0.5s ease;
39
- }
40
-
41
- .technology-panel.active {
42
- display: block;
43
- opacity: 1;
44
- transform: translateY(0);
45
- }
46
-
47
- /* Grid layout for active panel */
48
- .technology-panel.active {
49
- display: grid;
50
- grid-template-columns: 1fr;
51
- gap: 2rem;
52
- }
53
-
54
- @media (min-width: 768px) {
55
- .technology-panel.active {
56
- grid-template-columns: 1fr 1fr;
57
- }
 
22
  border: 1px solid lightgray;
23
  border-radius: 16px;
24
  }
25
+
26
  .card p:last-child {
27
  margin-bottom: 0;
28
  }