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

Newui in reactjs tailwindcss #512

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
27 changes: 0 additions & 27 deletions CONTRIBUTING.md

This file was deleted.

Binary file removed Desktop - 1.png
Binary file not shown.
Binary file removed books-stack-of-three.png
Binary file not shown.
4 changes: 1 addition & 3 deletions booksCollection.json → booksCollection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"Sheet 1": [
export const books= [
{
"id": "1",
"bookName": "Introduction to Programming in Java: An Interdisciplinary Approach",
Expand Down Expand Up @@ -1842,4 +1841,3 @@
"bookLink": "https://www.pdfdrive.com/the-success-principles-tm-how-to-get-from-where-you-are-to-where-you-want-to-be-e185588523.html"
}
]
}
64 changes: 10 additions & 54 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,57 +1,13 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/books-stack-of-three.png" />
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Books Collection</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- CSS -->
<link rel="stylesheet" href="style.css">
<style>
*{
padding:0px;
margin:0px;}
table {
border-collapse:collapse;
table-layout:fixed;
width:100%

}
table td {
padding: 5px;
width:100px;
word-wrap:break-word;
}
</style>
</head>
<body>
<div class="container mt-5">
<h2 class="text-center">Books Collection</h2>
<p class="lead text-center">Check Our Repo @ <a href="https://github.com/MLSC-BSOITR/Books-Collection">blog-list</a></p>
<div class="table-responsive">
<table class=" mx-auto table table-hover table table-warning ">
<thead>
<tr>
<th>Book Name</th>
<th>Author</th>
<th>Link</th>
</tr>
</thead>
<tbody id="data-output">
</tbody>
</table>
</div>
</div>
<div class="mt-4 text-center container-fluid h-100">Created with &#10084; by <a href="https://github.com/MLSC-BSOITR/Books-Collection">MLSC-BSOITR Repositry</a><p>

</div>

<!-- Script.js -->
<script src="script.js"></script>
<!-- Bootstarp Links -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</body>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading