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
18 changes: 0 additions & 18 deletions .github/workflows/dart_analyze.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/dart_score.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/firebase-hosting-merge.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/fluttter_to_github_pages.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols
Expand Down
57 changes: 57 additions & 0 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
server {
listen 80;
server_name _;

root /usr/share/nginx/html;
index index.html;

error_page 404 = @not_found;

location @not_found {
default_type text/plain;
return 404 "Not found\n";
}

location = /index.html {
add_header Cache-Control "no-cache";
}

location = /flutter_service_worker.js {
add_header Cache-Control "no-cache";
}

location = /version.json {
add_header Cache-Control "no-cache";
}

location ^~ /assets/ {
try_files $uri =404;
}

location ^~ /canvaskit/ {
try_files $uri =404;
}

location ^~ /icons/ {
try_files $uri =404;
}

location ~* \.(?:js|mjs|wasm|json|png|svg|ico|webp|jpg|jpeg|css|map|symbols)$ {
try_files $uri =404;
}

location / {
try_files $uri $uri/ /index.html;
}

gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types
application/javascript
application/json
application/wasm
image/svg+xml
text/css
text/plain;
}
10 changes: 10 additions & 0 deletions docker-compose.hosting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
web7:
image: nginx:latest
container_name: nginx7
restart: unless-stopped
ports:
- "4077:80"
volumes:
- ./build/web:/usr/share/nginx/html:ro
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
2 changes: 1 addition & 1 deletion lib/app/data/information_data/info_projects.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final projects = [
description: """
Приложение дает пользователям возможность осуществлять процесс сборки предоставленной модели в формате виртуальной реальности. Люди могут собирать ракетный двигатель как самостоятельно, так и в многопользовательской комнате, объединившись с напарниками.
Процесс сопровождают различные подсказки и тексты с описаниями деталей. Все это, вкупе с глубоким погружением, способствует быстрому усвоению материала. При окончании сборки модель становится анимированной и демонстрирует свой принцип работы.""",
backgroundImagePath: "assets/images/projects/Revolit/background.png",
backgroundImagePath: "assets/images/projects/Revolit/preview.png",
images: [
"assets/images/projects/Revolit/preview.png",
"assets/images/projects/Revolit/preview.png",
Expand Down
101 changes: 45 additions & 56 deletions lib/app/ui/global_widgets/animated_background.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:sa3_liquid/sa3_liquid.dart';

class AnimatedBackground extends StatelessWidget {
const AnimatedBackground({
Expand All @@ -11,63 +10,53 @@ class AnimatedBackground extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Stack(children: [
SizedBox(
width: size.width,
height: size.height,
child: const PlasmaRenderer(
type: PlasmaType.infinity,
particles: 2,
color: Color.fromARGB(49, 247, 0, 255),
blur: 0.7,
size: 0.7,
speed: 2,
offset: 0,
blendMode: BlendMode.srcOver,
particleType: ParticleType.atlas,
variation1: 0.31,
variation2: 0.3,
variation3: 0.0,
rotation: -0.7,
)),
SizedBox(
width: size.width,
height: size.height,
child: const PlasmaRenderer(
type: PlasmaType.infinity,
particles: 2,
color: Color.fromARGB(50, 0, 0, 255),
blur: 0.7,
size: 0.7,
speed: 2,
offset: 0,
blendMode: BlendMode.srcOver,
particleType: ParticleType.atlas,
variation1: 0.31,
variation2: 0.3,
variation3: 0.0,
rotation: 1.2,
return SizedBox(
width: size.width,
height: size.height,
child: const DecoratedBox(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0x300000FF),
Color(0x22030003),
Color(0x2EF700FF),
Color(0x22030003),
Color(0x26FFFF00),
],
stops: [0.0, 0.24, 0.5, 0.76, 1.0],
),
),
),
SizedBox(
width: size.width,
height: size.height,
child: const PlasmaRenderer(
type: PlasmaType.infinity,
particles: 2,
color: Color.fromARGB(50, 255, 255, 0),
blur: 0.7,
size: 0.7,
speed: 2,
offset: 0,
blendMode: BlendMode.srcOver,
particleType: ParticleType.atlas,
variation1: 0.31,
variation2: 0.3,
variation3: 0.0,
rotation: 0,
child: DecoratedBox(
decoration: BoxDecoration(
gradient: RadialGradient(
center: Alignment(-0.72, -0.55),
radius: 1.25,
colors: [
Color(0x2BF700FF),
Color(0x160000FF),
Colors.transparent,
],
stops: [0.0, 0.48, 1.0],
),
),
child: DecoratedBox(
decoration: BoxDecoration(
gradient: RadialGradient(
center: Alignment(0.78, 0.65),
radius: 1.1,
colors: [
Color(0x24FFFF00),
Color(0x140000FF),
Colors.transparent,
],
stops: [0.0, 0.52, 1.0],
),
),
),
),
),
]);
);
}
}
2 changes: 1 addition & 1 deletion lib/app/ui/global_widgets/appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:url_launcher/link.dart';
import '../theme/app_addition_colors.dart';
import '../theme/app_fonts.dart';

class AppBarWidget extends StatelessWidget with PreferredSizeWidget {
class AppBarWidget extends StatelessWidget implements PreferredSizeWidget {
const AppBarWidget(
{Key? key,
this.needBack = true,
Expand Down
3 changes: 0 additions & 3 deletions lib/app/ui/global_widgets/projects_grid_widget.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/link.dart';

import '../../data/models/project.dart';
import '../../routes/app_pages.dart';
import '../theme/app_constants.dart';
import 'project_card.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/app/ui/main_page/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MainPage extends StatelessWidget {
];
}
final _controller = ScrollController();
List<Widget> sections = [];
late final List<Widget> sections;

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class CertificatePct extends StatelessWidget {
child: Image.asset(
certificate.image,
fit: BoxFit.fill,
cacheWidth: 1500,
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class SocialNetworkButton extends StatelessWidget {
Widget build(BuildContext context) {
return ElevatedButton(
style: ElevatedButton.styleFrom(
primary: backgroundColor.withOpacity(0.1),
onPrimary: Colors.white,
backgroundColor: backgroundColor.withOpacity(0.1),
foregroundColor: Colors.white,
elevation: 0,
shadowColor: Colors.white.withOpacity(0),
shape:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class DiplomaPct extends StatelessWidget {
child: Image.asset(
diploma.image,
fit: BoxFit.cover,
cacheWidth: 1200,
),
),
),
Expand Down
Loading