Skip to content

Commit

Permalink
inicio da v2
Browse files Browse the repository at this point in the history
  • Loading branch information
altendorfme committed Jan 27, 2025
1 parent 99ca0f4 commit 88b37a5
Show file tree
Hide file tree
Showing 59 changed files with 13,510 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ composer.lock
app/logs/*.log
app/cache/*.gz
TODO.md
node_modules

# Created by https://www.toptal.com/developers/gitignore/api/composer,windows,macos,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=composer,windows,macos,linux
Expand Down
86 changes: 86 additions & 0 deletions app/Gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
"use strict";

const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const clean_css = require('gulp-clean-css');
const sourcemaps = require('gulp-sourcemaps');
const imagemin = require('gulp-imagemin');
const webp = require('gulp-webp');
const newer = require('gulp-newer');
const ttf2woff = require('gulp-ttf2woff');
const ttf2woff2 = require('gulp-ttf2woff2');

const paths = {
styles: {
src: 'assets/scss/*.scss',
dest: 'dist/css'
},
scripts: {
src: 'assets/js/*.js',
dest: 'dist/js'
},
images: {
src: 'assets/images/**/*',
dest: 'dist/images'
},
fonts: {
src: 'assets/fonts/**/*',
dest: 'dist/fonts'
}
};

function styles() {
return gulp.src(paths.styles.src)
.pipe(sourcemaps.init())
.pipe(sass({
outputStyle: "expanded",
includePaths: ['./node_modules']
}))
.pipe(concat('style.css'))
.pipe(clean_css())
.pipe(gulp.dest(paths.styles.dest))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.styles.dest))
}

function scripts() {
return gulp.src(paths.scripts.src)
.pipe(sourcemaps.init())
.pipe(concat('script.js'))
.pipe(uglify())
.pipe(gulp.dest(paths.scripts.dest))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.scripts.dest))
}

function images() {
return gulp.src(paths.images.src)
.pipe(newer(paths.images.dest))
.pipe(imagemin())
.pipe(gulp.dest(paths.images.dest))
.pipe(webp())
.pipe(gulp.dest(paths.images.dest))
}

function fonts() {
return gulp.src(paths.fonts.src)
.pipe(newer(paths.fonts.dest))
.pipe(ttf2woff())
.pipe(gulp.dest(paths.fonts.dest))
.pipe(ttf2woff2())
.pipe(gulp.dest(paths.fonts.dest))
}

function watch() {
gulp.watch(paths.styles.src, styles);
gulp.watch(paths.scripts.src, scripts);
gulp.watch(paths.images.src, images);
gulp.watch(paths.fonts.src, fonts);
}

exports.default = gulp.series(
gulp.parallel(styles, scripts, images, fonts),
watch
);
Binary file added app/assets/fonts/inter-500.ttf
Binary file not shown.
Binary file added app/assets/fonts/inter-600.ttf
Binary file not shown.
Binary file added app/assets/fonts/unna-400.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions app/assets/icons/android.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/assets/icons/apple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/archive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/bookmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/bsky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/bypass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/icons/chrome.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/icons/firefox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/marreta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/icons/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/icons/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added app/assets/images/wall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions app/assets/scss/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Default
body {
font-family: var(--font-family-haffer);
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
color: var(--text);
text-align: left;
background-color: var(--background);
min-width: 320px;
}

a {
text-decoration: none;
color: var(--link);

&:hover {
text-decoration: none;
color: var(--link-lighten);
}
}

.container {
padding-right: var(--container_spacing);
padding-left: var(--container_spacing);
margin-right: auto;
margin-left: auto;

@include devices(desktop) {
max-width: 1248px;
}

}
35 changes: 35 additions & 0 deletions app/assets/scss/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@font-face {
font-family: 'inter';
src: url('../fonts/inter-500.eot');
src: local('Inter Medium'), local('Inter-Medium'),
url('../fonts/inter-500.woff2') format('woff2'),
url('../fonts/inter-500.woff') format('woff'),
url('../fonts/inter-500.ttf') format('truetype');
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'inter';
src: url('../fonts/inter-600.eot');
src: local('Inter SemiBold'), local('Inter-SemiBold'),
url('../fonts/inter-600.woff2') format('woff2'),
url('../fonts/inter-600.woff') format('woff'),
url('../fonts/inter-600.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'unna';
src: url('../fonts/unna-400.eot');
src: local('Unna Regular'), local('Unna-Regular'),
url('../fonts/unna-400.woff2') format('woff2'),
url('../fonts/unna-400.woff') format('woff'),
url('../fonts/unna-400.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
19 changes: 19 additions & 0 deletions app/assets/scss/_icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// https://icons.getbootstrap.com/
// https://icofont.com/icons

// https://jakearchibald.github.io/svgomg/
// https://yoksel.github.io/url-encoder/
// https://codepen.io/sosuke/pen/Pjoqqp

.icon {
display: inline-block;
vertical-align: -0.125em;
fill: currentcolor;
width: 1em;
height: 1em;
background-repeat: no-repeat;
background-position: center center;
background-size: 100% auto;
}

@include icon('alice');
24 changes: 24 additions & 0 deletions app/assets/scss/_mixin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

@mixin create-color($name, $color) {
--#{$name}: #{$color};
--#{$name}-lighten: color.scale($color, $lightness: -100%);
--#{$name}-darken: color.adjust($color, $lightness: -10%)
}

@mixin devices($breakpoint) {
@if $breakpoint == desktop {
@media only screen and (min-width: 1200px) {
@content;
}
}
}

@mixin background-image-svg($name) {
background-image: url("../images/icons/#{$name}.svg");
}

@mixin icon($name) {
.icon--#{$name} {
@include background-image-svg($name);
}
}
57 changes: 57 additions & 0 deletions app/assets/scss/_root.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
:root {
// Fonts
--font-family-sans-serif: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
"Noto Sans",
"Liberation Sans",
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji";
--font-family-monospace: SFMono-Regular,
Menlo, Monaco,
Consolas,
"Liberation Mono",
"Courier New",
monospace;
--font-family-haffer: "haffer";

//-- Styles
--font-size: 16px;
--font-weight: 500;
--line-height: 160%;

// Colors
$hex-marreta: #fff;
$hex-text: #000;
$hex-textmuted: #000;
$hex-link: #000;

@include create-color('marreta', $hex-marreta);
@include create-color('text', $hex-text);
@include create-color('textmuted', $hex-textmuted);
@include create-color('link', $hex-link);

// Borders
--border-radius-default: 1rem;

// Spacing
--container_spacing: 24px;
@include devices(desktop) {
--container_spacing: 64px;
}
}

html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
Empty file added app/assets/scss/home.scss
Empty file.
13 changes: 13 additions & 0 deletions app/assets/scss/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@use "sass:math";
@use "sass:color";

@import "normalize.css/normalize";

@import "mixin";
@import "fonts";

@import "root";
@import "base";
@import "icons";

@import "home";
1 change: 0 additions & 1 deletion app/assets/svg/archive.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/svg/bookmark.svg

This file was deleted.

Loading

0 comments on commit 88b37a5

Please sign in to comment.