Skip to content

Commit

Permalink
fas
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasank123k committed Jul 1, 2024
1 parent 69e513e commit 11e4eb0
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import LoginForm from './components/LoginForm/LoginForm';
import LoginForm1 from './components/LoginForm/LoginForm1';
import LoginForm2 from './components/LoginForm/LoginForm2';
import LoginForm3 from './components/LoginForm/LoginForm3';
import ProgressBar from './components/ProgressBar/ProgressBar';
import Template1 from './pages/Examples/Template1/Template1';
import { AuthProvider } from './context/AuthContext';

Expand Down Expand Up @@ -89,6 +90,7 @@ const App: React.FC = () => {
<Route path="/loginform1" element={<LoginForm1 />} />
<Route path="/loginform2" element={<LoginForm2 />} />
<Route path="/loginform3" element={<LoginForm3 />} />
<Route path="/progressbar" element={<ProgressBar />} />
</Routes>
<Footer></Footer>
</Router>
Expand Down
166 changes: 166 additions & 0 deletions src/components/ProgressBar/ProgressBar.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
.progressContainer {
display: flex;
justify-content: center;
margin: 20px 0;
}

.progressBar {
display: flex;
justify-content: space-between;
width: 80%;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 10px;
background-color: #f9f9f9;
}

.stepContainer {
display: flex;
flex-direction: column;
align-items: center;
width: 33%;
}

.step {
font-size: 14px;
padding: 10px 15px;
border: 2px solid #e0e0e0;
border-radius: 5px;
background-color: #f9f9f9;
margin-bottom: 5px;
transition: all 0.3s ease-in-out;
}

.step.active {
border-color: #3b82f6;
color: white;
background-color: #3b82f6;
}

.description {
font-size: 12px;
color: #555;
}

.newProgressContainer {
display: flex;
justify-content: center;
margin: 20px 0;
}

.newProgressBar {
display: flex;
justify-content: space-between;
width: 80%;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 10px;
background-color: #f9f9f9;
}

.newStep {
width: 30px;
height: 30px;
border: 2px solid #e0e0e0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: #f9f9f9;
transition: all 0.3s ease-in-out;
}

.newStep.active {
border-color: #3b82f6;
color: white;
background-color: #3b82f6;
}

.thirdProgressContainer {
display: flex;
flex-direction: column;
align-items: center;
margin: 20px 0;
}

.thirdProgressBar {
width: 80%;
height: 5px;
background-color: #e0e0e0;
border-radius: 5px;
margin-bottom: 10px;
position: relative;
}

.thirdProgress {
height: 100%;
background-color: #3b82f6;
width: 0;
border-radius: 5px;
position: absolute;
transition: width 1s ease-in-out;
}

.thirdSteps {
display: flex;
justify-content: space-between;
width: 80%;
}

.thirdStep {
font-size: 12px;
color: #555;
}

.codeBox {
margin-top: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #2d2d2d;
color: #fff;
max-height: 300px;
overflow-y: scroll;
position: relative; /* Add this line */
}

.toggleButtons {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
}

.toggleButton {
padding: 5px 10px;
cursor: pointer;
border: 1px solid #ddd;
background-color: #444;
color: #fff;
border-radius: 3px;
}

.toggleButton.active {
background-color: #3b82f6;
border-color: #3b82f6;
}

.copyButton {
padding: 5px 10px;
cursor: pointer;
border: 1px solid #ddd;
background-color: #444;
color: #fff;
border-radius: 3px;
position: absolute; /* Add this line */
top: 10px; /* Add this line */
right: 10px;
}

.heading {
margin-top: 40px;
text-align: center;
font-size: 24px;
color: #333;
}

Loading

0 comments on commit 11e4eb0

Please sign in to comment.