Skip to content

Commit 3eea04f

Browse files
committed
Create website using Vite
1 parent c9b99f3 commit 3eea04f

8 files changed

Lines changed: 407 additions & 0 deletions

File tree

web/.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Build output
2+
dist/
3+
4+
### VisualStudioCode ###
5+
.vscode/*
6+
!.vscode/settings.json
7+
!.vscode/tasks.json
8+
!.vscode/launch.json
9+
!.vscode/extensions.json
10+
!.vscode/*.code-snippets
11+
12+
13+
### Node ###
14+
# Logs
15+
logs
16+
*.log
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
lerna-debug.log*
21+
.pnpm-debug.log*
22+
23+
# Dependency directories
24+
node_modules/
25+
26+
# TypeScript cache
27+
*.tsbuildinfo
28+
29+
# Optional npm cache directory
30+
.npm
31+
32+
# Optional eslint cache
33+
.eslintcache
34+
35+
# Optional stylelint cache
36+
.stylelintcache
37+
38+
### macOS ###
39+
.DS_Store

web/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>gitattributes.io - Create .gitattributes file for your project</title>
8+
<!-- <link rel="stylesheet" type="text/css" href="./lib/bootswatch-dist/css/bootstrap.min.css"> -->
9+
<link rel="stylesheet" type="text/css" href="./site.css">
10+
</head>
11+
<body>
12+
<div class="container body-content">
13+
<nav class="navbar navbar-inverse">
14+
<div class="container-fluid">
15+
<div class="navbar-header">
16+
<a class="navbar-brand" href="#">.gitattributes</a>
17+
</div>
18+
</div>
19+
</nav>
20+
<blockquote>
21+
<p>Create <span class="text-info">.gitattributes</span> file for your project.</p>
22+
</blockquote>
23+
24+
<div class="input-group">
25+
<input type="text" id="types">
26+
<div class="input-group-btn">
27+
<button id="btnGenerate" type="button" class="btn btn-info">Generate</button>
28+
<button id="btnDownload" type="button" class="btn btn-info">Download</button>
29+
</div>
30+
</div>
31+
32+
<script id="ignores-data" type="application/json">
33+
[{"id":"actionscript","name":"ActionScript"},{"id":"ada","name":"Ada"},{"id":"ballerina","name":"Ballerina"},{"id":"c++","name":"C++"},{"id":"common","name":"Common"},{"id":"csharp","name":"CSharp"},{"id":"delphi","name":"Delphi"},{"id":"devcontainer","name":"DevContainer"},{"id":"drupal","name":"Drupal"},{"id":"elixir","name":"Elixir"},{"id":"flutter","name":"Flutter"},{"id":"fortran","name":"Fortran"},{"id":"fountain","name":"Fountain"},{"id":"fsharp","name":"FSharp"},{"id":"go","name":"Go"},{"id":"java","name":"Java"},{"id":"lua","name":"Lua"},{"id":"markdown","name":"Markdown"},{"id":"mathematica","name":"Mathematica"},{"id":"matlab","name":"Matlab"},{"id":"microsoftshell","name":"MicrosoftShell"},{"id":"objectivec","name":"ObjectiveC"},{"id":"pascal","name":"Pascal"},{"id":"perl","name":"Perl"},{"id":"powershell","name":"PowerShell"},{"id":"python","name":"Python"},{"id":"r","name":"R"},{"id":"rails","name":"Rails"},{"id":"rust","name":"Rust"},{"id":"servoy","name":"Servoy"},{"id":"sql","name":"sql"},{"id":"swift","name":"Swift"},{"id":"tinacms","name":"TinaCMS"},{"id":"unity","name":"Unity"},{"id":"vim","name":"Vim"},{"id":"visualstudio","name":"VisualStudio"},{"id":"visualstudiocode","name":"VisualStudioCode"},{"id":"web","name":"Web"}]
34+
</script>
35+
<script src="./site.js" type="module"></script>
36+
37+
</div>
38+
</body>
39+
</html>

web/package-lock.json

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

web/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "gitattributes-web",
3+
"private": true,
4+
"version": "2.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@selectize/selectize": "^0.15.2",
13+
"bootswatch": "3.3.6",
14+
"jquery": "^3.7.0",
15+
"modern-normalize": "^2.0.0"
16+
},
17+
"devDependencies": {
18+
"vite": "^4.4.7"
19+
}
20+
}

web/public/favicon.ico

31.3 KB
Binary file not shown.

web/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

web/site.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
body {
2+
padding-top: 20px;
3+
padding-bottom: 20px;
4+
}
5+
6+
.body-content {
7+
padding-left: 15px;
8+
padding-right: 15px;
9+
}
10+
11+
.form-control {
12+
border: 1px solid #dfa0ea;
13+
padding: 3px 6px;
14+
box-shadow: none; /*inset 0 -1px 0 #dfa0ea;*/
15+
}
16+
17+
.selectize-input.focus {
18+
box-shadow: none; /* inset 1px 1px 0 #dfa0ea;*/
19+
}
20+
21+
.selectize-control.multi .selectize-input.has-items {
22+
padding: 3px 4px;
23+
}
24+
25+
button.dropdown-toggle {
26+
padding: 6px 12px;
27+
}

0 commit comments

Comments
 (0)