Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added coding plateform page #703

Merged
merged 1 commit into from
Jun 11, 2024
Merged
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
38 changes: 32 additions & 6 deletions frontend/src/pages/CodingPlateform.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
import React from 'react'
import React from "react";
import "../style/CodingPlateform.css";

const CodingPlateform = () => {
const tools = [
{ name: "CodeSandbox", description: "An online code editor and prototyping tool", link: "https://codesandbox.io/", image: "https://i.pinimg.com/564x/82/14/0e/82140ec1a4bc53413b6c9150b1e3bab3.jpg" },
{ name: "CodePen", description: "An online community for testing and showcasing user-created HTML, CSS, and JavaScript code snippets", link: "https://codepen.io/", image: "https://i.pinimg.com/564x/0c/ea/84/0cea842d30cae99ee4e5772308fddbf8.jpg" },
{ name: "JSFiddle", description: "An online IDE for web development, where users can create, test, and showcase HTML, CSS, and JavaScript code snippets", link: "https://jsfiddle.net/", image: "https://i.pinimg.com/736x/16/63/aa/1663aa377120b3ee56822fc19d851278.jpg" },
{ name: "StackBlitz", description: "An online IDE for web applications, allowing developers to create, share, and collaborate on projects in the browser", link: "https://stackblitz.com/", image: "https://i.pinimg.com/564x/12/6d/c5/126dc594c84336847f0623bc1d26c0b3.jpg" },
{ name: "Replit", description: "An online IDE for programming in multiple languages, with features like collaboration, hosting, and version control", link: "https://replit.com/", image: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/New_Replit_Logo.svg/1200px-New_Replit_Logo.svg.png" },
{ name: "JSBin", description: "An online HTML, CSS, and JavaScript code editor for web developers", link: "https://jsbin.com/", image: "https://static.jsbin.com/images/logo.png" },
{ name: "Plunker", description: "An online community for creating, collaborating on, and sharing web development projects", link: "https://plnkr.co/", image: "https://i.pinimg.com/564x/6a/0c/70/6a0c70cacbdaae750dd56bed1964b95a.jpg" },
{ name: "Glitch", description: "A community-driven platform for creating, remixing, and hosting web apps and websites", link: "https://glitch.com/", image: "https://logos-world.net/wp-content/uploads/2021/03/Glitch-Logo-2018-present.png" },
{ name: "Stack Overflow Code Snippet", description: "A feature of Stack Overflow that allows users to create, test, and share code snippets directly on the site", link: "https://stackoverflow.com/", image: "https://i.pinimg.com/564x/2e/30/2d/2e302de0ac09bc7085c45f03abc72472.jpg" },
{ name: "GitHub Gists", description: "A service provided by GitHub that allows users to share code snippets and files", link: "https://gist.github.com/", image: "https://k9982874.gallerycdn.vsassets.io/extensions/k9982874/github-gist-explorer/0.2.3/1638842316475/Microsoft.VisualStudio.Services.Icons.Default" },
];

const CodingPlatform = () => {
return (
<div>CodingPlateform</div>
)
}
<div className="coding-platform">
<h1 className="title">Coding Platforms</h1>
<div className="tools-grid">
{tools.map((tool, index) => (
<div key={index} className="tool-card">
<img src={tool.image} alt={tool.name} className="tool-image" />
<h2 className="tool-name">{tool.name}</h2>
<p className="tool-description">{tool.description}</p>
<a href={tool.link} target="_blank" rel="noopener noreferrer" className="tool-link">Visit Website</a>
</div>
))}
</div>
</div>
);
};

export default CodingPlateform
export default CodingPlatform;
85 changes: 85 additions & 0 deletions frontend/src/style/CodingPlateform.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}

.coding-platform {
text-align: center;
padding: 80px 20px;
}

.title {
font-size: 2.5rem;
margin-bottom: 20px;
color: #333;
}

.tools-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}

.tool-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
width: 300px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}

.tool-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tool-image {
width: 80px;
height: 80px;
object-fit: cover;
margin-bottom: 20px;
}

.tool-name {
font-size: 1.5rem;
margin-bottom: 10px;
color: #007bff;
}

.tool-description {
font-size: 1rem;
margin-bottom: 20px;
color: #555;
}

.tool-link {
display: inline-block;
padding: 10px 20px;
background: #007bff;
color: #fff;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s ease;
}

.tool-link:hover {
background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
.tools-grid {
flex-direction: column;
align-items: center;
}

.tool-card {
width: 90%;
}
}
Loading