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

SomeChanges by Renatto #9

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
32 changes: 17 additions & 15 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ View more @ https://github.com/vinitshahdeo/
body{
display: table;
width: 100%;
background: #dedede;
background: #fff;
text-align: center;
font-family: 'Montserrat', sans-serif;
font-family: 'DejaVu', sans-serif;
color: #191919;
overflow-x: hidden;

Expand All @@ -17,7 +17,9 @@ body{
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}

.instruction{
font-family: 'DejaVu', sans-serif;
}
.aa_h2{
font:100 5rem/1 Roboto;
text-transform: uppercase;
Expand Down Expand Up @@ -56,7 +58,7 @@ table,thead,tbody,tfoot,tr, td,th{
.table{
background: #fff;
margin: auto;
border:2px solid teal;
border:2px solid #59D3FC;
padding: 0;
margin-bottom: 5rem;
border-collapse: collapse;
Expand All @@ -65,7 +67,7 @@ table,thead,tbody,tfoot,tr, td,th{
.th{
font-weight:900;
color: teal;
border:2px solid teal;
border:2px solid #59D3FC;
&:nth-child(odd){
border-right:none;
}
Expand All @@ -80,7 +82,7 @@ table,thead,tbody,tfoot,tr, td,th{
}

.aa_htmlTable{
font-family: 'Montserrat', sans-serif;
font-family: 'DejaVu Sans Mono', sans-serif;
padding: 3rem;
display: table;
width: 100%;
Expand All @@ -92,16 +94,16 @@ table,thead,tbody,tfoot,tr, td,th{


.heading{
font-family: 'Allerta Stencil', sans-serif;
color:teal;
font-family: 'DejaVu Sans Mono',serif;
color:#59D3FC;
}

input[type=text] {
width: 20%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid teal;
border: 2px solid #59D3FC;
border-radius: 4px;
}

Expand All @@ -128,30 +130,30 @@ input[type=submit]:hover {
color: white;
}
.fa{
color:teal;
color:#15D8D7;
}
.title{
color:teal;
color:#A0E72C;
font-weight: bolder;
border:2px solid teal;
border:2px solid #59D3FC;
}

.res{
font-size: 18px;
}

.neg{
color:#CD3E20;
color:rgb(205, 32, 32);
font-size: 18px;
font-weight: 800;
}
.pos{
color: teal ;
color: #15D8D7 ;
font-size: 18px;
font-weight: 800;
}
.neu {
color : #2E302C;
color : whitesmoke;
font-size: 18px;
font-weight: 800;
}
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body>
<h1 class="heading">Twitter <i class="fa fa-twitter" aria-hidden="true"></i> Sentiment Analysis</h1>
<p>Type your <strong>#Hashtags</strong> below to perform Sentiment Analysis on Twitter Results.<br> Click <b>Fetch Tweets</b> and wait for while to view the results.<br><strong><a href="https://github.com/vinitshahdeo"><i class="fa fa-github" aria-hidden="true"></i></a></strong></p>
<p class="instruction">Type your <strong>#Hashtags</strong> below to perform Sentiment Analysis on Twitter Results.<br> Click <b>Fetch Tweets</b> and wait for while to view the results.<br><strong><a href="https://github.com/vinitshahdeo"><i class="fa fa-github" aria-hidden="true"></i></a></strong></p>
<form method="GET">
<input type="text" name="q" required="required"/> <br>
<input type="submit" value="Fetch Tweets"/>
Expand Down Expand Up @@ -69,10 +69,10 @@

$color=NULL;
if($tweet['sentiment']=='positive') {
$color='#7fff7f';
$color='#15D8D7';
}
else if($tweet['sentiment']=='negative') {
$color='#ffb2b2';
$color='#F95A27';
}
else if($tweet['sentiment']=='neutral') {
$color='#FFFFFF';
Expand Down