Skip to content

Commit cf60c4c

Browse files
idk update
1 parent a9b3d80 commit cf60c4c

File tree

22 files changed

+304
-171
lines changed

22 files changed

+304
-171
lines changed

client/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
VITE_BACKEND_URL=https://v-test-vkux.onrender.com
1+
# VITE_BACKEND_URL=https://v-test-vkux.onrender.com
2+
VITE_BACKEND_URL=https://5000-idx-vision-verse-1738842878418.cluster-qpa6grkipzc64wfjrbr3hsdma2.cloudworkstations.dev
23
# VITE_BACKEND_URL=https://5000-idx-backendofvision-1730719510987.cluster-bec2e4635ng44w7ed22sa22hes.cloudworkstations.dev
34

45
VITE_STABLE_DEFFUSION_API=sk-GheTiMlU4MsYXd0aw3nW3mNSNH9pdKHtwRpQpKHNhyuZs1mW

client/src/Assets/Component/Home_Page/Firstcontainer.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Firstcontainer = ({ Heightsize }) => {
66
<Box sx={{ color: "white", position: "relative", height: '90vh', overflow: 'hidden' }}>
77
<Grid container>
88
<Grid item xs={12}>
9-
<video autoPlay loop muted style={{ /*height: Heightsize*/ height: '100%', width: "100%", objectFit: "cover", zIndex: 0 }}>
9+
<video autoPlay loop muted style={{ height: '100%', width: "100%", objectFit: "cover", zIndex: 0 }}>
1010
<source src="/react41.mp4" type="video/mp4" />
1111
</video>
1212

@@ -20,12 +20,12 @@ const Firstcontainer = ({ Heightsize }) => {
2020
width: "60%",
2121
fontWeight:"700",
2222
fontSize:"3.5rem",
23-
lineHeight: 1.2,
23+
lineHeight: 1.1,
2424
}}
2525

2626
>
2727
Activating humanity's potential through generative AI
28-
<Typography sx={{mt:"30px", width: "50%", fontSize:"1.9rem", fontWeight:"500"}}>
28+
<Typography sx={{mt:"30px", width: "50%", fontSize:"1.9rem", fontWeight:"500", lineHeight: 1,}}>
2929
Open models in every modality,
3030
for everyone, everywhere.
3131
</Typography>

client/src/Assets/Component/Home_Page/Secondcontainer.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const Secondcontainer = ({ Header, Header_summary, Header_url, Direaction, Heade
1818
<Box
1919
ref={ref}
2020
sx={{
21-
// backgroundColor: 'black',
21+
backgroundColor: 'black',
2222
padding:'50px',
23-
margin:'100px 0',
23+
margin:'20px 0',
2424
width: '100%',
2525
// padding: '20px',
2626
height: '60vh',
@@ -42,7 +42,7 @@ const Secondcontainer = ({ Header, Header_summary, Header_url, Direaction, Heade
4242
objectFit: 'cover',
4343
borderRadius:'20px',
4444
opacity: inView ? 1 : 0,
45-
transform: inView ? 'translateX(0)' : `translateX(${show ? '20%' : '-10%'})`,
45+
transform: inView ? 'scale(1)' : `scale(${show ? '30%' : '0%'})`,
4646
transition: 'opacity 0.5s ease, transform 0.5s ease',
4747
}}
4848
/>
@@ -57,7 +57,7 @@ const Secondcontainer = ({ Header, Header_summary, Header_url, Direaction, Heade
5757
alignItems: 'center',
5858
justifyContent: 'center',
5959
opacity: inView ? 1 : 0,
60-
transition: 'opacity 0.5s ease',
60+
transition: 'opacity 2s ease',
6161
// border:"10px solid black"
6262
}}
6363
>

client/src/Assets/Component/Navbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Navbar = () => {
6262

6363
return (
6464
<Box sx={{flexGrow: 1 }}>
65-
<AppBar position='static' sx={{ background: 'linear-gradient(135deg, rgba(48,48,48, 0.9), rgba(48,48,48, 0.7))', padding:'0 20px' }}>
65+
<AppBar position='static' sx={{ justifyContent:"center" ,background: 'linear-gradient(135deg, rgba(48,48,48, 0.9), rgba(48,48,48, 0.7))', padding:'0 20px' }}>
6666
{/* <Link to="/Test">Hello</Link> */}
6767
<Toolbar>
6868
{userData ?
@@ -71,7 +71,7 @@ const Navbar = () => {
7171
</IconButton> : ""}
7272

7373
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
74-
<img src="/vite.svg" alt="LOGO" style={{ marginTop: '10px' }} />
74+
<img src="/vite.svg" alt="LOGO" style={{ marginTop: '0' }} />
7575
</Typography>
7676

7777
<IconButton variant="h6" sx={{ cursor: "pointer", fontSize: "40px", color: Theme.white[100] }} component={Link} to="/home">

client/src/Assets/Page_Component/Video_Generation/Video_Input_Section.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const Video_Input_Section = ({ handleChange, handleSubmit, sliderValues, sliderL
5454
)}
5555

5656
{sliderValues && Object.keys(sliderValues).map((key) => (
57-
<Box key={key} sx={{ marginBottom: '20px', textAlign: 'left', lineHeight:"0.1px" }}>
58-
<Typography sx={{textTransform:"upperCase", color: Theme.white[100], fontSize: '16px', fontWeight: 'bold', marginBottom: '5px', }}>
57+
<Box key={key} sx={{ marginBottom: '20px', textAlign: 'left', lineHeight:"0.1px", marginTop:"5px" }}>
58+
<Typography sx={{textTransform:"upperCase", color: "lightgray",lineHeight:1, fontSize: '16px', fontWeight: 'bold', marginBottom: '5px', }}>
5959
{key}: {sliderValues[key]}
6060
</Typography>
6161
<Slider

server/Routes/Payment.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ router.post("/checkout", async(req, res) => {
1212
payment_method_types: ['card'],
1313
line_items: [{
1414
price_data: {
15-
currency: 'usd',
15+
currency: 'inr',
1616
product_data: {
1717
name: 'Sample Item',
1818
},
19-
unit_amount: amount , // Convert rupees to paise (Stripe uses the smallest currency unit)
20-
},
19+
unit_amount: amount * 100, // Convert rupees to paise (Stripe uses the smallest currency unit)
20+
},
2121
quantity: 1,
2222
}],
2323
mode: 'payment',
2424
success_url: 'http://localhost:3002/profile/home', // Redirect to this URL after successful payment
2525
cancel_url: 'http://localhost:3002/profile/bill',
26+
billing_address_collection: 'required', // Collect billing address
27+
shipping_address_collection: { allowed_countries: ['IN'] }, // Restrict shipping to India
28+
metadata: {
29+
customerName: "Jhon Dev", // Add customer's name
30+
customerAddress: "1234", // Add customer's address
31+
},
2632
});
2733

2834
const payment = new Payment({

server/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ const payment = require("./Routes/Payment");
99
const image = require("./Routes/Imagedat");
1010

1111
const app = express();
12-
13-
// Define the allowed origins for CORS
14-
const allowedOrigins = [
15-
'https://regal-sunshine-279c0c.netlify.app'
16-
];
17-
1812
// Middleware to handle CORS
1913
app.use(cors());
2014

server/node_modules/.bin/nodemon

Lines changed: 0 additions & 16 deletions
This file was deleted.

server/node_modules/.bin/nodemon

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/node_modules/.package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)