Skip to content

Commit

Permalink
UI updates
Browse files Browse the repository at this point in the history
Signed-off-by: Swastik Sharma <[email protected]>
  • Loading branch information
swastkk committed Aug 20, 2023
1 parent 947b770 commit bebbdcd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
19 changes: 10 additions & 9 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.logo.vite:hover {
filter: drop-shadow(0 0 2em #747bff);
.image-list img{
width: 25%;
height: auto;
}

.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafb);
.para{
font-weight: 900;
}

.image-list img{
width: 33%;
height: auto;
}
.refreshBtn{
background-color: #4d90fe;
color: white;
margin: auto 40%;
}
9 changes: 6 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { invoke } from "@tauri-apps/api/tauri";
import "./App.css";

import logo from './assets/logo.png';
function App() {
const [images, setImages] = useState([]);
const [selectedImage, setSelectedImage] = useState("");
Expand Down Expand Up @@ -30,7 +30,10 @@ function App() {
}
return (
<div className="container">
<h1>wallpape-rs</h1>
<div>
<img className="logo" src={logo} alt="" />
<p className="para">Click on any wallpaper to set it as wallpaper!</p>
</div>
<div className="image-list">
{wallpapers.map((image, index) => (
<img
Expand All @@ -41,7 +44,7 @@ function App() {
className={selectedImage === image ? "selected" : ""} />
))}
</div>
<button onClick={refreshWallpapers}>Refresh Wallpapers</button>
<button className="refreshBtn" onClick={refreshWallpapers}>Refresh Wallpapers</button>
</div>
);
}
Expand Down
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}

.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
Expand Down

0 comments on commit bebbdcd

Please sign in to comment.