Skip to content

Commit

Permalink
Refactor project and renew design
Browse files Browse the repository at this point in the history
  • Loading branch information
spider-hand committed Dec 18, 2022
1 parent a7b4979 commit 9aacf80
Show file tree
Hide file tree
Showing 52 changed files with 1,281 additions and 984 deletions.
Binary file added public/images/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/favicon.ico
Binary file not shown.
Binary file removed public/img/icons/android-chrome-192x192.png
Binary file not shown.
Binary file removed public/img/icons/android-chrome-512x512.png
Binary file not shown.
Binary file removed public/img/icons/apple-touch-icon.png
Binary file not shown.
Binary file removed public/img/icons/favicon-16x16.png
Binary file not shown.
Binary file removed public/img/icons/favicon-32x32.png
Binary file not shown.
Binary file removed public/img/icons/mstile-150x150.png
Binary file not shown.
18 changes: 0 additions & 18 deletions public/img/icons/safari-pinned-tab.svg

This file was deleted.

50 changes: 42 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,53 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="theme-color" content="#0000ae">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="theme-color" content="#ffffff" />
<meta name="description" content="Free geoguess game" />
<link
rel="icon"
type="image/x-icon"
href="<%= BASE_URL %>images/favicon.ico"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="<%= BASE_URL %>images/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="<%= BASE_URL %>images/favicon-16x16.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="<%= BASE_URL %>images/apple-touch-icon.png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Material+Icons"
rel="stylesheet"
/>
<title>Geoguess Master - Free geoguess game</title>
</head>
<body>
<script src="https://maps.googleapis.com/maps/api/js?key=<%= VUE_APP_API_KEY %>"></script>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
properly without JavaScript enabled. Please enable it to
continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
21 changes: 21 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "GeoguessMaster",
"short_name": "GeoguessMaster",
"description": "Free geoguess game",
"icons": [
{
"src": "images/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "images/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"orientation": "portrait"
}
55 changes: 54 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,61 @@
<router-view />
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue";
import { useStore } from "vuex";
import { key } from "./store";
import { getDeviceType } from "@/utils";
export default defineComponent({
setup() {
const store = useStore(key);
const onWindowResize = (): void => {
store.dispatch("setDeviceTypeAction", { device: getDeviceType() });
};
onMounted(() => {
store.dispatch("setDeviceTypeAction", { device: getDeviceType() });
window.addEventListener("resize", onWindowResize);
});
},
});
</script>

<style lang="scss">
:root {
--color-brand-primary: #{$color-brand-primary};
--color-brand-light: #{$color-brand-light};
--color-brand-gradient: #{$color-brand-gradient};
--color-tone-primary: #{$color-tone-primary};
--color-tone-light: #{$color-tone-light};
--color-surface-primary: #{$color-surface-primary};
--color-surface-secondary: #{$color-surface-secondary};
--color-surface-tertiary: #{$color-surface-tertiary};
--color-surface-light: #{$color-surface-light};
--color-surface-superlight: #{$color-surface-superlight};
--color-red-primary: #{$color-red-primary};
--color-shadow-bold: #{$color-shadow-bold};
}
body {
font-family: "Roboto", sans-serif;
overflow: hidden;
overscroll-behavior: contain;
user-select: none;
margin: 0;
font-family: "Poppins", sans-serif;
}
textarea,
input,
button {
font-family: "Poppins", sans-serif;
}
button,
a {
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
</style>
Binary file removed src/assets/images/JPN.png
Binary file not shown.
Binary file removed src/assets/images/WORLD.png
Binary file not shown.
Binary file removed src/assets/images/logo.png
Binary file not shown.
15 changes: 15 additions & 0 deletions src/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/images/logo_plus_title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/styles/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$screen: "only screen";
$mobile-landscape: "#{$screen} and (min-width: 480px)";
$tablet-portrait: "#{$screen} and (min-width: 768px)";
$tablet-landscape: "#{$screen} and (min-width: 992px)";
$laptop: "#{$screen} and (min-width: 1200px)";
Loading

0 comments on commit 9aacf80

Please sign in to comment.