Skip to content

Commit

Permalink
Switch to nuxt and element-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
fjmorel committed Jan 31, 2021
1 parent e373ed5 commit 0604d12
Show file tree
Hide file tree
Showing 45 changed files with 13,278 additions and 261 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended',
],
plugins: [
],
// add your custom rules here
rules: {
semi: ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'space-before-function-paren': ['error', 'never'],
'vue/singleline-html-element-content-newline': ["off"],
},
};
92 changes: 90 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,90 @@
.vscode/
node_modules/
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp
6 changes: 0 additions & 6 deletions .vscode/iisexpress.json

This file was deleted.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
Available at http://www.fmorel.net
===

## Build Setup

```bash
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# generate static project
$ npm run generate
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
7 changes: 7 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ASSETS

**This directory is not required, you can delete it if you don't want to use it.**

This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).
39 changes: 39 additions & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
html {
box-sizing: border-box;
background-color: #eee;
}

*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
}

.clearfix:before,
.clearfix:after {
display: table;
content: '';
}
.clearfix:after {
clear: both;
}

.el-header {
background-color: rgb(21, 101, 192);
padding: 20px;
color: white;
}

.el-card {
margin: 10px;
}

.el-button {
float: right;
margin-left: 4px;
}
.ref-header {
font-size: 20px;
line-height: 2em;
}
17 changes: 17 additions & 0 deletions components/Contact.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<el-card shadow="always">
<div slot="header" class="clearfix">
<span class="ref-header">Contact Information</span>
</div>
<p>
Email:
<a href="mailto:[email protected]">[email protected]</a>
</p>
</el-card>
</template>

<script lang="ts">
</script>

<style>
</style>
14 changes: 14 additions & 0 deletions components/Downloads.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<el-card shadow="always">
<div slot="header" class="clearfix">
<span class="ref-header">Downloads</span>
</div>
<p><a href="/Resume.docx">Resume as Word document</a></p>
</el-card>
</template>

<script lang="ts">
</script>

<style>
</style>
25 changes: 25 additions & 0 deletions components/Education.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<el-card shadow="always">
<div slot="header" class="clearfix">
<span class="ref-header">Education</span>
</div>
<h3>Bachelor of Science in Software Engineering</h3>
<p>
With minors in Mathematics and Computer Science, from Southern Polytechnic
State University
</p>
<ul>
<li>User Centered Design</li>
<li>Software Project Management</li>
<li>Database Systems</li>
<li>Calculus I, II, III</li>
<li>Ordinary Differential Equations</li>
</ul>
</el-card>
</template>

<script lang="ts">
</script>

<style>
</style>
13 changes: 13 additions & 0 deletions components/Header.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<el-row>
<el-col :xs="24">
<h2>Fred Morel - Software Developer</h2>
</el-col>
</el-row>
</template>

<style>
h2 {
color: white;
}
</style>
83 changes: 83 additions & 0 deletions components/Project.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<template>
<el-card shadow="always">
<div slot="header" class="clearfix">
<el-button
v-for="link in actions"
:key="link.url"
:href="link.url"
type="primary"
plain
@click="mainClick(link.url)"
>
{{ link.text }}
</el-button>
<span class="ref-header">{{ title }}</span>
</div>
<div>
<h3>
<small>{{ subheading }}</small>
</h3>
<p class="project-description">{{ description }}</p>
<p class="techs">
<span class="category">Technical environment</span>:
<span class="tech-list">{{ techs }}</span>
</p>
</div>
</el-card>
</template>

<script lang="ts">
export default {
name: 'Project',
props: {
title: {
type: String,
default: '',
required: true,
},
subheading: {
type: String,
default: '',
required: true,
},
description: {
type: String,
default: '',
required: true,
},
techs: {
type: String,
default: '',
required: true,
},
actions: {
type: Array,
default: () => [],
required: false,
},
},
methods: {
mainClick(url: string) {
window.open(url, '_blank');
},
},
};
</script>

<style scoped>
.techs {
font-size: 0.9em;
}
.category {
font-weight: bold;
}
.tech-list {
font-style: italic;
}
p {
line-height: 1.5em;
margin-top: 10px;
}
</style>
39 changes: 39 additions & 0 deletions components/Reference.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<el-card shadow="always">
<div slot="header" class="clearfix">
<el-button type="primary" @click="mainClick(link)">View</el-button>
<span class="ref-header">{{ name }}</span>
</div>
<p>{{ description }}</p>
</el-card>
</template>

<script lang="ts">
export default {
name: 'Reference',
props: {
link: {
type: String,
default: '',
required: true,
},
description: {
type: String,
default: '',
required: true,
},
name: {
type: String,
default: '',
required: true,
},
},
methods: {
mainClick(link: string) {
window.open(link, '_blank');
},
},
};
</script>
<style>
</style>
Loading

0 comments on commit 0604d12

Please sign in to comment.