Skip to content

Commit

Permalink
feat: construction message page
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Jun 3, 2021
1 parent 3861bae commit 57bca65
Show file tree
Hide file tree
Showing 15 changed files with 2,153 additions and 2,832 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": false,
"trailingComma": "none"
}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
# demiray-dev
# demiray.dev

demiray.dev source codes

## Project setup

```
yarn install
```

### Compiles and hot-reloads for development

```
yarn serve
```

### Compiles and minifies for production

```
yarn build
```

### Lints and fixes files

```
yarn lint
```

### Customize configuration

See [Configuration Reference](https://cli.vuejs.org/config/).
27 changes: 17 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "demiray-dev",
"name": "demiray.dev",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -8,32 +8,39 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"autoprefixer": "^10.2.6",
"core-js": "^3.6.5",
"postcss": "^8.3.0",
"vue": "^2.6.11"
"tailwindcss": "^2.1.4",
"vue": "^3.0.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/cli-plugin-babel": "^5.0.0-alpha.5",
"@vue/cli-plugin-eslint": "^5.0.0-alpha.5",
"@vue/cli-service": "^5.0.0-alpha.5",
"@vue/compiler-sfc": "^5.0.0-alpha.5",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
"eslint": "^7.0.0",
"eslint-plugin-vue": "^7.0.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
"rules": {
"no-console": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"import/prefer-default-export": "off"
}
},
"browserslist": [
"> 1%",
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file modified public/favicon.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel='icon' href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
Expand All @@ -15,3 +15,4 @@
<!-- built files will be auto injected -->
</body>
</html>

30 changes: 11 additions & 19 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<div className="bg-demiray h-screen flex w-screen justify-center">
<div className="color-d-f justify-center text-center pt-12 text-2xl font-bold">
<Construction msg="This site is under construction" />
</div>
<footer className="absolute color-d-f self-end pb-4">
Copyright © Arif Burak DEMIRAY 2021
</footer>
</div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import Construction from "./components/Construction.vue";
export default {
name: 'App',
name: "App",
components: {
HelloWorld
Construction
}
}
};
</script>

<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Binary file removed src/assets/logo.png
Binary file not shown.
106 changes: 106 additions & 0 deletions src/components/Construction.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<template>
<div class="Construction">
<h1>{{ msg }}</h1>
<div class="fingerprint-spinner overflow-hidden p-2 w-32 h-32">
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
</div>
</div>
</template>

<script>
export default {
name: "Construction",
props: {
msg: String
}
};
</script>

<style scoped>
.fingerprint-spinner,
.fingerprint-spinner * {
box-sizing: border-box;
}
.fingerprint-spinner .spinner-ring {
position: absolute;
border-radius: 75%;
border: 2px solid transparent;
border-top-color: #2ad57e;
animation: fingerprint-spinner-animation 2000ms cubic-bezier(0.99, -1.01, 0.99, 0.05) infinite
forwards;
margin: auto;
bottom: 0;
left: 0;
right: 0;
top: 0;
}
.fingerprint-spinner .spinner-ring:nth-child(1) {
height: calc(128px / 9 + 0 * 128px / 9);
width: calc(128px / 9 + 0 * 128px / 9);
animation-delay: calc(50ms * 1);
}
.fingerprint-spinner .spinner-ring:nth-child(2) {
height: calc(128px / 9 + 1 * 128px / 9);
width: calc(128px / 9 + 1 * 128px / 9);
animation-delay: calc(50ms * 2);
}
.fingerprint-spinner .spinner-ring:nth-child(3) {
height: calc(128px / 9 + 2 * 128px / 9);
width: calc(128px / 9 + 2 * 128px / 9);
animation-delay: calc(50ms * 3);
}
.fingerprint-spinner .spinner-ring:nth-child(4) {
height: calc(128px / 9 + 3 * 128px / 9);
width: calc(128px / 9 + 3 * 128px / 9);
animation-delay: calc(50ms * 4);
}
.fingerprint-spinner .spinner-ring:nth-child(5) {
height: calc(128px / 9 + 4 * 128px / 9);
width: calc(128px / 9 + 4 * 128px / 9);
animation-delay: calc(50ms * 5);
}
.fingerprint-spinner .spinner-ring:nth-child(6) {
height: calc(128px / 9 + 5 * 128px / 9);
width: calc(128px / 9 + 5 * 128px / 9);
animation-delay: calc(50ms * 6);
}
.fingerprint-spinner .spinner-ring:nth-child(7) {
height: calc(128px / 9 + 6 * 128px / 9);
width: calc(128px / 9 + 6 * 128px / 9);
animation-delay: calc(50ms * 7);
}
.fingerprint-spinner .spinner-ring:nth-child(8) {
height: calc(128px / 9 + 7 * 128px / 9);
width: calc(128px / 9 + 7 * 128px / 9);
animation-delay: calc(50ms * 8);
}
.fingerprint-spinner .spinner-ring:nth-child(9) {
height: calc(128px / 9 + 8 * 128px / 9);
width: calc(128px / 9 + 8 * 128px / 9);
animation-delay: calc(50ms * 9);
}
@keyframes fingerprint-spinner-animation {
100% {
transform: rotate(3128deg);
}
}
</style>
58 changes: 0 additions & 58 deletions src/components/HelloWorld.vue

This file was deleted.

57 changes: 57 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/* ./src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--demiray-background: #062020;
--demiray-color-one: #2ad5d4;
--demiray-color-two: #2ad57e;
--demiray-color-three: #2ad5d4;
}

select {
display: inline-block;
font: inherit;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;

background-image: linear-gradient(45deg, transparent 50%, gray 50%),
linear-gradient(135deg, gray 50%, transparent 50%);
background-position: calc(100% - 20px) 0.75rem, calc(100% - 15px) 0.75rem;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}

select:focus {
background-image: linear-gradient(45deg, gray 50%, transparent 50%),
linear-gradient(135deg, transparent 50%, gray 50%);
background-position: calc(100% - 15px) 0.75rem, calc(100% - 20px) 0.75rem;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
outline: 0;
}

select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}

@variants hover, focus {
.bg-demiray {
background-color: var(--demiray-background);
}
.color-d-f {
color: var(--demiray-color-one);
}
.color-d-s {
color: var(--demiray-color-two);
}
.color-d-t {
color: var(--demiray-color-three);
}
}
10 changes: 3 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import Vue from 'vue'
import { createApp } from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

new Vue({
render: h => h(App),
}).$mount('#app')
import './index.css'
createApp(App).mount('#app')
Loading

0 comments on commit 57bca65

Please sign in to comment.