forked from Haimantika/GitHub-roast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a button/link for inviting users to contribute Haimantika#8
- Loading branch information
1 parent
8d5ae73
commit 9eeb946
Showing
2 changed files
with
105 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>GitHub Roast App</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="style.css" /> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script> | ||
|
||
</head> | ||
<body> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Roast my GitHub profile!</h1> | ||
<div class="input-group"> | ||
<input type="text" id="username" placeholder="Enter GitHub Username" aria-label="GitHub Username"> | ||
<button onclick="getRoast()" class="btn">Roast!</button> | ||
</div> | ||
<div id="roastWrapper"> | ||
<p id="roastOutput" class="roast-output"></p> | ||
<p class="createdby">created by https://github-roast.up.railway.app</p> | ||
</div> | ||
|
||
<button onclick="saveRoast()" class="btn">Save</button> | ||
<h1>Roast my GitHub profile!</h1> | ||
<div class="input-group"> | ||
<input | ||
type="text" | ||
id="username" | ||
placeholder="Enter GitHub Username" | ||
aria-label="GitHub Username" | ||
/> | ||
<button onclick="getRoast()" class="btn">Roast!</button> | ||
</div> | ||
<div id="roastWrapper"> | ||
<p id="roastOutput" class="roast-output"></p> | ||
<p class="createdby">created by https://github-roast.up.railway.app</p> | ||
</div> | ||
|
||
<button onclick="saveRoast()" class="btn">Save</button> | ||
</div> | ||
<a class="contribute" href="https://github.com/Haimantika/GitHub-roast"> | ||
This project is open source, you can contribute | ||
</a> | ||
|
||
<script src="app.js"></script> | ||
</body> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,116 @@ | ||
body { | ||
font-family: 'Arial', sans-serif; | ||
background-color: #f0f4f8; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
font-family: "Arial", sans-serif; | ||
background-color: #f0f4f8; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
text-align: center; | ||
background: white; | ||
padding: 2rem; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 6px rgba(0,0,0,0.1); | ||
width: 90%; | ||
max-width: 600px; | ||
text-align: center; | ||
background: white; | ||
padding: 2rem; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
width: 90%; | ||
max-width: 600px; | ||
} | ||
|
||
h1 { | ||
color: #333; | ||
margin-bottom: 2rem; | ||
color: #333; | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.input-group { | ||
margin-bottom: 1rem; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
input[type="text"] { | ||
padding: 10px; | ||
font-size: 16px; | ||
border: 2px solid #ccc; | ||
border-radius: 4px; | ||
width: calc(100% - 110px); | ||
margin-right: 10px; | ||
padding: 10px; | ||
font-size: 16px; | ||
border: 2px solid #ccc; | ||
border-radius: 4px; | ||
width: calc(100% - 110px); | ||
margin-right: 10px; | ||
} | ||
|
||
.btn { | ||
padding: 10px 20px; | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
margin: 10px 0px 0px 0px; | ||
padding: 10px 20px; | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
margin: 10px 0px 0px 0px; | ||
} | ||
|
||
#roastWrapper{ | ||
padding: 10px; | ||
color: #007bff; | ||
text-align: right; | ||
#roastWrapper { | ||
padding: 10px; | ||
color: #007bff; | ||
text-align: right; | ||
} | ||
|
||
.createdby{ | ||
text-align: right; | ||
.createdby { | ||
text-align: right; | ||
} | ||
.btn:hover { | ||
background-color: #0056b3; | ||
background-color: #0056b3; | ||
} | ||
|
||
.roast-output { | ||
margin-top: 20px; | ||
padding: 10px; | ||
background-color: #f8f9fa; | ||
border-left: 3px solid #007bff; | ||
color: #333; | ||
text-align: left; | ||
margin-top: 20px; | ||
padding: 10px; | ||
background-color: #f8f9fa; | ||
border-left: 3px solid #007bff; | ||
color: #333; | ||
text-align: left; | ||
} | ||
|
||
input, button { | ||
height: 50px; | ||
vertical-align: middle; | ||
input, | ||
button { | ||
height: 50px; | ||
vertical-align: middle; | ||
} | ||
.login-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
text-align: center; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
text-align: center; | ||
} | ||
|
||
.login-button { | ||
background-color: #2ea44f; | ||
color: white; | ||
padding: 10px 15px; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
font-size: 18px; | ||
background-color: #2ea44f; | ||
color: white; | ||
padding: 10px 15px; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
font-size: 18px; | ||
} | ||
|
||
.login-button:hover { | ||
background-color: #2f73f1; | ||
background-color: #2f73f1; | ||
} | ||
|
||
|
||
.contribute { | ||
padding: 10px 20px; | ||
font-size: 20px; | ||
color: white; | ||
background-color: #007bff; | ||
border-radius: 5px; | ||
text-align: center; | ||
text-decoration: none; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
margin-top: 5rem; | ||
} | ||
|
||
.contribute:hover { | ||
background-color: #0056b3; | ||
} |