Skip to content

Commit

Permalink
Merge pull request #57 from Hari-Kumar-A/master
Browse files Browse the repository at this point in the history
feat: UI Updation
  • Loading branch information
surajondev authored Oct 17, 2023
2 parents b6c80c0 + e673035 commit 9fb60c0
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion footer-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ function Footer(){
)
}

export default
export default Footer
14 changes: 14 additions & 0 deletions src/Footer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
import React from "react";
import "./index.css";


function Footer(){
return(
<footer>
<div className="container">
<center>
<p className="p-footer">Made with ❤️ by <a href="https://github.com/surajondev">Suraj Vishwakarma</a></p>
<p className="p-footer">Made with <span role="img" aria-labelledby="love">❤️</span> by <a href="https://github.com/surajondev">Suraj Vishwakarma</a></p>
<p className="p-footer">Source <a href="https://openweathermap.org/">OpenWeather</a></p>
</center>
</div>
</footer>
)
}
function Footer() {
const year = new Date().getFullYear();

Expand Down
22 changes: 22 additions & 0 deletions src/ThemeContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// ThemeContext.js
import React, { createContext, useContext, useState } from 'react';

const ThemeContext = createContext();

export function ThemeProvider({ children }) {
const [theme, setTheme] = useState('light');

const toggleTheme = () => {
setTheme((currentTheme) => (currentTheme === 'light' ? 'dark' : 'light'));
};

return (
<ThemeContext.Provider value={{ theme, toggleTheme }}>
{children}
</ThemeContext.Provider>
);
}

export function useTheme() {
return useContext(ThemeContext);
}
13 changes: 11 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ html {
}
body {
margin: 0 auto;
font-family: Arial, sans-serif;
font-family: cursive;
background-color: #161d28;
}

Expand All @@ -15,7 +15,7 @@ img:not(.large-icon) {
header,
footer {
color: white;
background-color: #192733;
background-image: linear-gradient(to right, #051937, #0d2750, #16376b, #214786, #2c57a3);
padding: 1.5rem;

text-align: center;
Expand All @@ -24,6 +24,7 @@ footer {


header {
margin-bottom: 1rem;
margin-bottom: 2rem;

}
Expand All @@ -50,6 +51,11 @@ a:hover {

/* TYPOGRAPHY */
.title {
font-size: 2.5rem;
font-weight: 30px;
display: flex;
justify-content: center;
padding-left: 0.6rem;
font-size: 3rem;
font-weight: 24px;
padding-left: 0.rem;
Expand Down Expand Up @@ -108,6 +114,7 @@ p {
border-radius: 10em;
padding: 0 2rem;
cursor: pointer;
transition: 0.5s;
}
.clear-button{
font-size:17px ;
Expand Down Expand Up @@ -141,6 +148,8 @@ p {


.submit-button:hover {
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
transform: scale(0.9);
background-color: #6c7077;
}

Expand Down

0 comments on commit 9fb60c0

Please sign in to comment.