Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.sass-cache/
css/
!css/images/
!css/skel.css
!css/font-awesome.min.css
dist/
node_modules/
index.html
package-lock.json
29 changes: 16 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
FROM node:20.19.0

RUN apt-get update \
&& apt-get --no-install-recommends -y install ruby-full \
&& gem install sass \
&& apt-get clean
ARG DART_SASS_VERSION=1.89.1

RUN curl -sSLodart-sass-linux-x64.tar.gz \
"https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" \
&& tar xzf dart-sass-linux-x64.tar.gz dart-sass/sass \
&& mv dart-sass/sass /usr/local/bin/sass \
&& rm -rf dart-sass-linux-x64.tar.gz

WORKDIR /build

COPY . ./
COPY package.json .

RUN npm install

RUN npm install \
&& npm install -g grunt-cli \
&& grunt
COPY src/ ./src
COPY webpack.config.js ./

RUN npm run build

FROM nginx:1.27.4-alpine

WORKDIR /usr/share/nginx/html

COPY config/nginx.conf /etc/nginx/conf.d/default.conf

COPY favicon.ico ./
COPY --from=0 /build/dist ./

COPY --from=0 /build/css ./css
COPY --from=0 /build/js ./js
COPY --from=0 /build/fonts ./fonts
COPY --from=0 /build/index.html ./
EXPOSE 80
62 changes: 0 additions & 62 deletions Gruntfile.js

This file was deleted.

96 changes: 0 additions & 96 deletions css/ie/PIE.htc

This file was deleted.

8 changes: 0 additions & 8 deletions css/ie/html5shiv.js

This file was deleted.

Binary file removed css/ie/images/footer.png
Binary file not shown.
9 changes: 0 additions & 9 deletions css/ie/images/footer.svg

This file was deleted.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"name": "personalsite",
"version": "1.1.0",
"description": "Personal site for Oliver Radwell",
"main": "Gruntfile.js",
"dependencies": {
"grunt": "^1.4.0",
"grunt-contrib-htmlmin": "^3.1.0",
"grunt-contrib-sass": "^2.0.0",
"grunt-inline": "^0.3.7"
},
"dependencies": {},
"devDependencies": {
"grunt-contrib-watch": "^1.1.0"
"css-loader": "^7.1.2",
"html-webpack-plugin": "^5.6.3",
"sass": "^1.87.0",
"sass-loader": "^16.0.5",
"style-loader": "^4.0.0",
"webpack": "^5.99.8",
"webpack-cli": "^6.0.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
},
"author": "Oliver Radwell",
"private": true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
20 changes: 2 additions & 18 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,8 @@
<head>
<title>Oliver Radwell - Software Developer | System Admin | DevOps</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<noscript>
<link rel="stylesheet" href="css/skel.css" />
</noscript>
<link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<noscript>
<link rel="stylesheet" href="css/style-wide.css" type="text/css" />
<link rel="stylesheet" href="css/style-noscript.css" type="text/css" />
</noscript>
<!--[if lte IE 9]><link rel="stylesheet" href="css/ie/v9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
<link rel="stylesheet" href="css/simptip.css" type="text/css" />
<!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
<script type="text/javascript" src="js/skel.min.js"></script>
<meta name="description" content="Software Developer, System Admin, DevOps" />
<meta name="keywords" content="software developer, system admin, devops, php, mariadb, git, javascript, go, linux, kubernetes, apache, docker, bash" />
</head>
<body class="loading">
<div id="wrapper">
Expand Down Expand Up @@ -56,7 +42,5 @@ <h1>Oliver Radwell</h1>
</footer>
</div>
</div>
<script type="text/javascript" src="js/init.js?__inline=true"></script>
<script type="text/javascript" src="js/ga.js?__inline=true"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import "./css/skel.css";
import "./css/font-awesome.min.css";
import "./sass/style.scss";
import "./sass/simptip.scss";
import "./js/skel.min.js";
File renamed without changes.
8 changes: 5 additions & 3 deletions src/sass/_vars.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "mixins";

//
// Aerial by HTML5 UP
// html5up.net | @n33co
Expand All @@ -18,9 +20,9 @@ $size-nav-icon-wrapper: 5.35em;
$size-nav-icon: 1.75em;

@mixin bg($width) {
@include vendor-keyframes('bg') {
0% { @include vendor-property('transform', 'translate3d(0,0,0)'); }
100% { @include vendor-property('transform', 'translate3d(#{$width * -1},0,0)'); }
@include mixins.vendor-keyframes('bg') {
0% { @include mixins.vendor-property('transform', 'translate3d(0,0,0)'); }
100% { @include mixins.vendor-property('transform', 'translate3d(#{$width * -1},0,0)'); }
}

#bg {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions src/sass/style-mobile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

@import 'vars';
@import 'mixins';
@use 'vars';
@use 'mixins';

/* Basic */

Expand All @@ -19,7 +19,7 @@

/* BG */

@include bg($bg-width * 0.2);
@include vars.bg(vars.$bg-width * 0.2);

/* Header */

Expand Down
6 changes: 3 additions & 3 deletions src/sass/style-mobilep.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

@import 'vars';
@import 'mixins';
@use 'vars';
@use 'mixins';

/* BG */

@include bg($bg-width * 0.275);
@include vars.bg(vars.$bg-width * 0.275);

/* Header */

Expand Down
6 changes: 3 additions & 3 deletions src/sass/style-normal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

@import 'vars';
@import 'mixins';
@use 'vars';
@use 'mixins';

/* Basic */

Expand All @@ -15,4 +15,4 @@

/* BG */

@include bg($bg-width * 0.5);
@include vars.bg(vars.$bg-width * 0.5);
4 changes: 2 additions & 2 deletions src/sass/style-noscript.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

@import 'vars';
@import 'mixins';
@use 'vars';
@use 'mixins';

/* Wrapper */

Expand Down
6 changes: 3 additions & 3 deletions src/sass/style-wide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

@import 'vars';
@import 'mixins';
@use 'vars';
@use 'mixins';

/* Basic */

Expand All @@ -15,4 +15,4 @@

/* BG */

@include bg($bg-width);
@include vars.bg(vars.$bg-width);
Loading