Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 7 additions & 14 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
.app {
max-width: 640px;
/* max-width: 640px; */
margin: 0 auto;
padding: 3rem 1.5rem;
text-align: center;
flex: 1;
}
background:linear-gradient(270deg,pink,rgb(192, 97, 113));

.welcome h1 {
font-size: 2rem;
margin-bottom: 1rem;
}

.welcome p {
line-height: 1.6;
color: #444;
}

.welcome code {
background: #f3f3f3;
padding: 0.1rem 0.4rem;
border-radius: 4px;
}

/* Dark Mode Toggle */
.dark-toggle {
Expand Down Expand Up @@ -191,6 +179,11 @@ html[data-theme="dark"] .welcome p {
text-decoration: none;
}


.navbar-brand img{
width: 20px;
height: 20px;
}
.navbar-dot {
width: 8px;
height: 8px;
Expand Down
9 changes: 5 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import Welcome from "./components/Welcome.jsx";
import Welcome from "./components/Welcome/Welcome.jsx";
import "./App.css";
import { Route, Routes } from "react-router-dom";
import ErrorPage from "./components/ErrorPage.jsx";
import Footer from "./components/Footer.jsx";
import Navbar from "./components/Navbar.jsx";
import Home from "./pages/Home/Home.jsx";

function App() {
return (
<>
<Navbar/>
<Navbar />
<Routes>
<Route
path="/"
element={
<>
<div className="app">
<Welcome />
<Home />
</div>
<Footer />
</>
Expand All @@ -28,4 +29,4 @@ function App() {
);
}

export default App;
export default App;
Binary file added src/assets/openSource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/physics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions src/components/Contribute/Contribute.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.contribute {
display: flex;
align-items: center;
flex-direction: column;
gap: 20px;
width: 100%;
max-width: 1100px;
margin: 30px ;
padding: 40px 20px;
background: linear-gradient(135deg, #7c3aed, #ec4899);
border-radius: 10px;
color: white;
box-sizing: border-box;
text-align: center;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* Header Text Styling */
.contribute h2 {
font-size: 25px;
margin: 5px;
font-weight: 600;
color: #14010a;
}

.contribute p {
margin: 10px 3px;
opacity: 0.9;
}

/* Card Grid */
.contribute-steps {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
}

/* Individual Card Styling */
.step {
padding: 10px;
background: #517ec8;
/* border: 1px solid rgba(255, 255, 255, 0.25); */
border-radius: 14px;
/* backdrop-filter: blur(10px); */
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
transition: transform 0.2s ease-in-out;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.step:hover {
transform: translateY(-4px);
background: rgba(255, 255, 255, 0.22);
}

.step p {
font-size: 0.9rem;
line-height: 1.5;


}
.gitcommand{
/* border: 1px solid ; */
background-color: black;
color:white;
padding: 10px 30px;
border-radius: 20px;
}
52 changes: 52 additions & 0 deletions src/components/Contribute/Contribute.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React from 'react'
import './Contribute.css'

const Contribute = () => {
return (
<div className='contribute'>

<div>
<h1>How to Contribute</h1>
<p> 3 simple steps to make your first PR</p>

</div>

<div className="contribute-steps">

<div className='step'>

<h2>Fork the repo</h2>
<p>Click Fork on Github.
Clone your copy locally and set up the project.
</p>
<p className='gitcommand'>git clone your-fork-url</p>

</div>
<div className='step'>

<h2>Make Your Changes</h2>
<p>Create a New Branch,add a component, fix a Bug, or Improve the UI
</p>
<p className='gitcommand'>git checkout -b feature/my-change</p>

</div>
<div className='step'>

<h2>Submit a PR</h2>
<p>Push your branch and open a Pull request. Maintainer reviews and merges!
</p>
<p className='gitcommand'>git push origin feature/my-change</p>

</div>
</div>






</div>
)
}

export default Contribute
3 changes: 2 additions & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { NavLink } from "react-router-dom";
import reactLogo from '../assets/physics.png';

function Navbar() {
return (
<header className="navbar">
<div className="navbar-content">
<NavLink to="/" className="navbar-brand">
<span className="navbar-dot" />
<img src={reactLogo}/>
React Open Source
</NavLink>

Expand Down
61 changes: 61 additions & 0 deletions src/components/Welcome/Welcome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

.welcome{
display: flex;
flex-direction: column;
align-items: center;
gap:10px;
background: linear-gradient(135deg, #7c3aed, #ec4899);
padding: 40px;
border-radius: 10px;
width:100%;
}


/* existing code */

.welcome h1 {
font-size: 2rem;
margin-bottom: 1rem;
color: white;

}

.welcome p {
line-height: 1.6;
color: #fff;
}

.welcome code {
background: #2c6717;
padding: 0.1rem 0.4rem;
border-radius: 4px;
}

/* end of existing code */

.welcome-badge {
display: flex;
align-items: center;
gap: 8px;
width: fit-content;
padding: 8px 25px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 20px;
font-size: 16px;
font-weight: 500;

}

.welcome-badge img {
width: 18px;
height: 18px;
}

.welcome-title{

background: linear-gradient(90deg, #90dfc8, #cae91c);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

}
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import './Welcome.css'
import openSource from '../../assets/openSource.png';



function Welcome() {
return (
<section className="welcome">
<h1>Welcome to React Open Source Starter</h1>
<p className='welcome-badge'><img src={openSource}/>Open Source Project - Made for Beginners</p>
<h1>Welcome to <span className='welcome-title'>React Open Source Starter</span></h1>

<p>
This project is specially created to help new contributors make
Expand Down
8 changes: 5 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

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

body {
margin: 0;
background-color: #ffffff;
color: #213547;

background-color: #0f172a;
color: #c084fc;
transition: background 0.3s ease-in, color 0.3s ease-in;
}

Expand Down
9 changes: 9 additions & 0 deletions src/pages/Home/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.home{
background: rgb(245, 234, 234);
padding: 50px;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
gap:20px;
}
Loading